Skip to content

Commit f35ca14

Browse files
committed
Revert PHP Code Sniffer auto correct
1 parent 7a2d027 commit f35ca14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Jenssegers/Mongodb/Eloquent/Model.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ protected function getAttributeFromArray($key)
241241
if (str_contains($key, '.')) {
242242
return array_get($this->attributes, $key);
243243
}
244-
244+
245245
return parent::getAttributeFromArray($key);
246246
}
247247

@@ -258,7 +258,9 @@ public function setAttribute($key, $value)
258258
$builder = $this->newBaseQueryBuilder();
259259

260260
$value = $builder->convertKey($value);
261-
} // Support keys in dot notation.
261+
}
262+
263+
// Support keys in dot notation.
262264
elseif (str_contains($key, '.')) {
263265
if (in_array($key, $this->getDates()) && $value) {
264266
$value = $this->fromDateTime($value);

0 commit comments

Comments
 (0)