Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Organizations/test/TestConfig.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 $modules = array_merge(
3
-	include_once __DIR__.'/../../../config/common.modules.php',
4
-	[
5
-		'Core',
6
-		'Auth',
7
-		'Jobs',
8
-		'Organizations'
9
-	]
3
+    include_once __DIR__.'/../../../config/common.modules.php',
4
+    [
5
+        'Core',
6
+        'Auth',
7
+        'Jobs',
8
+        'Organizations'
9
+    ]
10 10
 );
11 11
 return array(
12 12
     'modules' => $modules,
Please login to merge, or discard this patch.
module/Organizations/src/Options/ImageFileCacheOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public function __construct($options = null)
47 47
     {
48 48
         // We are relative to the application dir (see public/index.php)
49
-        $this->filePath = 'public' . $this->uriPath;
49
+        $this->filePath = 'public'.$this->uriPath;
50 50
         
51 51
         parent::__construct($options);
52 52
     }
Please login to merge, or discard this patch.
module/Core/test/CoreConfig.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 return array(
4 4
     // This should be an array of module namespaces used in the application.
5 5
     'modules' => array_merge($commonModules,[
6
-	    'Core',
7
-	    'Auth',
6
+        'Core',
7
+        'Auth',
8 8
     ]),
9 9
 
10 10
     // These are various options for the listeners attached to the ModuleManager
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     //     ),
61 61
     // )
62 62
 
63
-   // Initial configuration with which to seed the ServiceManager.
64
-   // Should be compatible with Zend\ServiceManager\Config.
65
-   // 'service_manager' => array(),
63
+    // Initial configuration with which to seed the ServiceManager.
64
+    // Should be compatible with Zend\ServiceManager\Config.
65
+    // 'service_manager' => array(),
66 66
 );
67 67
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 $commonModules = include __DIR__.'/../../../config/common.modules.php';
3 3
 return array(
4 4
     // This should be an array of module namespaces used in the application.
5
-    'modules' => array_merge($commonModules,[
5
+    'modules' => array_merge($commonModules, [
6 6
 	    'Core',
7 7
 	    'Auth',
8 8
     ]),
Please login to merge, or discard this patch.
module/Core/test/TestConfig.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@  discard block
 block discarded – undo
2 2
 return array(
3 3
     // This should be an array of module namespaces used in the application.
4 4
     'modules' => array_merge(
5
-    	include_once __DIR__.'/../../../config/common.modules.php',
6
-	    array(
5
+        include_once __DIR__.'/../../../config/common.modules.php',
6
+        array(
7 7
             'Core', 'Auth', 'Jobs', 'Applications', 'Organizations'
8
-	    )
8
+        )
9 9
     ),
10 10
 
11 11
     // These are various options for the listeners attached to the ModuleManager
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     //     ),
62 62
     // )
63 63
 
64
-   // Initial configuration with which to seed the ServiceManager.
65
-   // Should be compatible with Zend\ServiceManager\Config.
66
-   // 'service_manager' => array(),
64
+    // Initial configuration with which to seed the ServiceManager.
65
+    // Should be compatible with Zend\ServiceManager\Config.
66
+    // 'service_manager' => array(),
67 67
 );
68 68
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Exception/MissingDependencyExceptionTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $target = new MissingDependencyException($dependency, $object, $previous);
56 56
 
57 57
         $expectedMessage = sprintf('Missing dependency "%s" in "%s"',
58
-                                   $dependency, is_object($object) ? get_class($object) : $object);
58
+                                    $dependency, is_object($object) ? get_class($object) : $object);
59 59
 
60 60
         $this->assertEquals($expectedMessage, $target->getMessage());
61 61
     }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/LazyControllerFactoryTest.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * @dataProvider invokeTestProvider
37 37
      */
38
-    public function testInvoke($requestedName,$expectedClass)
38
+    public function testInvoke($requestedName, $expectedClass)
39 39
     {
40 40
         $moduleManager = $this->createMock(ModuleManagerInterface::class);
41 41
         $config = [];
@@ -54,26 +54,26 @@  discard block
 block discarded – undo
54 54
         $container->expects($this->any())
55 55
             ->method('get')
56 56
             ->willReturnMap([
57
-                ['config',$config],
58
-                ['ModuleManager',$moduleManager],
59
-                ['repositories',$repositories],
60
-                ['Core/EventManager',$eventManager]
57
+                ['config', $config],
58
+                ['ModuleManager', $moduleManager],
59
+                ['repositories', $repositories],
60
+                ['Core/EventManager', $eventManager]
61 61
             ])
62 62
         ;
63 63
 
64 64
         $factory = new LazyControllerFactory();
65 65
         $this->assertInstanceOf(
66 66
             $expectedClass,
67
-            $factory($container,$requestedName)
67
+            $factory($container, $requestedName)
68 68
         );
69 69
     }
70 70
 
71 71
     public function invokeTestProvider()
72 72
     {
73 73
         return [
74
-            ['Core/Index',IndexController::class],
75
-            ['Core/File',FileController::class],
76
-            ['Core/Content',ContentController::class],
74
+            ['Core/Index', IndexController::class],
75
+            ['Core/File', FileController::class],
76
+            ['Core/Content', ContentController::class],
77 77
         ];
78 78
     }
79 79
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $this->expectException(ServiceNotCreatedException::class);
85 85
         $this->expectExceptionMessageRegExp('/Can\'t find correct controller class for/');
86 86
         $factory = new LazyControllerFactory();
87
-        $factory($container,'Core/Foo');
87
+        $factory($container, 'Core/Foo');
88 88
     }
89 89
 
90 90
     public function testThrowsWhenCanNotCreateConstructorArgument()
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
         $this->expectException(ServiceNotCreatedException::class);
95 95
         $this->expectExceptionMessageRegExp('/Can\'t create constructor argument/m');
96 96
         $factory = new LazyControllerFactory();
97
-        $factory($container,'Core/Index');
97
+        $factory($container, 'Core/Index');
98 98
     }
