Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
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.
Core/test/CoreTest/Factory/Listener/DeleteImageSetListenerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         '@testCreateService' => ['mock' => ['__invoke' => ['@with' => 'getCreateServiceInvokationArgs', 'count' => 1]]],
40 40
     ];
41 41
 
42
-    private $inheritance = [ FactoryInterface::class ];
42
+    private $inheritance = [FactoryInterface::class];
43 43
 
44 44
     private function getCreateServiceInvokationArgs()
45 45
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/Service/ImagineFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         '@testCreateService' => ['mock' => ['__invoke' => ['@with' => 'getInvokationMockArgs', 'count' => 1]]],
42 42
     ];
43 43
 
44
-    private $inheritance = [ FactoryInterface::class ];
44
+    private $inheritance = [FactoryInterface::class];
45 45
 
46 46
     private function getInvokationMockArgs()
47 47
     {
@@ -88,6 +88,6 @@  discard block
 block discarded – undo
88 88
             }
89 89
         }
90 90
 
91
-        $this->fail('Imagine instance creation for ' .$lib . ' failed.');
91
+        $this->fail('Imagine instance creation for '.$lib.' failed.');
92 92
     }
93 93
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/Form/Tree/SelectFactoryTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         ],
52 52
     ];
53 53
 
54
-    private $inheritance = [ FactoryInterface::class];
54
+    private $inheritance = [FactoryInterface::class];
55 55
 
56 56
     public function testSetCreationOptions()
57 57
     {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $services = new ServiceManager();
70 70
         $forms    = new FormElementManagerV3Polyfill($services);
71 71
 
72
-        $options = [ 'test' => 'work?' ];
72
+        $options = ['test' => 'work?'];
73 73
         $this->target->setCreationOptions($options);
74 74
 
75 75
         $this->target
@@ -86,11 +86,11 @@  discard block
 block discarded – undo
86 86
     public function provideMissingOptions()
87 87
     {
88 88
         return [
89
-            [ null ],
90
-            [ [] ],
91
-            [ ['tree' => ['value' => 'test']] ],
92
-            [ ['tree' => ['entity' => 'test']] ],
93
-            [ ['tree' => ['name' => 'test']] ],
89
+            [null],
90
+            [[]],
91
+            [['tree' => ['value' => 'test']]],
92
+            [['tree' => ['entity' => 'test']]],
93
+            [['tree' => ['name' => 'test']]],
94 94
         ];
95 95
     }
96 96
 
@@ -122,10 +122,10 @@  discard block
 block discarded – undo
122 122
         $this->expectException(\RuntimeException::class);
123 123
         $this->expectExceptionMessage('Tree root not found');
124 124
 
125
-        $this->target->__invoke($services, '', ['tree' => [ 'entity' => 'testEntityRepository', 'value' => 'test']]);
125
+        $this->target->__invoke($services, '', ['tree' => ['entity' => 'testEntityRepository', 'value' => 'test']]);
126 126
     }
127 127
 
128
-    private function getServiceContainer($criteria, $root=null)
128
+    private function getServiceContainer($criteria, $root = null)
129 129
     {
130 130
         if (null === $root) {
131 131
             $root = new Node('Test');
@@ -188,9 +188,9 @@  discard block
 block discarded – undo
188 188
         $root3 = $this->createRoot('root', ['child1' => ['gChild11', 'gChild12']]);
189 189
 
190 190
         return [
191
-            [ $root1, [], ['child1' => ['label' => 'child1', 'options' => ['child1-gchild11' => 'gChild11', 'child1-gchild12' => 'gChild12']]]],
192
-            [ $root2, ['use_root_item' => true], ['root' => ['label' => 'root', 'options' => ['child1' => ['label' => 'child1', 'options' => ['child1-gchild11' => 'gChild11', 'child1-gchild12' => 'gChild12']]]]]],
193
-            [ $root3, ['allow_select_nodes' => true], ['child1-group' => ['label' => 'child1', 'options' => ['child1' => 'child1', 'child1-gchild11' => 'gChild11', 'child1-gchild12' => 'gChild12']]] ]
191
+            [$root1, [], ['child1' => ['label' => 'child1', 'options' => ['child1-gchild11' => 'gChild11', 'child1-gchild12' => 'gChild12']]]],
192
+            [$root2, ['use_root_item' => true], ['root' => ['label' => 'root', 'options' => ['child1' => ['label' => 'child1', 'options' => ['child1-gchild11' => 'gChild11', 'child1-gchild12' => 'gChild12']]]]]],
193
+            [$root3, ['allow_select_nodes' => true], ['child1-group' => ['label' => 'child1', 'options' => ['child1' => 'child1', 'child1-gchild11' => 'gChild11', 'child1-gchild12' => 'gChild12']]]]
194 194
         ];
195 195
     }
196 196
 
Please login to merge, or discard this patch.
EventManagerAbstractFactory/InheritanceAndConfigMergingTest.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,16 +47,16 @@  discard block
 block discarded – undo
47 47
         $services = new ServiceManager();
48 48
         $this->assertTrue(
49 49
             $this->target->canCreate(
50
-                 $services,
51
-                 'Any.string/Value/Events'
52
-             ),
50
+                    $services,
51
+                    'Any.string/Value/Events'
52
+                ),
53 53
             'Checking correct name failed.'
54 54
         );
