Skip to content

Commit

Permalink
fixed indentation to match original format
Browse files Browse the repository at this point in the history
  • Loading branch information
ps613 authored and duellsy committed Sep 9, 2020
1 parent 49e2db2 commit 2c68e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Venturecraft/Revisionable/RevisionableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function preSave()
// we can only safely compare basic items,
// so for now we drop any object based items, like DateTime
foreach ($this->updatedData as $key => $val) {
$castCheck = ['object', 'array'];
$castCheck = ['object', 'array'];
if (isset($this->casts[$key]) && in_array(gettype($val), $castCheck) && in_array($this->casts[$key], $castCheck) && isset($this->originalData[$key])) {
// Sorts the keys of a JSON object due Normalization performed by MySQL
// So it doesn't set false flag if it is changed only order of key or whitespace after comma
Expand Down

0 comments on commit 2c68e7a

Please sign in to comment.