99 99
 
100 100
     public function testCanCreate()
101 101
     {
102 102
         $container = $this->createMock(ContainerInterface::class);
103 103
         $factory = new LazyControllerFactory();
104
-        $this->assertFalse($factory->canCreate($container,'Foo\\Bar'));
105
-        $this->assertTrue($factory->canCreate($container,'Foo\\Controller\\Bar'));
104
+        $this->assertFalse($factory->canCreate($container, 'Foo\\Bar'));
105
+        $this->assertTrue($factory->canCreate($container, 'Foo\\Controller\\Bar'));
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/Controller/FileControllerFactoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,15 +33,15 @@
 block discarded – undo
33 33
         $container->expects($this->exactly(2))
34 34
             ->method('get')
35 35
             ->willReturnMap([
36
-                ['repositories',$repositories],
37
-                ['Core/File/Events',$coreFileEvents]
36
+                ['repositories', $repositories],
37
+                ['Core/File/Events', $coreFileEvents]
38 38
             ])
39 39
         ;
40 40
 
41 41
         $factory = new FileControllerFactory();
42 42
         $this->assertInstanceOf(
43 43
             FileController::class,
44
-            $factory($container,'some-name')
44
+            $factory($container, 'some-name')
45 45
         );
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
Core/test/CoreTest/Factory/Controller/Plugin/SearchFormFactoryTest.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,17 +43,17 @@
 block discarded – undo
43 43
 
44 44
     public function testCreatesPluginAndInjectsFormElementManager()
45 45
     {
46
-	    $forms = $this->getMockBuilder(FormElementManager::class)
47
-		    ->disableOriginalConstructor()
48
-		    ->getMock()
49
-	    ;
50
-	    /*$services = $this->getServiceManagerMock([
46
+        $forms = $this->getMockBuilder(FormElementManager::class)
47
+            ->disableOriginalConstructor()
48
+            ->getMock()
49
+        ;
50
+        /*$services = $this->getServiceManagerMock([
51 51
 		    'forms' => [
52 52
 			    'service' => $forms,
53 53
 			    'count_get' => 1,
54 54
 		    ]]);*/
55
-	    $services = $this->getServiceManagerMock();
56
-	    $services->setService('forms',$forms);
55
+        $services = $this->getServiceManagerMock();
56
+        $services->setService('forms',$forms);
57 57
 	    
58 58
         $plugin = $this->target->__invoke($services,'irrelevant');
59 59
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     protected $target = SearchFormFactory::class;
41 41
 
42
-    protected $inheritance = [ FactoryInterface::class ];
42
+    protected $inheritance = [FactoryInterface::class];
43 43
 
44 44
     public function testCreatesPluginAndInjectsFormElementManager()
45 45
     {
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 			    'count_get' => 1,
54 54
 		    ]]);*/
55 55
 	    $services = $this->getServiceManagerMock();
56
-	    $services->setService('forms',$forms);
56
+	    $services->setService('forms', $forms);
57 57
 	    
58
-        $plugin = $this->target->__invoke($services,'irrelevant');
58
+        $plugin = $this->target->__invoke($services, 'irrelevant');
59 59
 
60 60
         $this->assertInstanceOf('\Core\Controller\Plugin\SearchForm', $plugin);
61 61
         $this->assertAttributeSame($forms, 'formElementManager', $plugin);
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/Controller/AdminControllerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         $factory = new AdminControllerFactory();
31 31
         $this->assertInstanceOf(
32 32
             AdminController::class,
33
-            $factory($container,'Core/Admin')
33
+            $factory($container, 'Core/Admin')
34 34
         );
35 35
     }
36 36
 }
Please login to merge, or discard this patch.