Completed
Push — develop ( 33eed9...a73e2c )
by Carsten
21s queued 14s
created
module/Core/test/CoreTest/Controller/Plugin/ListQueryTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,23 +51,23 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/ConfigTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/ContentControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/FileControllerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,17 +82,17 @@
 block discarded – undo
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())
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/AdminControllerTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
     protected function setUp()
45 45
     {
46 46
         $events = $this->getMockBuilder(EventManager::class)
47
-                       ->setMethods(['getEvent', 'trigger'])
48
-                       ->getMock();
47
+                        ->setMethods(['getEvent', 'trigger'])
48
+                        ->getMock();
49 49
         $this->target = new AdminController($events);
50 50
     }
51 51
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/IndexControllerTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         ;
Please login to merge, or discard this patch.
Core/test/CoreTest/Factory/Controller/Plugin/SearchFormFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/Controller/FileControllerFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
         $container->expects($this->exactly(2))
36 36
             ->method('get')
37 37
             ->willReturnMap([
38
-                ['repositories',$repositories],
39
-                ['Core/File/Events',$coreFileEvents]
38
+                ['repositories', $repositories],
39
+                ['Core/File/Events', $coreFileEvents]
40 40
             ])
41 41
         ;
42 42
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/LazyControllerFactoryTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
         $container->expects($this->any())
57 57
             ->method('get')
58 58
             ->willReturnMap([
59
-                ['config',$config],
60
-                ['ModuleManager',$moduleManager],
61
-                ['repositories',$repositories],
62
-                ['Core/EventManager',$eventManager]
59
+                ['config', $config],
60
+                ['ModuleManager', $moduleManager],
61
+                ['repositories', $repositories],
62
+                ['Core/EventManager', $eventManager]
63 63
             ])
64 64
         ;
65 65
 
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
     public function invokeTestProvider()
74 74
     {
75 75
         return [
76
-            ['Core/Index',IndexController::class],
77
-            ['Core/File',FileController::class],
78
-            ['Core/Content',ContentController::class],
76
+            ['Core/Index', IndexController::class],
77
+            ['Core/File', FileController::class],
78
+            ['Core/Content', ContentController::class],
79 79
         ];
80 80
     }
81 81
 
Please login to merge, or discard this patch.