Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Core/src/Module.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
             // assets-install info
98 98
             'assets-install [--symlink] [--relative] <target>' => 'Install assets in the given target',
99 99
             'The assets-install command will install assets in the given <target> directory. If no option given this command will copy assets into the target.',
100
-            ['--symlink','This option will install assets using absolute symlink directory'],
101
-            ['--relative','This option will install assets using relative symlink'],
100
+            ['--symlink', 'This option will install assets using absolute symlink directory'],
101
+            ['--relative', 'This option will install assets using relative symlink'],
102 102
             ""
103 103
         ];
104 104
     }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         $eventManager->attach(
166 166
             MvcEvent::EVENT_DISPATCH_ERROR,
167
-            function ($event) {
167
+            function($event) {
168 168
                 if ($event instanceof MvcEvent) {
169 169
                     $application = $event->getApplication();
170 170
                     
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         );
181 181
         $eventManager->attach(
182 182
             MvcEvent::EVENT_DISPATCH,
183
-            function ($event) use ($eventManager) {
183
+            function($event) use ($eventManager) {
184 184
                 $eventManager->trigger('postDispatch', $event);
185 185
             },
186 186
             -150
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function getConfig()
198 198
     {
199
-        $config = include __DIR__ . '/../config/module.config.php';
199
+        $config = include __DIR__.'/../config/module.config.php';
200 200
         return $config;
201 201
     }
202 202
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     public function init(ModuleManager $manager)
207 207
     {
208 208
         $events = $manager->getEventManager();
209
-        $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this,'onMergeConfig']);
209
+        $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this, 'onMergeConfig']);
210 210
     }
211 211
 
212 212
     /**
Please login to merge, or discard this patch.
module/Geo/test/TestConfig.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     //     ),
59 59
     // )
60 60
 
61
-   // Initial configuration with which to seed the ServiceManager.
62
-   // Should be compatible with Zend\ServiceManager\Config.
63
-   // 'service_manager' => array(),
61
+    // Initial configuration with which to seed the ServiceManager.
62
+    // Should be compatible with Zend\ServiceManager\Config.
63
+    // 'service_manager' => array(),
64 64
 );
65 65
\ No newline at end of file
Please login to merge, or discard this patch.
module/Geo/test/GeoTest/Form/GeoSelectTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
                         'data-placeholder' => 'Location',
45 45
                         'data-autoinit' => false,
46 46
                         'class' => 'geoselect',
47
-                         'data-clear-on-reset' => true
47
+                            'data-clear-on-reset' => true
48 48
                     ]],
49 49
                     'count' => 1
50 50
                 ],
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,13 +52,13 @@  discard block
 block discarded – undo
52 52
         ],
53 53
     ];
54 54
 
55
-    private $inheritance = [ Select::class, HeadscriptProviderInterface::class, HydratorStrategyProviderInterface::class ];
55
+    private $inheritance = [Select::class, HeadscriptProviderInterface::class, HydratorStrategyProviderInterface::class];
56 56
 
57
-    private $traits = [ HydratorStrategyProviderTrait::class ];
57
+    private $traits = [HydratorStrategyProviderTrait::class];
58 58
 
59 59
     private $attributes = [
60 60
         'disableInArrayValidator' => true,
61
-        'headscripts' => [ 'modules/Geo/js/geoselect.js' ],
61
+        'headscripts' => ['modules/Geo/js/geoselect.js'],
62 62
     ];
63 63
 
64 64
     public function propertiesProvider()
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
         return [
67 67
             ['value', [
68 68
                 'value' => 'value',
69
-                'post'  => function () {
69
+                'post'  => function() {
70 70
                     $this->assertEquals('value', $this->target->getAttribute('data-val'));
71 71
                 },
72 72
             ]],
73 73
             ['value', [
74 74
                 'value' => ['one', 'two'],
75
-                'post' => function () {
75
+                'post' => function() {
76 76
                     $this->assertEquals(Json::encode(['one', 'two']), $this->target->getAttribute('data-val'));
77 77
                 },
78 78
             ]],
Please login to merge, or discard this patch.
module/Geo/test/GeoTest/Form/GeoSelectHydratorStrategyTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
         GeoSelectHydratorStrategy::class,
36 36
         'getTargetArgs',
37 37
         '@testConstruction' => false,
38
-        '@testInheritance' => [ 'as_reflection' => true ],
38
+        '@testInheritance' => ['as_reflection' => true],
39 39
     ];
40 40
 
41
-    private $inheritance = [ StrategyInterface::class ];
41
+    private $inheritance = [StrategyInterface::class];
42 42
 
43 43
     private function getTargetArgs()
44 44
     {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         ;
50 50
         $this->clientMock = $client;
51 51
 
52
-        return [ $client ];
52
+        return [$client];
53 53
     }
54 54
 
55 55
     public function propertiesProvider()
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Controller/ViewControllerFactoryTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -58,19 +58,19 @@
 block discarded – undo
58 58
     public function testInvokeCreatesController()
59 59
     {
60 60
         $repository = $this
61
-	        ->getMockBuilder('\Cv\Repository\Cv')
62
-	        ->disableOriginalConstructor()
63
-	        ->getMock()
61
+            ->getMockBuilder('\Cv\Repository\Cv')
62
+            ->disableOriginalConstructor()
63
+            ->getMock()
64 64
         ;
65 65
         $repositories = $this
66
-	        ->createPluginManagerMock([
67
-	        	'Cv/Cv' => [ 'service' => $repository, 'count_get' => 1 ]
68
-	        ]
69
-	        )
66
+            ->createPluginManagerMock([
67
+                'Cv/Cv' => [ 'service' => $repository, 'count_get' => 1 ]
68
+            ]
69
+            )
70 70
         ;
71 71
         $translator = $this
72
-	        ->getMockBuilder(TranslatorInterface::class)
73
-	        ->getMock()
72
+            ->getMockBuilder(TranslatorInterface::class)
73
+            ->getMock()
74 74
         ;
75 75
 
76 76
         $services = $this->createServiceManagerMock([
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
         '@testCreateServiceProxiesToInvokeAndPassServiceManager' => VCF_Mock::class,
35 35
     ];
36 36
 
37
-    private $inheritance = [ FactoryInterface::class ];
37
+    private $inheritance = [FactoryInterface::class];
38 38
 
39 39
     public function provideCreateServiceTestData()
40 40
     {
41 41
         return [
42
-            [ 'requestedName' ],
43
-            [ null ],
42
+            ['requestedName'],
43
+            [null],
44 44
         ];
45 45
     }
46 46
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public function testCreateServiceProxiesToInvokeAndPassServiceManager($reqName)
51 51
     {
52 52
         $services = $this->getServiceManagerMock();
53
-        $this->target->__invoke($services,$reqName);
53
+        $this->target->__invoke($services, $reqName);
54 54
 
55 55
         $this->assertEquals($reqName ?: ViewController::class, $this->target->reqName);
56 56
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         ;
65 65
         $repositories = $this
66 66
 	        ->createPluginManagerMock([
67
-	        	'Cv/Cv' => [ 'service' => $repository, 'count_get' => 1 ]
67
+	        	'Cv/Cv' => ['service' => $repository, 'count_get' => 1]
68 68
 	        ]
69 69
 	        )
70 70
         ;
@@ -103,6 +103,6 @@  discard block
 block discarded – undo
103 103
 
104 104
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
105 105
     {
106
-        $this->reqName = is_null($requestedName) ? ViewController::class:$requestedName;
106
+        $this->reqName = is_null($requestedName) ? ViewController::class : $requestedName;
107 107
     }
108 108
 }
109 109
\ No newline at end of file
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Form/EmploymentCollectionFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@
 block discarded – undo
34 34
 
35 35
     private $target = EmploymentCollectionFactory::class;
36 36
 
37
-    private $inheritance = [ FactoryInterface::class ];
37
+    private $inheritance = [FactoryInterface::class];
38 38
 
39 39
     public function testInvokation()
40 40
     {
41 41
         $sm = new ServiceManager();
42
-        $container = $this->target->__invoke($sm,'irrelevant');
42
+        $container = $this->target->__invoke($sm, 'irrelevant');
43 43
 
44 44
         $this->assertInstanceOf(CollectionContainer::class, $container);
45 45
         $this->assertAttributeEquals('CvEmploymentForm', 'formService', $container);
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Form/EducationCollectionFactoryTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
     public function testInvokation()
39 39
     {
40
-    	$sm = new ServiceManager();
40
+        $sm = new ServiceManager();
41 41
         $container = $this->target->__invoke($sm,'irrelevant');
42 42
 
43 43
         $this->assertInstanceOf(CollectionContainer::class, $container);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@
 block discarded – undo
33 33
 
34 34
     private $target = EducationCollectionFactory::class;
35 35
 
36
-    private $inheritance = [ FactoryInterface::class ];
36
+    private $inheritance = [FactoryInterface::class];
37 37
 
38 38
     public function testInvokation()
39 39
     {
40 40
     	$sm = new ServiceManager();
41
-        $container = $this->target->__invoke($sm,'irrelevant');
41
+        $container = $this->target->__invoke($sm, 'irrelevant');
42 42
 
43 43
         $this->assertInstanceOf(CollectionContainer::class, $container);
44 44
         $this->assertAttributeEquals('CvEducationForm', 'formService', $container);
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Form/SkillCollectionFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@
 block discarded – undo
35 35
 
36 36
     private $target = SkillCollectionFactory::class;
37 37
 
38
-    private $inheritance = [ FactoryInterface::class ];
38
+    private $inheritance = [FactoryInterface::class];
39 39
 
40 40
     public function testInvokation()
41 41
     {
42
-        $container = $this->target->__invoke(new ServiceManager(),'irrelevant');
42
+        $container = $this->target->__invoke(new ServiceManager(), 'irrelevant');
43 43
 
44 44
         $this->assertInstanceOf(CollectionContainer::class, $container);
45 45
         $this->assertAttributeEquals('CvSkillForm', 'formService', $container);
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Form/LanguageCollectionFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
 
35 35
     private $target = LanguageSkillCollectionFactory::class;
36 36
 
37
-    private $inheritance = [ FactoryInterface::class ];
37
+    private $inheritance = [FactoryInterface::class];
38 38
 
39 39
     public function testInvokation()
40 40
     {
41
-        $container = $this->target->__invoke(new ServiceManager(),'irrelevant');
41
+        $container = $this->target->__invoke(new ServiceManager(), 'irrelevant');
42 42
 
43 43
         $this->assertInstanceOf(CollectionContainer::class, $container);
44 44
         $this->assertAttributeEquals('Cv/LanguageSkillForm', 'formService', $container);
Please login to merge, or discard this patch.