Skip to content

Commit

Permalink
fix spelling in shouldLog methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Oct 18, 2018
1 parent 68eb6e6 commit 4c221bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Traits/DetectsChanges.php
Expand Up @@ -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()));
}

Expand All @@ -50,7 +50,7 @@ public function attributesToBeLogged(): array
return $attributes;
}

public function shouldlogOnlyDirty(): bool
public function shouldLogOnlyDirty(): bool
{
if (! isset(static::$logOnlyDirty)) {
return false;
Expand All @@ -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;
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 4c221bd

Please sign in to comment.