Passed
Pull Request — master (#580)
by ANTHONIUS
10:05
created
Applications/test/ApplicationsTest/Acl/ApplicationAccessAssertionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@
 block discarded – undo
89 89
             'change-not-granted2' => array($user, $app2, 'change', false),
90 90
             'subsequentAttachmentUpload-not-granted' => array($user, $app, Application::PERMISSION_SUBSEQUENT_ATTACHMENT_UPLOAD, false),
91 91
             'subsequentAttachmentUpload-granted' => array($user, $app2, Application::PERMISSION_SUBSEQUENT_ATTACHMENT_UPLOAD, true),
92
-            'allow-draft-view' => [ $user2, $app3, 'change', true ],
93
-            'disallow-draft-view' => [ $user, $app3, 'change', false ],
92
+            'allow-draft-view' => [$user2, $app3, 'change', true],
93
+            'disallow-draft-view' => [$user, $app3, 'change', false],
94 94
 
95 95
         );
96 96
     }
Please login to merge, or discard this patch.
Organizations/test/OrganizationsTest/Controller/ProfileControllerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $pluginManager->expects($this->any())
104 104
             ->method('get')
105 105
             ->willReturnMap([
106
-                ['params',null,$params]
106
+                ['params', null, $params]
107 107
             ])
108 108
         ;
109 109
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         $plugins->expects($this->any())
127 127
             ->method('get')
128 128
             ->willReturnMap([
129
-                ['params',null,$params]
129
+                ['params', null, $params]
130 130
             ])
131 131
         ;
132 132
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $plugins->expects($this->any())
151 151
             ->method('get')
152 152
             ->willReturnMap([
153
-                ['params',null,$params]
153
+                ['params', null, $params]
154 154
             ])
155 155
         ;
156 156
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $pluginManager->expects($this->any())
183 183
             ->method('get')
184 184
             ->willReturnMap([
185
-                ['params',null,$params]
185
+                ['params', null, $params]
186 186
             ])
187 187
         ;
188 188
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         $pluginManager->expects($this->any())
218 218
             ->method('get')
219 219
             ->willReturnMap([
220
-                ['params',null,$params]
220
+                ['params', null, $params]
221 221
             ])
222 222
         ;
223 223
 
Please login to merge, or discard this patch.
test/OrganizationsTest/Controller/Plugin/AcceptInvitationHandlerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
                 continue;
135 135
             }
136 136
 
137
-            $this->fail('Expected exception was not thrown for "' . $method . '"');
137
+            $this->fail('Expected exception was not thrown for "'.$method.'"');
138 138
         }
139 139
     }
140 140
 
Please login to merge, or discard this patch.
test/OrganizationsTest/Controller/InviteEmployeeControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         return isset($this->pluginsMockMap[$name]) ? $this->pluginsMockMap[$name] : null;
95 95
     }
96 96
 
97
-    public function retrieveQueryParam($name, $default=null)
97
+    public function retrieveQueryParam($name, $default = null)
98 98
     {
99 99
         return isset($this->queryParams[$name]) ? $this->queryParams[$name] : $default;
100 100
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
     private function setupOrganizationEntityRetrievalMocks($name)
129 129
     {
130
-        $id = $name. "Id";
130
+        $id = $name."Id";
131 131
         $organization = new Organization();
132 132
         $organization->setOrganizationName(new OrganizationName($name));
133 133
 
Please login to merge, or discard this patch.
module/Organizations/test/OrganizationsTest/ImageFileCache/ManagerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $id = 'someId';
156 156
         $ext = 'ext';
157
-        $name = 'filename.' . $ext;
157
+        $name = 'filename.'.$ext;
158 158
         $path = sprintf('d/I/%s.%s', $id, $ext);
159 159
         $resource = 'someResource';
160 160
         $image = $this->getMockBuilder(ImageEntity::class)
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function testMatchUri($uri, $expected)
185 185
     {
186
-        $this->assertSame($expected, $this->manager->matchUri($this->options->getUriPath() . $uri));
186
+        $this->assertSame($expected, $this->manager->matchUri($this->options->getUriPath().$uri));
187 187
     }
188 188
     
189 189
     /**
Please login to merge, or discard this patch.
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/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.