@@ -36,9 +36,9 @@ |
||
| 36 | 36 | //register custom parser |
| 37 | 37 | $object2Array = Object2ArrayBuilder::create()->addParser( |
| 38 | 38 | new CallableParser( |
| 39 | - function ($value, $type, \ReflectionProperty $property, $object) { |
|
| 39 | + function($value, $type, \ReflectionProperty $property, $object) { |
|
| 40 | 40 | if ($property->getName() === 'salary') { |
| 41 | - $value = '$' . $value; |
|
| 41 | + $value = '$'.$value; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | return $value; |
@@ -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 | } |