@@ -10,7 +10,7 @@ |
||
10 | 10 | ->disableOriginalConstructor() |
11 | 11 | ->getMockForAbstractClass(); |
12 | 12 | $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class) |
13 | - ->setMethods(['get']) |
|
13 | + ->setMethods([ 'get' ]) |
|
14 | 14 | ->getMockForAbstractClass(); |
15 | 15 | $container->expects(static::at(0)) |
16 | 16 | ->method('get') |
@@ -10,7 +10,7 @@ |
||
10 | 10 | ->disableOriginalConstructor() |
11 | 11 | ->getMockForAbstractClass(); |
12 | 12 | $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class) |
13 | - ->setMethods(['get']) |
|
13 | + ->setMethods([ 'get' ]) |
|
14 | 14 | ->getMockForAbstractClass(); |
15 | 15 | $container->expects(static::at(0)) |
16 | 16 | ->method('get') |
@@ -10,33 +10,33 @@ discard block |
||
10 | 10 | ->disableOriginalConstructor() |
11 | 11 | ->getMockForAbstractClass(); |
12 | 12 | $menuHelper = new \Menu\View\Helper\MenuUrlHelper($urlHelper); |
13 | - static::assertSame('http://test.example.com', $menuHelper(['href' => 'http://test.example.com'])); |
|
13 | + static::assertSame('http://test.example.com', $menuHelper([ 'href' => 'http://test.example.com' ])); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | public function testInvokingUrlHelperWithPageSlugShouldReturnString() |
17 | 17 | { |
18 | 18 | $urlHelper = $this->getMockBuilder(\Zend\Expressive\Helper\UrlHelper::class) |
19 | - ->setMethods(['__invoke']) |
|
19 | + ->setMethods([ '__invoke' ]) |
|
20 | 20 | ->disableOriginalConstructor() |
21 | 21 | ->getMockForAbstractClass(); |
22 | 22 | $urlHelper->expects(static::once()) |
23 | 23 | ->method('__invoke') |
24 | 24 | ->willReturn('test'); |
25 | 25 | $menuHelper = new \Menu\View\Helper\MenuUrlHelper($urlHelper); |
26 | - static::assertSame('test', $menuHelper(['page_slug' => 'test-slug', 'href' => false])); |
|
26 | + static::assertSame('test', $menuHelper([ 'page_slug' => 'test-slug', 'href' => false ])); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | public function testInvokingUrlHelperWithCategorySlugShouldReturnString() |
30 | 30 | { |
31 | 31 | $urlHelper = $this->getMockBuilder(\Zend\Expressive\Helper\UrlHelper::class) |
32 | - ->setMethods(['__invoke']) |
|
32 | + ->setMethods([ '__invoke' ]) |
|
33 | 33 | ->disableOriginalConstructor() |
34 | 34 | ->getMockForAbstractClass(); |
35 | 35 | $urlHelper->expects(static::once()) |
36 | 36 | ->method('__invoke') |
37 | 37 | ->willReturn('test'); |
38 | 38 | $menuHelper = new \Menu\View\Helper\MenuUrlHelper($urlHelper); |
39 | - static::assertSame('test', $menuHelper(['category_slug' => 'test-slug', 'href' => false, 'page_slug' => false])); |
|
39 | + static::assertSame('test', $menuHelper([ 'category_slug' => 'test-slug', 'href' => false, 'page_slug' => false ])); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | public function testInvokingUrlHelperWithAllParamsFalseShouldReturnString() |
@@ -45,6 +45,6 @@ discard block |
||
45 | 45 | ->disableOriginalConstructor() |
46 | 46 | ->getMockForAbstractClass(); |
47 | 47 | $menuHelper = new \Menu\View\Helper\MenuUrlHelper($urlHelper); |
48 | - static::assertSame('#', $menuHelper(['category_slug' => false, 'href' => false, 'page_slug' => false])); |
|
48 | + static::assertSame('#', $menuHelper([ 'category_slug' => false, 'href' => false, 'page_slug' => false ])); |
|
49 | 49 | } |
50 | 50 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | ->disableOriginalConstructor() |
11 | 11 | ->getMockForAbstractClass(); |
12 | 12 | $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class) |
13 | - ->setMethods(['get']) |
|
13 | + ->setMethods([ 'get' ]) |
|
14 | 14 | ->getMockForAbstractClass(); |
15 | 15 | $container->expects(static::at(0)) |
16 | 16 | ->method('get') |
@@ -10,7 +10,7 @@ |
||
10 | 10 | ->disableOriginalConstructor() |
11 | 11 | ->getMockForAbstractClass(); |
12 | 12 | $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class) |
13 | - ->setMethods(['get']) |
|
13 | + ->setMethods([ 'get' ]) |
|
14 | 14 | ->getMockForAbstractClass(); |
15 | 15 | $container->expects(static::at(0)) |
16 | 16 | ->method('get') |
@@ -10,7 +10,7 @@ |
||
10 | 10 | ->disableOriginalConstructor() |
11 | 11 | ->getMockForAbstractClass(); |
12 | 12 | $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class) |
13 | - ->setMethods(['get']) |
|
13 | + ->setMethods([ 'get' ]) |
|
14 | 14 | ->getMockForAbstractClass(); |
15 | 15 | $container->expects(static::at(0)) |
16 | 16 | ->method('get') |
@@ -10,7 +10,7 @@ |
||
10 | 10 | ->disableOriginalConstructor() |
11 | 11 | ->getMockForAbstractClass(); |
12 | 12 | $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class) |
13 | - ->setMethods(['get']) |
|
13 | + ->setMethods([ 'get' ]) |
|
14 | 14 | ->getMockForAbstractClass(); |
15 | 15 | $container->expects(static::at(0)) |
16 | 16 | ->method('get') |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Std; |
4 | 4 | |
5 | 5 | use Psr\Http\Message\ResponseInterface as Response; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Std; |
4 | 4 | |
5 | 5 | class FilterException extends \Exception |