@@ -9,7 +9,6 @@ |
||
| 9 | 9 | |
| 10 | 10 | namespace Rafrsr\LibArray2Object; |
| 11 | 11 | |
| 12 | -use Rafrsr\LibArray2Object\Parser\ObjectParser; |
|
| 13 | 12 | use Rafrsr\LibArray2Object\Writer\AccessorWriter; |
| 14 | 13 | use Rafrsr\LibArray2Object\Writer\PropertyWriterInterface; |
| 15 | 14 | |
@@ -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 | } |