Passed
Push — master ( 0fbfd0...0a4722 )
by Carsten
11:27
created
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.
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.
module/Core/test/CoreTest/Options/ImageSetOptionsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
 
33 33
     private $target = ImageSetOptions::class;
34 34
 
35
-    private $inheritance = [ AbstractOptions::class ];
35
+    private $inheritance = [AbstractOptions::class];
36 36
 
37 37
     private $properties = [
38 38
         ['entityClass', ['default' => Image::class, '@value' => Image::class]],
39 39
         ['formElementName', ['default' => ImageSetInterface::ORIGINAL, 'value' => 'formElementNameValue']],
40
-        ['images', ['default'=>[ImageSetInterface::THUMBNAIL => [100,100]], 'value' => ['a' => [1,1]]]],
40
+        ['images', ['default'=>[ImageSetInterface::THUMBNAIL => [100, 100]], 'value' => ['a' => [1, 1]]]],
41 41
         ['entity', ['ignore_setter' => true, 'value@' => Image::class]],
42 42
     ];
43 43
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/MailService/BaseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             'stringtemplate' => '\Core\Mail\StringTemplateMessage',
67 67
         );
68 68
         $factories = array(
69
-            'htmltemplate'   => [HTMLTemplateMessage::class,'factory']
69
+            'htmltemplate'   => [HTMLTemplateMessage::class, 'factory']
70 70
         );
71 71
 
72 72
         $this->assertAttributeEquals(false, 'shareByDefault', $target, 'shareByDefault is not set to FALSE');
Please login to merge, or discard this patch.