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