@@ -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 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | public function testArray2Object() |
20 | 20 | { |
21 | 21 | $teamArray = [ |
22 | - 'id' => 1,//read-only |
|
22 | + 'id' => 1, //read-only |
|
23 | 23 | 'name' => 'Dream Team', |
24 | 24 | 'Manager' => [ |
25 | 25 | 'name' => 'Big Manager', |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | //register custom parser |
58 | 58 | $array2Object = Array2ObjectBuilder::create()->addParser( |
59 | 59 | new CallableParser( |
60 | - function ($value, $type, \ReflectionProperty $property, $object) { |
|
60 | + function($value, $type, \ReflectionProperty $property, $object) { |
|
61 | 61 | if ($property->getName() === 'salary') { |
62 | 62 | $value = str_replace('$', null, $value); |
63 | 63 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | static::assertFalse($team->getPlayers()[1]->isRegular()); |
149 | 149 | } |
150 | 150 | |
151 | - public function testArray2ObjectWithNestingChildrenOnlyOne(){ |
|
151 | + public function testArray2ObjectWithNestingChildrenOnlyOne() { |
|
152 | 152 | //with only one children |
153 | 153 | //https://github.com/rafrsr/lib-array2object/issues/1#issuecomment-228155603 |
154 | 154 | $teamArray = [ |