@@ -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 | ); |
@@ -31,7 +31,7 @@ |
||
| 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 | } |
@@ -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 | } |