Passed
Pull Request — master (#5)
by
unknown
01:49
created
src/DataLayer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -269,9 +269,9 @@  discard block
 block discarded – undo
269 269
      */
270 270
     protected function required(): bool
271 271
     {
272
-        $data = (array)$this->data();
272
+        $data = (array) $this->data();
273 273
         foreach ($this->required as $field) {
274
-            if (empty($data[$field])) {
274
+            if (empty($data[ $field ])) {
275 275
                 return false;
276 276
             }
277 277
         }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
             $len = count($segments);
306 306
             if ($len > 0) {
307 307
                 // model(entity) name is default lower case.
308
-                $name = strtolower($segments[$len - 1]);
308
+                $name = strtolower($segments[ $len - 1 ]);
309 309
 
310 310
                 $this->entity = $name;
311 311
             }
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
         // Type of string is not handled for now.
322 322
         // But it can be done soon.
323 323
         if (empty($this->required)) {
324
-            $this->required = [];
324
+            $this->required = [ ];
325 325
         }
326 326
     }
327 327
 
@@ -352,8 +352,8 @@  discard block
 block discarded – undo
352 352
      */
353 353
     protected function safe(): ?array
354 354
     {
355
-        $safe = (array)$this->data;
356
-        unset($safe[$this->primary]);
355
+        $safe = (array) $this->data;
356
+        unset($safe[ $this->primary ]);
357 357
 
358 358
         return $safe;
359 359
     }
Please login to merge, or discard this patch.