Completed
Push — master ( 58f753...77021e )
by Carsten
08:12 queued 10s
created
Organizations/test/OrganizationsTest/Entity/OrganizationReferenceTest.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
     public function testOrganizationReferenceImplementsInterfaces()
42 42
     {
43 43
         $target = $this->getMockBuilder('\Organizations\Entity\OrganizationReference')
44
-                       ->disableOriginalConstructor()
45
-                       ->getMock();
44
+                        ->disableOriginalConstructor()
45
+                        ->getMock();
46 46
 
47 47
         $this->assertInstanceOf('\Organizations\Entity\OrganizationReferenceInterface', $target);
48 48
         $this->assertInstanceOf('\Organizations\Entity\OrganizationInterface', $target);
@@ -59,21 +59,21 @@  discard block
 block discarded – undo
59 59
             $organization = new Organization();
60 60
 
61 61
             $repository = $this->getMockBuilder('\Organizations\Repository\Organization')
62
-                               ->disableOriginalConstructor()->getMock();
62
+                                ->disableOriginalConstructor()->getMock();
63 63
 
64 64
             $repository->expects($this->once())
65
-                       ->method('findByUser')
66
-                       ->with('1234')
67
-                       ->willReturn('owner' == $type ? $organization : null);
65
+                        ->method('findByUser')
66
+                        ->with('1234')
67
+                        ->willReturn('owner' == $type ? $organization : null);
68 68
 
69 69
             if ('owner' == $type) {
70 70
                 $repository->expects($this->never())
71
-                           ->method('findByEmployee');
71
+                            ->method('findByEmployee');
72 72
             } else {
73 73
                 $repository->expects($this->once())
74
-                           ->method('findByEmployee')
75
-                           ->with('1234')
76
-                           ->willReturn('employee' == $type ? $organization : null);
74
+                            ->method('findByEmployee')
75
+                            ->with('1234')
76
+                            ->willReturn('employee' == $type ? $organization : null);
77 77
             }
78 78
 
79 79
             $target = new OrganizationReference('1234', $repository);
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
             [['setEmployees', 'getEmployees'], [[$emps], []], ['__self__', $emps]],
197 197
             ['getEmployee', ['4321'], null],
198 198
             [['setUser', 'getUser', 'getPermissionsUserIds'],
199
-                  [[$user], [], []],
200
-                  ['__self__', $user, [PermissionsInterface::PERMISSION_ALL => [$user->getId()]]]
199
+                    [[$user], [], []],
200
+                    ['__self__', $user, [PermissionsInterface::PERMISSION_ALL => [$user->getId()]]]
201 201
             ],
202 202
             ['getJobs', [], null],
203 203
             [['setPermissions', 'getPermissions'], [[$perms], []], ['__self__', $perms]],
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             $args = array($args);
116 116
         }
117 117
 
118
-        for ($i=0,$c=count($func); $i<$c; $i+=1) {
118
+        for ($i = 0, $c = count($func); $i < $c; $i += 1) {
119 119
             $f = $func[$i];
120 120
             $a = $args[$i];
121 121
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             $expected = array($expected);
145 145
         }
146 146
 
147
-        for ($i=0, $c=count($func); $i<$c; $i+=1) {
147
+        for ($i = 0, $c = count($func); $i < $c; $i += 1) {
148 148
             $f = $func[$i];
149 149
             $a = $args[$i];
150 150
             $e = $expected[$i];
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         $perms = new Permissions();
177 177
         $contact = new OrganizationContact();
178 178
         $image = new OrganizationImage();
179
-        $externalId='myReference';
179
+        $externalId = 'myReference';
180 180
         $template = new Template();
181 181
         $template->setLabelBenefits('These are your Benefits');
182 182
         $workflowSettings = new WorkflowSettings();
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 2 patches
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.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@
 block discarded – undo
40 40
         $target = new CheckJobCreatePermissionListener();
41 41
 
42 42
         $events = $this->getMockBuilder('\Laminas\EventManager\SharedEventManager')
43
-                       ->disableOriginalConstructor()
44
-                       ->getMock();
43
+                        ->disableOriginalConstructor()
44
+                        ->getMock();
45 45
 
46 46
         $events->expects($this->once())
47
-               ->method('attach')
48
-               ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission'));
47
+                ->method('attach')
48
+                ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission'));
49 49
 
50 50
         $target->attachShared($events);
51 51
     }
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.
Core/test/CoreTest/Factory/Form/AbstractCustomizableFieldsetFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         ],
40 40
         '@testCreateServiceInvokesItselfAndResetsCreationOptions' => [
41 41
             'class' => AbstractCustomizableFieldsetFactory::class,
42
-            'mock' => [ '__invoke' ]
42
+            'mock' => ['__invoke']
43 43
         ],
44 44
         '@testInvokationThrowsExceptionIfOptionsNameIsNotSpecified' => [
45 45
             'class' => ConcreteAbstractCustomizableFieldsetFactoryWithClassName::class
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         ],
53 53
     ];
54 54
 
55
-    private $inheritance = [ FactoryInterface::class ];
55
+    private $inheritance = [FactoryInterface::class];
56 56
 
57 57
     public function testCreationOptions()
58 58
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/View/Helper/AjaxUrlFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
      */
39 39
     private $target = [
40 40
         AjaxUrlFactory::class,
41
-        '@testCreateService' => [ 'mock' => ['__invoke']],
41
+        '@testCreateService' => ['mock' => ['__invoke']],
42 42
     ];
43 43
 
44
-    private $inheritance = [ FactoryInterface::class ];
44
+    private $inheritance = [FactoryInterface::class];
45 45
 
46 46
     public function testCreateService()
47 47
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/Listener/AjaxRouteListenerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         ],
43 43
     ];
44 44
 
45
-    private $inheritance = [ FactoryInterface::class ];
45
+    private $inheritance = [FactoryInterface::class];
46 46
 
47 47
     /**
48 48
      * @testdox Method createService() proxies to __invoke()
Please login to merge, or discard this patch.