Passed
Pull Request — master (#21)
by
unknown
01:35
created
src/DataLayer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function setData(?array $data): ?object
114 114
     {
115
-        $array = array_replace_recursive((array)$this->data, $data);
116
-        return $this->data = (object)$array;
115
+        $array = array_replace_recursive((array) $this->data, $data);
116
+        return $this->data = (object) $array;
117 117
     }
118 118
 
119 119
     /**
@@ -285,9 +285,9 @@  discard block
 block discarded – undo
285 285
      */
286 286
     protected function required(): bool
287 287
     {
288
-        $data = (array)$this->data();
288
+        $data = (array) $this->data();
289 289
         foreach ($this->required as $field) {
290
-            if (empty($data[$field])) {
290
+            if (empty($data[ $field ])) {
291 291
                 return false;
292 292
             }
293 293
         }
@@ -299,8 +299,8 @@  discard block
 block discarded – undo
299 299
      */
300 300
     protected function safe(): ?array
301 301
     {
302
-        $safe = (array)$this->data;
303
-        unset($safe[$this->primary]);
302
+        $safe = (array) $this->data;
303
+        unset($safe[ $this->primary ]);
304 304
 
305 305
         return $safe;
306 306
     }
Please login to merge, or discard this patch.