Various code cleanup [skip ci]

This commit is contained in:
James Cole
2017-03-24 15:15:12 +01:00
parent fe66d089ad
commit 1fb0a64f31
15 changed files with 49 additions and 43 deletions

View File

@@ -7,7 +7,7 @@
* See the LICENSE file for details.
*/
declare(strict_types = 1);
declare(strict_types=1);
namespace FireflyIII\Support\Models;
@@ -15,10 +15,8 @@ namespace FireflyIII\Support\Models;
use Carbon\Carbon;
use FireflyIII\Exceptions\FireflyException;
use FireflyIII\Models\Transaction;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\Support\CacheProperties;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
/**
@@ -107,7 +105,7 @@ trait TransactionJournalTrait
}
/**
* @param string $dateField
* @param string $dateField
*
* @return string
*/
@@ -118,7 +116,7 @@ trait TransactionJournalTrait
}
if (!is_null($this->$dateField) && $this->$dateField instanceof Carbon) {
// make field NULL
$carbon = clone $this->$dateField;
$carbon = clone $this->$dateField;
$this->$dateField = null;
$this->save();