Permalink
Browse files

Apply fixes from StyleCI (#278)

  • Loading branch information...
freekmurze committed Sep 28, 2017
1 parent ee927e8 commit 6e7838211b320fe3344bd28702940653ad8a4d0f
Showing with 3 additions and 4 deletions.
  1. +1 −1 src/Models/Activity.php
  2. +2 −3 src/Traits/DetectsChanges.php
View
@@ -48,7 +48,7 @@ public function changes(): Collection
if (! $this->properties instanceof Collection) {
return new Collection();
}
return collect(array_filter($this->properties->toArray(), function ($key) {
return in_array($key, ['attributes', 'old']);
}, ARRAY_FILTER_USE_KEY));
@@ -3,7 +3,6 @@
namespace Spatie\Activitylog\Traits;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\Activitylog\Exceptions\CouldNotLogChanges;
trait DetectsChanges
@@ -41,7 +40,7 @@ public function attributesToBeLogged(): array
public function shouldlogOnlyDirty(): bool
{
if (!isset(static::$logOnlyDirty)) {
if (! isset(static::$logOnlyDirty)) {
return false;
}
@@ -50,7 +49,7 @@ public function shouldlogOnlyDirty(): bool
public function attributeValuesToBeLogged(string $processingEvent): array
{
if (!count($this->attributesToBeLogged())) {
if (! count($this->attributesToBeLogged())) {
return [];
}

0 comments on commit 6e78382

Please sign in to comment.