Passed
Push — master ( 1b5140...aad147 )
by RN
02:02
created
src/Dolphin/ORM.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     public function __call($method, $parameters)
28 28
     {
29
-        if($method== 'asArray'){
29
+        if ($method == 'asArray') {
30 30
             // $obj = new Utils();
31 31
         }
32 32
     }
Please login to merge, or discard this patch.
src/Dolphin/Utils/Utils.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function turnObject($destination, $sourceObject)
29 29
     {
30 30
         $destination = new $destination();
31
-        if(is_object($sourceObject)){
31
+        if (is_object($sourceObject)) {
32 32
             $sourceReflection = new \ReflectionObject($sourceObject);
33 33
             $destinationReflection = new \ReflectionObject($destination);
34 34
             $sourceProperties = $sourceReflection->getProperties();
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                 if ($destinationReflection->hasProperty($name)) {
42 42
                     $propDest = $destinationReflection->getProperty($name);
43 43
                     $propDest->setAccessible(true);
44
-                    $propDest->setValue($destination,$value);
44
+                    $propDest->setValue($destination, $value);
45 45
                 } else {
46 46
                     $destination->$name = $value;
47 47
                 }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function turnObjects($destination, $data)
64 64
     {
65 65
         $destination = new $destination();
66
-        if(count($data)){
66
+        if (count($data)) {
67 67
             $destinationReflection = new \ReflectionObject($destination);
68 68
             $destination->data = json_decode(json_encode($data, true));
69 69
         }
Please login to merge, or discard this patch.