Completed
Push — master ( 366fbf...5f1478 )
by Rafael
02:45
created
src/Array2ObjectBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 
10 10
 namespace Rafrsr\LibArray2Object;
11 11
 
12
-use Rafrsr\LibArray2Object\Parser\ObjectParser;
13 12
 use Rafrsr\LibArray2Object\Writer\AccessorWriter;
14 13
 use Rafrsr\LibArray2Object\Writer\PropertyWriterInterface;
15 14
 
Please login to merge, or discard this patch.
tests/Object2ArrayTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
         //register custom parser
37 37
         $object2Array = Object2ArrayBuilder::create()->addParser(
38 38
             new CallableParser(
39
-                function ($value, $type, \ReflectionProperty $property, $object) {
39
+                function($value, $type, \ReflectionProperty $property, $object) {
40 40
                     if ($property->getName() === 'salary') {
41
-                        $value = '$' . $value;
41
+                        $value = '$'.$value;
42 42
                     }
43 43
 
44 44
                     return $value;
Please login to merge, or discard this patch.
src/Utils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             $props_arr[$f] = $prop;
32 32
         }
33 33
         if ($parentClass = $refClass->getParentClass()) {
34
-            $parent_props_arr = static::getClassProperties($parentClass);//RECURSION
34
+            $parent_props_arr = static::getClassProperties($parentClass); //RECURSION
35 35
             if (count($parent_props_arr) > 0) {
36 36
                 $props_arr = array_merge($parent_props_arr, $props_arr);
37 37
             }
Please login to merge, or discard this patch.