55 55
         $this->assertFalse(
56 56
             $this->target->canCreate(
57
-                 $services,
58
-                 'Any.string.not.ending/in/Events.but has it in the middle!'
59
-             ),
57
+                    $services,
58
+                    'Any.string.not.ending/in/Events.but has it in the middle!'
59
+                ),
60 60
             'Checking invalid name failed.'
61 61
         );
62 62
     }
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
 
99 99
         /* @var EventManagerAbstractFactory|\PHPUnit_Framework_MockObject_MockObject $target */
100 100
         $target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
101
-                       ->setMethods([ 'createEventManager', 'attachListeners' ])
102
-                       ->getMock();
101
+                        ->setMethods([ 'createEventManager', 'attachListeners' ])
102
+                        ->getMock();
103 103
 
104 104
         $services = new ServiceManager();
105 105
         $services->setService('Config', $config);
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         '@testCanCreateServiceWithName' => ['mock' => ['canCreate' => 1]],
41 41
     ];
42 42
 
43
-    protected $inheritance = [ '\Laminas\ServiceManager\Factory\AbstractFactoryInterface' ];
43
+    protected $inheritance = ['\Laminas\ServiceManager\Factory\AbstractFactoryInterface'];
44 44
 
45 45
     public function testDeterminesIfItCanCreateAnEventManagerByName()
46 46
     {
@@ -66,17 +66,17 @@  discard block
 block discarded – undo
66 66
         $config1 = [];
67 67
 
68 68
         $config2 = [
69
-            'event_manager' => [ 'Test2/Events' => [
69
+            'event_manager' => ['Test2/Events' => [
70 70
                 'service' => 'TestService',
71 71
                 'configure' => false,
72
-                'identifiers' => [ 'TestEvents', 'AnotherId' ],
72
+                'identifiers' => ['TestEvents', 'AnotherId'],
73 73
                 'event' => 'SomeEventClass',
74
-                'listeners' => [ 'listener' => 'event' ]
74
+                'listeners' => ['listener' => 'event']
75 75
             ]]
76 76
         ];
77 77
         return [
78
-            [ $config1, 'Test1/Events' ],
79
-            [ $config2, 'Test2/Events' ],
78
+            [$config1, 'Test1/Events'],
79
+            [$config2, 'Test2/Events'],
80 80
         ];
81 81
     }
82 82
 
@@ -91,14 +91,14 @@  discard block
 block discarded – undo
91 91
         $defaults = [
92 92
             'service' => 'EventManager',
93 93
             'configure' => true,
94
-            'identifiers' => [ $reqName ],
94
+            'identifiers' => [$reqName],
95 95
             'event' => '\Laminas\EventManager\Event',
96 96
             'listeners' => [],
97 97
         ];
98 98
 
99 99
         /* @var EventManagerAbstractFactory|\PHPUnit_Framework_MockObject_MockObject $target */
100 100
         $target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
101
-                       ->setMethods([ 'createEventManager', 'attachListeners' ])
101
+                       ->setMethods(['createEventManager', 'attachListeners'])
102 102
                        ->getMock();
103 103
 
104 104
         $services = new ServiceManager();
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/View/Helper/SnippetFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         '@testCreateService' => ['mock' => ['__invoke']],
45 45
     ];
46 46
 
47
-    private $inheritance = [ FactoryInterface::class ];
47
+    private $inheritance = [FactoryInterface::class];
48 48
 
49 49
 
50 50
     public function testCreateService()
Please login to merge, or discard this patch.