@@ -16,7 +16,7 @@ |
||
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 | ); |
@@ -16,7 +16,7 @@ |
||
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 | ); |
@@ -65,7 +65,7 @@ |
||
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 | } |
@@ -58,7 +58,7 @@ |
||
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 | } |
@@ -20,7 +20,7 @@ |
||
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 | ); |
@@ -38,7 +38,7 @@ |
||
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 | } |
@@ -56,7 +56,7 @@ |
||
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 | } |