Permalink
Browse files

Merge pull request #446 from spatie/fix-spelling

fix spelling in shouldLog methods
  • Loading branch information...
Gummibeer committed Oct 18, 2018
2 parents 7a8d937 + 4c221bd commit 491c2b9070090e6f581a62662f35497bd2f61b2e
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Traits/DetectsChanges.php
@@ -31,7 +31,7 @@ public function attributesToBeLogged(): array
$attributes = array_merge($attributes, $this->getFillable());
}
if ($this->shouldlogUnguarded()) {
if ($this->shouldLogUnguarded()) {
$attributes = array_merge($attributes, array_diff(array_keys($this->getAttributes()), $this->getGuarded()));
}
@@ -50,7 +50,7 @@ public function attributesToBeLogged(): array
return $attributes;
}
public function shouldlogOnlyDirty(): bool
public function shouldLogOnlyDirty(): bool
{
if (! isset(static::$logOnlyDirty)) {
return false;
@@ -59,7 +59,7 @@ public function shouldlogOnlyDirty(): bool
return static::$logOnlyDirty;
}
public function shouldlogUnguarded(): bool
public function shouldLogUnguarded(): bool
{
if (! isset(static::$logUnguarded)) {
return false;
@@ -94,7 +94,7 @@ public function attributeValuesToBeLogged(string $processingEvent): array
$properties['old'] = array_merge($nullProperties, $this->oldAttributes);
}
if ($this->shouldlogOnlyDirty() && isset($properties['old'])) {
if ($this->shouldLogOnlyDirty() && isset($properties['old'])) {
$properties['attributes'] = array_udiff_assoc(
$properties['attributes'],
$properties['old'],

0 comments on commit 491c2b9

Please sign in to comment.