Completed
Push — master ( ef9d83...bc740a )
by Rafael
03:05
created
tests/Array2ObjectTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 = [
Please login to merge, or discard this patch.