Completed
Push — master ( 82389f...393c59 )
by Rafael
02:39
created
tests/Array2ObjectTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         //register custom parser
56 56
         Array2Object::registerParser(
57 57
             new CallableParser(
58
-                function ($value, $type, \ReflectionProperty $property, $object) {
58
+                function($value, $type, \ReflectionProperty $property, $object) {
59 59
                     if ($property->name === 'salary') {
60 60
                         $value = str_replace('$', null, $value);
61 61
                     }
Please login to merge, or discard this patch.
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/Matcher/CallableMatcherTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     public function buildMatcher()
20 20
     {
21 21
         return new CallableMatcher(
22
-            function (\ReflectionProperty $property, $givenName) {
22
+            function(\ReflectionProperty $property, $givenName) {
23 23
                 return ($givenName === 'prueba' && $property->getName() === 'test');
24 24
             }
25 25
         );
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.
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/Object2ArrayTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         //register custom parser
56 56
         Array2Object::registerParser(
57 57
             new CallableParser(
58
-                function ($value, $type, \ReflectionProperty $property, $object) {
58
+                function($value, $type, \ReflectionProperty $property, $object) {
59 59
                     if ($property->name === 'salary') {
60 60
                         $value = str_replace('$', null, $value);
61 61
                     }
Please login to merge, or discard this patch.