Completed
Push — master ( b76987...aab727 )
by Rafael
06:50
created
tests/Parser/CallableParserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function buildParser()
17 17
     {
18 18
         return new CallableParser(
19
-            function ($value, $type, \ReflectionProperty $property, $object) {
19
+            function($value, $type, \ReflectionProperty $property, $object) {
20 20
                 return ($value === 'success') ? true : false;
21 21
             }
22 22
         );
Please login to merge, or discard this patch.
tests/Naming/CallableNamingStrategyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function testTransformName()
17 17
     {
18 18
         $strategy = new CallableNamingStrategy(
19
-            function ($name) {
19
+            function($name) {
20 20
                 return strtoupper($name);
21 21
             }
22 22
         );
Please login to merge, or discard this patch.
src/Object2Array.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             $array = $object->__toArray();
66 66
             array_walk_recursive(
67 67
                 $array,
68
-                function (&$item) {
68
+                function(&$item) {
69 69
                     if (is_object($item)) {
70 70
                         $item = $this->createArray($item);
71 71
                     }
Please login to merge, or discard this patch.
tests/Array2ObjectTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         //register custom parser
59 59
         $array2Object = Array2ObjectBuilder::create()->addParser(
60 60
             new CallableParser(
61
-                function ($value, $type, \ReflectionProperty $property, $object) {
61
+                function($value, $type, \ReflectionProperty $property, $object) {
62 62
                     if ($property->getName() === 'salary') {
63 63
                         $value = str_replace('$', null, $value);
64 64
                     }
Please login to merge, or discard this patch.
tests/Matcher/CallableMatcherTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function buildMatcher()
21 21
     {
22 22
         return new CallableMatcher(
23
-            function (\ReflectionProperty $property, $givenName) {
23
+            function(\ReflectionProperty $property, $givenName) {
24 24
                 return $givenName === 'prueba' && $property->getName() === 'test';
25 25
             }
26 26
         );
Please login to merge, or discard this patch.
tests/Object2ArrayTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         //register custom parser
39 39
         $object2Array = Object2ArrayBuilder::create()->addParser(
40 40
             new CallableParser(
41
-                function ($value, $type, \ReflectionProperty $property, $object) {
41
+                function($value, $type, \ReflectionProperty $property, $object) {
42 42
                     if ($property->getName() === 'salary') {
43 43
                         $value = '$'.$value;
44 44
                     }
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
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             $props_arr[$f] = $prop;
57 57
         }
58 58
         if ($parentClass = $class->getParentClass()) {
59
-            $parent_props_arr = static::getClassProperties($parentClass);//RECURSION
59
+            $parent_props_arr = static::getClassProperties($parentClass); //RECURSION
60 60
             if (count($parent_props_arr) > 0) {
61 61
                 $props_arr = array_merge($parent_props_arr, $props_arr);
62 62
             }
Please login to merge, or discard this patch.