Passed
Push — develop ( 24b5e4...fa8d1c )
by Carsten
07:00
created
test/OrganizationsTest/ImageFileCache/ApplicationListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     {
155 155
         $baseUrl = '/base';
156 156
         $path = '/some/uri';
157
-        $uri = $baseUrl . $path;
157
+        $uri = $baseUrl.$path;
158 158
         $this->event->setError(Application::ERROR_ROUTER_NO_MATCH);
159 159
         
160 160
         $this->request->expects($this->once())
Please login to merge, or discard this patch.
Organizations/test/OrganizationsTest/Acl/Assertion/WriteAssertionTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     private $target = WriteAssertion::class;
34 34
 
35
-    private $inheritance = [ AssertionInterface::class ];
35
+    private $inheritance = [AssertionInterface::class];
36 36
 
37 37
     public function dataProvider()
38 38
     {
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
         $validResourceWPerms->setUser($validRole);
46 46
 
47 47
         return [
48
-            [ $invalidRole, $invalidResource, 'invalidPrivilege', false ],
49
-            [ $validRole, $invalidResource, 'invalid', false ],
50
-            [ $invalidRole, $validResourceWoPerms, 'invalid', false ],
51
-            [ $invalidRole, $validResourceWPerms, 'invalid', false ],
52
-            [ $invalidRole, $invalidResource, 'edit', false ],
53
-            [ $validRole, $invalidResource, 'edit', false ],
54
-            [ $validRole, $validResourceWPerms, 'invalid', false ],
55
-            [ $validRole, $validResourceWoPerms, 'edit', false ],
56
-            [ $validRole, $validResourceWPerms, 'edit', true ],
48
+            [$invalidRole, $invalidResource, 'invalidPrivilege', false],
49
+            [$validRole, $invalidResource, 'invalid', false],
50
+            [$invalidRole, $validResourceWoPerms, 'invalid', false],
51
+            [$invalidRole, $validResourceWPerms, 'invalid', false],
52
+            [$invalidRole, $invalidResource, 'edit', false],
53
+            [$validRole, $invalidResource, 'edit', false],
54
+            [$validRole, $validResourceWPerms, 'invalid', false],
55
+            [$validRole, $validResourceWoPerms, 'edit', false],
56
+            [$validRole, $validResourceWPerms, 'edit', true],
57 57
 
58 58
         ];
59 59
     }
Please login to merge, or discard this patch.
OrganizationsTest/Acl/Listener/CheckJobCreatePermissionListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
 
141 141
         for ($i = 0; $i < 3; $i++) {
142 142
             $empUser = new User();
143
-            $empUser->setId('1234-' . $i);
143
+            $empUser->setId('1234-'.$i);
144 144
             $perm = new EmployeePermissions(EmployeePermissionsInterface::JOBS_VIEW);
145 145
             if (2 == $i && $isOneEmployeeAllowed) {
146 146
                 $perm->grant(EmployeePermissionsInterface::JOBS_CREATE);
Please login to merge, or discard this patch.
module/Organizations/test/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$testConfig = include __DIR__ . '/TestConfig.php';
3
+$testConfig = include __DIR__.'/TestConfig.php';
4 4
 
5
-require_once __DIR__ . '/../../../test/Bootstrap.php';
6 5
\ No newline at end of file
6
+require_once __DIR__.'/../../../test/Bootstrap.php';
7 7
\ No newline at end of file
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 1 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/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 1 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.