- code format

This commit is contained in:
Mark Friedrich
2018-06-10 20:37:59 +02:00
parent dcc9a93d2b
commit dea920d76e
3 changed files with 11 additions and 11 deletions

View File

@@ -331,10 +331,9 @@ class CharacterModel extends BasicModel {
$logLocation = (bool)$logLocation;
if(
!$logLocation &&
$logLocation !== $this->logLocation &&
$this->hasLog()
$logLocation !== $this->logLocation
){
$this->getLog()->erase();
$this->deleteLog();
}
return $logLocation;
@@ -918,12 +917,8 @@ class CharacterModel extends BasicModel {
}
}
if(
$deleteLog &&
$this->hasLog()
){
// delete existing log
$this->characterLog->erase();
if($deleteLog){
$this->deleteLog();
}
return $this;