@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ], |
40 | 40 | '@testCreateServiceInvokesItselfAndResetsCreationOptions' => [ |
41 | 41 | 'class' => AbstractCustomizableFieldsetFactory::class, |
42 | - 'mock' => [ '__invoke' ] |
|
42 | + 'mock' => ['__invoke'] |
|
43 | 43 | ], |
44 | 44 | '@testInvokationThrowsExceptionIfOptionsNameIsNotSpecified' => [ |
45 | 45 | 'class' => ConcreteAbstractCustomizableFieldsetFactoryWithClassName::class |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | ], |
53 | 53 | ]; |
54 | 54 | |
55 | - private $inheritance = [ FactoryInterface::class ]; |
|
55 | + private $inheritance = [FactoryInterface::class]; |
|
56 | 56 | |
57 | 57 | public function testCreationOptions() |
58 | 58 | { |
@@ -38,10 +38,10 @@ |
||
38 | 38 | */ |
39 | 39 | private $target = [ |
40 | 40 | AjaxUrlFactory::class, |
41 | - '@testCreateService' => [ 'mock' => ['__invoke']], |
|
41 | + '@testCreateService' => ['mock' => ['__invoke']], |
|
42 | 42 | ]; |
43 | 43 | |
44 | - private $inheritance = [ FactoryInterface::class ]; |
|
44 | + private $inheritance = [FactoryInterface::class]; |
|
45 | 45 | |
46 | 46 | public function testCreateService() |
47 | 47 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | ], |
43 | 43 | ]; |
44 | 44 | |
45 | - private $inheritance = [ FactoryInterface::class ]; |
|
45 | + private $inheritance = [FactoryInterface::class]; |
|
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @testdox Method createService() proxies to __invoke() |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | private $target = DefaultNavigationFactory::class; |
35 | 35 | |
36 | - private $inheritance = [ '\Zend\Navigation\Service\DefaultNavigationFactory' ]; |
|
36 | + private $inheritance = ['\Zend\Navigation\Service\DefaultNavigationFactory']; |
|
37 | 37 | |
38 | 38 | public function testSetsActiveFlagOnPagesProvidingTheActiveOnOption() |
39 | 39 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | 'active_on' => 'notMatchedRoute', |
46 | 46 | ], |
47 | 47 | 'page3' => [ |
48 | - 'active_on' => [ 'matchedRouteName', 'anotherRoute' ], |
|
48 | + 'active_on' => ['matchedRouteName', 'anotherRoute'], |
|
49 | 49 | ], |
50 | 50 | 'page4' => [] |
51 | 51 | ]; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | 'active_on' => 'notMatchedRoute', |
76 | 76 | ], |
77 | 77 | 'page3' => [ |
78 | - 'active_on' => [ 'matchedRouteName', 'anotherRoute' ], |
|
78 | + 'active_on' => ['matchedRouteName', 'anotherRoute'], |
|
79 | 79 | ], |
80 | 80 | 'page4' => [] |
81 | 81 | ]; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | protected $target = '\Core\Controller\AdminControllerEvent'; |
30 | 30 | |
31 | - protected $inheritance = [ '\Zend\EventManager\Event' ]; |
|
31 | + protected $inheritance = ['\Zend\EventManager\Event']; |
|
32 | 32 | |
33 | 33 | public function testCreatesModelPriorityListUponCreation() |
34 | 34 | { |
@@ -62,10 +62,10 @@ discard block |
||
62 | 62 | public function provideAddViewTemplateTestData() |
63 | 63 | { |
64 | 64 | return [ |
65 | - [ [ 'test', 'template' ], ['test', 'template', [], 0] ], |
|
66 | - [ [ 'test', 'template', [ 'var' => 'iable']], [ 'test', 'template', [ 'var' => 'iable'], 0] ], |
|
67 | - [ [ 'test', 'template', 10] , ['test', 'template', [], 10] ], |
|
68 | - [ [ 'test', 'template', [ 'var' => 'iable'], 10 ], [ 'test', 'template', [ 'var' => 'iable'], 10 ]], |
|
65 | + [['test', 'template'], ['test', 'template', [], 0]], |
|
66 | + [['test', 'template', ['var' => 'iable']], ['test', 'template', ['var' => 'iable'], 0]], |
|
67 | + [['test', 'template', 10], ['test', 'template', [], 10]], |
|
68 | + [['test', 'template', ['var' => 'iable'], 10], ['test', 'template', ['var' => 'iable'], 10]], |
|
69 | 69 | ]; |
70 | 70 | } |
71 | 71 | |
@@ -91,12 +91,12 @@ discard block |
||
91 | 91 | public function provideAddViewVariablesTestData() |
92 | 92 | { |
93 | 93 | return [ |
94 | - [ [ 'test' ] , ['test', ['name' => 'test'], 0] ], |
|
95 | - [ [ 'test', [ 'var' => 'iable'] ], [ 'test', [ 'name' => 'test', 'var' => 'iable'], 0 ] ], |
|
96 | - [ [ 'test', [ 'var' => 'iable'], 10], [ 'test', [ 'name' => 'test', 'var' => 'iable'], 10 ]], |
|
97 | - [ [ [ 'name' => 'other', 'var' => 'test' ], 10], ['other', ['name' => 'other', 'var' => 'test' ], 10] ], |
|
98 | - [ [ 'test', ['name' => 'other'] ], [ 'test', [ 'name' => 'other' ], 0] ], |
|
99 | - [ [ 'test', 10 ], ['test', ['name' => 'test'], 10]], |
|
94 | + [['test'], ['test', ['name' => 'test'], 0]], |
|
95 | + [['test', ['var' => 'iable']], ['test', ['name' => 'test', 'var' => 'iable'], 0]], |
|
96 | + [['test', ['var' => 'iable'], 10], ['test', ['name' => 'test', 'var' => 'iable'], 10]], |
|
97 | + [[['name' => 'other', 'var' => 'test'], 10], ['other', ['name' => 'other', 'var' => 'test'], 10]], |
|
98 | + [['test', ['name' => 'other']], ['test', ['name' => 'other'], 0]], |
|
99 | + [['test', 10], ['test', ['name' => 'test'], 10]], |
|
100 | 100 | ]; |
101 | 101 | } |
102 | 102 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'class' => '\Core\Controller\Plugin\SearchForm', |
40 | 40 | 'args' => 'getTargetArgs', |
41 | 41 | '@testInvokationProxiesToGet' => [ |
42 | - 'mock' => [ 'get' ], |
|
42 | + 'mock' => ['get'], |
|
43 | 43 | 'args' => false, |
44 | 44 | ], |
45 | 45 | '@testInheritance' => [ |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | ], |
48 | 48 | ]; |
49 | 49 | |
50 | - protected $inheritance = [ AbstractPlugin::class ]; |
|
50 | + protected $inheritance = [AbstractPlugin::class]; |
|
51 | 51 | |
52 | 52 | protected function getTargetArgs() |
53 | 53 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function testInvokationProxiesToGet() |
64 | 64 | { |
65 | 65 | $form = 'TestForm'; |
66 | - $options = ['test' => 'test']; |
|
66 | + $options = ['test' => 'test']; |
|
67 | 67 | |
68 | 68 | $this->target->expects($this->once())->method('get')->with($form, $options); |
69 | 69 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | ], |
46 | 46 | ]; |
47 | 47 | |
48 | - protected $inheritance = [ '\Zend\Mvc\Controller\Plugin\AbstractPlugin' ]; |
|
48 | + protected $inheritance = ['\Zend\Mvc\Controller\Plugin\AbstractPlugin']; |
|
49 | 49 | |
50 | 50 | public function testInvokationWithoutArgumentsReturnsSelf() |
51 | 51 | { |
@@ -91,16 +91,16 @@ discard block |
||
91 | 91 | public function argumentsStackProvider() |
92 | 92 | { |
93 | 93 | return [ |
94 | - [ 'paginator', ['paginator'], ['as' => 'paginator', 'paginator', []] ], |
|
95 | - [ 'paginator', ['name', 'alias'], ['as' => 'alias', 'name', []] ], |
|
96 | - [ 'paginator', ['name', ['param' => 'value'], 'alias'], ['as' => 'alias', 'name', ['param' => 'value']] ], |
|
97 | - [ 'paginator', ['name', []], ['as' => 'paginator', 'name', []]], |
|
98 | - [ 'form', ['formName'], ['as' => 'searchform', 'formName', null]], |
|
99 | - [ 'form', ['formName', ['testOpt' => 'testVal']], ['as' => 'searchform', 'formName', ['testOpt' => 'testVal']]], |
|
100 | - [ 'form', ['formName', null, 'alias'], ['as' => 'alias', 'formName', null]], |
|
101 | - [ 'form', ['formName', 'alias'], ['as' => 'alias', 'formName', null]], |
|
102 | - [ 'params', ['namespace'], ['namespace', ['page' => 1]]], |
|
103 | - [ 'params', ['namespace', ['param' => 'value']], ['namespace', ['param' => 'value']]], |
|
94 | + ['paginator', ['paginator'], ['as' => 'paginator', 'paginator', []]], |
|
95 | + ['paginator', ['name', 'alias'], ['as' => 'alias', 'name', []]], |
|
96 | + ['paginator', ['name', ['param' => 'value'], 'alias'], ['as' => 'alias', 'name', ['param' => 'value']]], |
|
97 | + ['paginator', ['name', []], ['as' => 'paginator', 'name', []]], |
|
98 | + ['form', ['formName'], ['as' => 'searchform', 'formName', null]], |
|
99 | + ['form', ['formName', ['testOpt' => 'testVal']], ['as' => 'searchform', 'formName', ['testOpt' => 'testVal']]], |
|
100 | + ['form', ['formName', null, 'alias'], ['as' => 'alias', 'formName', null]], |
|
101 | + ['form', ['formName', 'alias'], ['as' => 'alias', 'formName', null]], |
|
102 | + ['params', ['namespace'], ['namespace', ['page' => 1]]], |
|
103 | + ['params', ['namespace', ['param' => 'value']], ['namespace', ['param' => 'value']]], |
|
104 | 104 | ]; |
105 | 105 | } |
106 | 106 | |
@@ -124,14 +124,14 @@ discard block |
||
124 | 124 | { |
125 | 125 | $this->target->expects($this->exactly(2))->method('paginator') |
126 | 126 | ->withConsecutive( |
127 | - [ 'Name' ], |
|
128 | - [ 'Name', 'Alias'] |
|
127 | + ['Name'], |
|
128 | + ['Name', 'Alias'] |
|
129 | 129 | )->willReturn($this->returnSelf()); |
130 | 130 | |
131 | 131 | $this->target->expects($this->exactly(2))->method('form') |
132 | 132 | ->withConsecutive( |
133 | - [ 'Name' ], |
|
134 | - [ 'Name', 'Alias'] |
|
133 | + ['Name'], |
|
134 | + ['Name', 'Alias'] |
|
135 | 135 | )->willReturn($this->returnSelf()); |
136 | 136 | |
137 | 137 | $stack = [ |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | $controller = $this->controller; |
66 | 66 | $installer = $this->getMockBuilder(AssetsInstaller::class) |
67 | - ->setMethods(['install','setOutput','setInput']) |
|
67 | + ->setMethods(['install', 'setOutput', 'setInput']) |
|
68 | 68 | ->getMock() |
69 | 69 | ; |
70 | 70 | $installer->expects($this->once()) |
@@ -86,9 +86,9 @@ discard block |
||
86 | 86 | public function getTestInstallMethod() |
87 | 87 | { |
88 | 88 | return [ |
89 | - ['--copy', AssetsInstaller::METHOD_COPY], |
|
90 | - ['--relative', AssetsInstaller::METHOD_RELATIVE_SYMLINK], |
|
91 | - ['--symlink', AssetsInstaller::METHOD_ABSOLUTE_SYMLINK], |
|
89 | + ['--copy', AssetsInstaller::METHOD_COPY], |
|
90 | + ['--relative', AssetsInstaller::METHOD_RELATIVE_SYMLINK], |
|
91 | + ['--symlink', AssetsInstaller::METHOD_ABSOLUTE_SYMLINK], |
|
92 | 92 | ]; |
93 | 93 | } |
94 | 94 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | ) |
188 | 188 | ); |
189 | 189 | } |
190 | - $this->assertTrue((bool)preg_match($pattern, $responseHeader->getFieldValue())); |
|
190 | + $this->assertTrue((bool) preg_match($pattern, $responseHeader->getFieldValue())); |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
@@ -213,6 +213,6 @@ discard block |
||
213 | 213 | ) |
214 | 214 | ); |
215 | 215 | } |
216 | - $this->assertFalse((bool)preg_match($pattern, $responseHeader->getFieldValue())); |
|
216 | + $this->assertFalse((bool) preg_match($pattern, $responseHeader->getFieldValue())); |
|
217 | 217 | } |
218 | 218 | } |