@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function assertArrayStructureEquals(array $structure, array $array) |
18 | 18 | { |
19 | - $structureFirstLevel = array_map(function ($value, $key) { |
|
19 | + $structureFirstLevel = array_map(function($value, $key) { |
|
20 | 20 | return is_array($value) ? $key : $value; |
21 | 21 | }, $structure, array_keys($structure)); |
22 | 22 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | PHPUnit::assertEquals($structureFirstLevel, $responseFirstLevel, '', 0.0, 10, true); |
27 | 27 | } |
28 | 28 | |
29 | - $structureOtherLevels = array_filter($structure, function ($value) { |
|
29 | + $structureOtherLevels = array_filter($structure, function($value) { |
|
30 | 30 | return is_array($value); |
31 | 31 | }); |
32 | 32 |
@@ -22,15 +22,15 @@ |
||
22 | 22 | { |
23 | 23 | $trait = $this; |
24 | 24 | |
25 | - TestResponse::macro('assertJsonStructureEquals', function ($structure) use ($trait) { |
|
25 | + TestResponse::macro('assertJsonStructureEquals', function($structure) use ($trait) { |
|
26 | 26 | return $trait->assertJsonStructureEquals($structure, $this->decodeResponseJson()); |
27 | 27 | }); |
28 | 28 | |
29 | - TestResponse::macro('seeJsonTypedStructure', function ($structure) use ($trait) { |
|
29 | + TestResponse::macro('seeJsonTypedStructure', function($structure) use ($trait) { |
|
30 | 30 | return $trait->seeJsonTypedStructure($structure, $this->decodeResponseJson()); |
31 | 31 | }); |
32 | 32 | |
33 | - TestResponse::macro('jsonResponse', function ($key = null) use ($trait) { |
|
33 | + TestResponse::macro('jsonResponse', function($key = null) use ($trait) { |
|
34 | 34 | return $trait->jsonResponse($key, $this->decodeResponseJson()); |
35 | 35 | }); |
36 | 36 | } |