@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | $this->assertEquals($admin, $helper->getCurrent()); |
22 | 22 | |
23 | - $this->assertExceptionRaised(Exception::class, function () use ($helper, $admin) { |
|
23 | + $this->assertExceptionRaised(Exception::class, function() use ($helper, $admin) { |
|
24 | 24 | $helper->setCurrent($admin); |
25 | 25 | }); |
26 | 26 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $metadata |
49 | 49 | ->expects($this->atLeastOnce()) |
50 | 50 | ->method('getFieldMapping') |
51 | - ->willReturnCallback(function (string $field) use ($fields) { |
|
51 | + ->willReturnCallback(function(string $field) use ($fields) { |
|
52 | 52 | $this->assertArrayHasKey($field, $fields); |
53 | 53 | |
54 | 54 | return [ |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $metadata |
60 | 60 | ->expects($this->atLeastOnce()) |
61 | 61 | ->method('getTypeOfField') |
62 | - ->willReturnCallback(function (string $field) use ($fields) { |
|
62 | + ->willReturnCallback(function(string $field) use ($fields) { |
|
63 | 63 | $this->assertArrayHasKey($field, $fields); |
64 | 64 | |
65 | 65 | return 'string'; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $metadataFactory |
100 | 100 | ->expects($this->once()) |
101 | 101 | ->method('getMetadataFor') |
102 | - ->willReturnCallback(function (string $class) { |
|
102 | + ->willReturnCallback(function(string $class) { |
|
103 | 103 | $this->assertEquals('MyLittleClass', $class); |
104 | 104 | |
105 | 105 | throw new Exception(); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | 'class' => 'list-group cms-menu-'.$this->menuName, |
34 | 34 | ], |
35 | 35 | ]) |
36 | - ->setNormalizer('children', function (Options $options, $value) { |
|
36 | + ->setNormalizer('children', function(Options $options, $value) { |
|
37 | 37 | if (!is_array($value)) { |
38 | 38 | throw new Exception('The menu items should an array for menu "'.$this->menuName.'"'); |
39 | 39 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'text' => null, |
45 | 45 | 'children' => [], |
46 | 46 | ]) |
47 | - ->setNormalizer('admin', function (Options $options, $adminName) { |
|
47 | + ->setNormalizer('admin', function(Options $options, $adminName) { |
|
48 | 48 | // user has to defined either an admin name and an action name, or a route name with optional |
49 | 49 | // parameters, or an url |
50 | 50 | if (null === $adminName |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return $adminName; |
58 | 58 | }) |
59 | 59 | // if an admin name is set, an action name can provided. This action will be the menu link |
60 | - ->setNormalizer('action', function (Options $options, $action) { |
|
60 | + ->setNormalizer('action', function(Options $options, $action) { |
|
61 | 61 | // if an action name is provided, an admin name should be defined too |
62 | 62 | if (null !== $action && null === $options->offsetGet('admin')) { |
63 | 63 | throw new InvalidOptionsException('You should provide an admin name for this action '.$action); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | return $action; |
72 | 72 | }) |
73 | - ->setNormalizer('children', function (Options $options, $items) { |
|
73 | + ->setNormalizer('children', function(Options $options, $items) { |
|
74 | 74 | if (!is_array($items)) { |
75 | 75 | $items = []; |
76 | 76 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | return $resolvedItems; |
89 | 89 | }) |
90 | - ->setNormalizer('text', function (Options $options, $text) { |
|
90 | + ->setNormalizer('text', function(Options $options, $text) { |
|
91 | 91 | if ($text) { |
92 | 92 | return $text; |
93 | 93 | } |