@@ -91,20 +91,20 @@ discard block |
||
91 | 91 | $this->viewResolver->expects($this->any()) |
92 | 92 | ->method('resolve') |
93 | 93 | ->willReturnMap([ |
94 | - ['mail/null-template',null,null], |
|
95 | - ['coretest/mail/null-template',null,__DIR__.'/fixtures/mail-template.phtml'], |
|
96 | - ['mail/template',null,__DIR__.'/fixtures/mail-template.phtml'], |
|
97 | - ['mail/exception',null,__DIR__.'/fixtures/error.phtml'] |
|
94 | + ['mail/null-template', null, null], |
|
95 | + ['coretest/mail/null-template', null, __DIR__.'/fixtures/mail-template.phtml'], |
|
96 | + ['mail/template', null, __DIR__.'/fixtures/mail-template.phtml'], |
|
97 | + ['mail/exception', null, __DIR__.'/fixtures/error.phtml'] |
|
98 | 98 | ]) |
99 | 99 | ; |
100 | 100 | |
101 | 101 | $container->expects($this->any()) |
102 | 102 | ->method('get') |
103 | 103 | ->willReturnMap([ |
104 | - ['Log/Core/Mail',$this->mailLog], |
|
105 | - ['ViewResolver',$this->viewResolver], |
|
106 | - ['EventManager',$this->events], |
|
107 | - ['ModuleManager',$this->moduleManager] |
|
104 | + ['Log/Core/Mail', $this->mailLog], |
|
105 | + ['ViewResolver', $this->viewResolver], |
|
106 | + ['EventManager', $this->events], |
|
107 | + ['ModuleManager', $this->moduleManager] |
|
108 | 108 | ]) |
109 | 109 | ; |
110 | 110 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | public function testTemplate() |
133 | 133 | { |
134 | 134 | $target = $this->target; |
135 | - $params = ['Hello' => 'World','this'=>'this should not rendered']; |
|
135 | + $params = ['Hello' => 'World', 'this'=>'this should not rendered']; |
|
136 | 136 | |
137 | 137 | $target($params); |
138 | 138 | $target->template('null-template'); |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $resolver->expects($this->any()) |
194 | 194 | ->method('resolve') |
195 | 195 | ->willReturnMap([ |
196 | - ['mail/exception',null,$tplFile] |
|
196 | + ['mail/exception', null, $tplFile] |
|
197 | 197 | ]) |
198 | 198 | ; |
199 | 199 | |
@@ -221,9 +221,9 @@ discard block |
||
221 | 221 | public function getTestInformationCompleteException() |
222 | 222 | { |
223 | 223 | return [ |
224 | - ['$from','A from email address'], |
|
225 | - ['$fromName','A from name'], |
|
226 | - ['$subject','A subject must be'], |
|
224 | + ['$from', 'A from email address'], |
|
225 | + ['$fromName', 'A from name'], |
|
226 | + ['$subject', 'A subject must be'], |
|
227 | 227 | ]; |
228 | 228 | } |
229 | 229 |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | public function providePaginatorCreationData() |
52 | 52 | { |
53 | 53 | return [ |
54 | - [ 'Test/Paginator', ['test' => 'value'], ['merged' => 'yes'], false, ['page' => 1, 'count' => 10, 'range' => 5] ], |
|
55 | - [ 'Test2/YetAnotherPager', ['page' => 2], [], true, ['page' => 2, 'count' => 10, 'range' => 5] ], |
|
56 | - [ 'Yet/Another', ['page' => 3, 'count' => 90, 'range' => 2], false, false, ['page' => 3, 'count' => 90, 'range' => 2] ], |
|
57 | - [ 'Even/Another', ['test' => 'value'], [], new \ArrayObject(['test' => 'value']), ['page' => 1, 'count' => 10, 'range' => 5]], |
|
54 | + ['Test/Paginator', ['test' => 'value'], ['merged' => 'yes'], false, ['page' => 1, 'count' => 10, 'range' => 5]], |
|
55 | + ['Test2/YetAnotherPager', ['page' => 2], [], true, ['page' => 2, 'count' => 10, 'range' => 5]], |
|
56 | + ['Yet/Another', ['page' => 3, 'count' => 90, 'range' => 2], false, false, ['page' => 3, 'count' => 90, 'range' => 2]], |
|
57 | + ['Even/Another', ['test' => 'value'], [], new \ArrayObject(['test' => 'value']), ['page' => 1, 'count' => 10, 'range' => 5]], |
|
58 | 58 | ]; |
59 | 59 | } |
60 | 60 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | $em = $this->getMockBuilder(EventManager::class) |
109 | 109 | ->disableOriginalConstructor() |
110 | - ->setMethods(['getEvent','triggerEvent']) |
|
110 | + ->setMethods(['getEvent', 'triggerEvent']) |
|
111 | 111 | ->getMock() |
112 | 112 | ; |
113 | 113 |
@@ -51,23 +51,23 @@ |
||
51 | 51 | return [ |
52 | 52 | [ |
53 | 53 | 'pageParamName', |
54 | - ['value' => 'somePage','setter_value'=>null,'default'=>'page'] |
|
54 | + ['value' => 'somePage', 'setter_value'=>null, 'default'=>'page'] |
|
55 | 55 | ], |
56 | 56 | [ |
57 | - 'propertiesMap' , |
|
58 | - ['value'=>'bar','setter_value'=>null,'default'=>array()] |
|
57 | + 'propertiesMap', |
|
58 | + ['value'=>'bar', 'setter_value'=>null, 'default'=>array()] |
|
59 | 59 | ], |
60 | 60 | [ |
61 | 61 | 'itemsPerPage', |
62 | - ['value' => 10,'setter_value'=>null,'default' => 25] |
|
62 | + ['value' => 10, 'setter_value'=>null, 'default' => 25] |
|
63 | 63 | ], |
64 | 64 | [ |
65 | 65 | 'queryKeysLowercased', |
66 | - ['value' => false,'setter_value'=>null,'default' => true] |
|
66 | + ['value' => false, 'setter_value'=>null, 'default' => true] |
|
67 | 67 | ], |
68 | 68 | [ |
69 | 69 | 'sortParamName', |
70 | - ['value' => 's','setter_value'=>null,'default' => 'sort'] |
|
70 | + ['value' => 's', 'setter_value'=>null, 'default' => 'sort'] |
|
71 | 71 | ], |
72 | 72 | ]; |
73 | 73 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param string $module |
66 | 66 | * @dataProvider getTestInvoke |
67 | 67 | */ |
68 | - public function testInvoke($config, $key=null, $module=null, $expected=null) |
|
68 | + public function testInvoke($config, $key = null, $module = null, $expected = null) |
|
69 | 69 | { |
70 | 70 | $plugin = new Config($config); |
71 | 71 | $plugin->setController($this->getController()); |
@@ -87,11 +87,11 @@ discard block |
||
87 | 87 | ]; |
88 | 88 | |
89 | 89 | return [ |
90 | - [ $config, 'dashboard', 'Jobs', $config['Jobs']['dashboard'] ], |
|
91 | - [ $config, 'dashboard', ['Jobs','Applications'], $combinedOutput ], |
|
92 | - [ $config, 'settings', null, $config['Core']['settings'] ], |
|
93 | - [ $config, 'Core', true, $config['Core'] ], |
|
94 | - [ $config, ['dashboard','form'],['Jobs','Application'], ['Jobs' =>$config['Jobs']] ], |
|
90 | + [$config, 'dashboard', 'Jobs', $config['Jobs']['dashboard']], |
|
91 | + [$config, 'dashboard', ['Jobs', 'Applications'], $combinedOutput], |
|
92 | + [$config, 'settings', null, $config['Core']['settings']], |
|
93 | + [$config, 'Core', true, $config['Core']], |
|
94 | + [$config, ['dashboard', 'form'], ['Jobs', 'Application'], ['Jobs' =>$config['Jobs']]], |
|
95 | 95 | ]; |
96 | 96 | } |
97 | 97 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $request = $this->createMock(Request::class); |
48 | 48 | |
49 | 49 | $target = $this->getMockBuilder(ContentController::class) |
50 | - ->setMethods(['getRequest','getPluginManager']) |
|
50 | + ->setMethods(['getRequest', 'getPluginManager']) |
|
51 | 51 | ->getMock() |
52 | 52 | ; |
53 | 53 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $request = $this->createMock(Request::class); |
100 | 100 | |
101 | 101 | $target = $this->getMockBuilder(ContentController::class) |
102 | - ->setMethods(['getRequest','getPluginManager']) |
|
102 | + ->setMethods(['getRequest', 'getPluginManager']) |
|
103 | 103 | ->getMock() |
104 | 104 | ; |
105 | 105 |
@@ -82,17 +82,17 @@ |
||
82 | 82 | $plugins->expects($this->any()) |
83 | 83 | ->method('get') |
84 | 84 | ->willReturnMap([ |
85 | - ['acl',null,$this->aclPlugin], |
|
86 | - ['params',null,$this->paramsPlugin] |
|
85 | + ['acl', null, $this->aclPlugin], |
|
86 | + ['params', null, $this->paramsPlugin] |
|
87 | 87 | ]) |
88 | 88 | ; |
89 | 89 | |
90 | 90 | $this->paramsPlugin->expects($this->any()) |
91 | 91 | ->method('__invoke') |
92 | 92 | ->willReturnMap([ |
93 | - [null,null,$this->paramsPlugin], |
|
94 | - ['filestore',null,'store.entity'], |
|
95 | - ['fileId',0,'dir/file.ext'] |
|
93 | + [null, null, $this->paramsPlugin], |
|
94 | + ['filestore', null, 'store.entity'], |
|
95 | + ['fileId', 0, 'dir/file.ext'] |
|
96 | 96 | ]) |
97 | 97 | ; |
98 | 98 | $this->paramsPlugin->expects($this->any()) |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | protected $target = '\Core\Controller\AdminController'; |
41 | 41 | |
42 | - protected $inheritance = [ 'Zend\Mvc\Controller\AbstractActionController' ]; |
|
42 | + protected $inheritance = ['Zend\Mvc\Controller\AbstractActionController']; |
|
43 | 43 | |
44 | 44 | protected function setUp() |
45 | 45 | { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * @return IndexController |
48 | 48 | */ |
49 | - public function setupTarget($auth=null, $layout=null, $forward=null, $config=null) |
|
49 | + public function setupTarget($auth = null, $layout = null, $forward = null, $config = null) |
|
50 | 50 | { |
51 | 51 | $auth->expects($this->any()) |
52 | 52 | ->method('__invoke') |
@@ -59,10 +59,10 @@ discard block |
||
59 | 59 | $plugins->expects($this->any()) |
60 | 60 | ->method('get') |
61 | 61 | ->willReturnMap([ |
62 | - ['Auth',null,$auth], |
|
63 | - ['layout',null,$layout], |
|
64 | - ['forward',null,$forward], |
|
65 | - ['config',null,$config] |
|
62 | + ['Auth', null, $auth], |
|
63 | + ['layout', null, $layout], |
|
64 | + ['forward', null, $forward], |
|
65 | + ['config', null, $config] |
|
66 | 66 | ]) |
67 | 67 | ; |
68 | 68 | $this->pluginsMock = $plugins; |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | ->method('dispatch') |
153 | 153 | ->with( |
154 | 154 | 'Jobs/Index', |
155 | - ['action' => 'dashboard','type'=>'recent'] |
|
155 | + ['action' => 'dashboard', 'type'=>'recent'] |
|
156 | 156 | ) |
157 | 157 | ->willReturnOnConsecutiveCalls(null, $viewModel) |
158 | 158 | ; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | ; |
166 | 166 | |
167 | 167 | $target = $this->getMockBuilder(IndexController::class) |
168 | - ->setConstructorArgs([$this->moduleManager,$this->config]) |
|
168 | + ->setConstructorArgs([$this->moduleManager, $this->config]) |
|
169 | 169 | ->setMethods(['getResponse']) |
170 | 170 | ->getMock() |
171 | 171 | ; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | protected $target = SearchFormFactory::class; |
43 | 43 | |
44 | - protected $inheritance = [ FactoryInterface::class ]; |
|
44 | + protected $inheritance = [FactoryInterface::class]; |
|
45 | 45 | |
46 | 46 | public function testCreatesPluginAndInjectsFormElementManager() |
47 | 47 | { |