Passed
Pull Request — master (#631)
by ANTHONIUS
08:16
created
Organizations/test/OrganizationsTest/Repository/Filter/ListJobQueryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $builder->expects($this->once())
47 47
             ->method('in')
48
-            ->with([Status::ACTIVE,Status::PUBLISH])
48
+            ->with([Status::ACTIVE, Status::PUBLISH])
49 49
             ->willReturn($builder)
50 50
         ;
51 51
         $builder->expects($this->exactly(2))
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         ;
59 59
 
60 60
 
61
-        $params=['organization_id' =>$organization->getId()];
61
+        $params = ['organization_id' =>$organization->getId()];
62 62
         $target->createQuery($params, $builder);
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
test/OrganizationsTest/Repository/Filter/PaginationQueryFactoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
         $container->expects($this->any())
37 37
             ->method('get')
38 38
             ->willReturnMap([
39
-                ['Core/RepositoryService',$container],
40
-                ['Jobs/Job',$jobRepository],
41
-                ['AuthenticationService',$auth]
39
+                ['Core/RepositoryService', $container],
40
+                ['Jobs/Job', $jobRepository],
41
+                ['AuthenticationService', $auth]
42 42
             ])
43 43
         ;
44 44
 
Please login to merge, or discard this patch.
test/OrganizationsTest/Controller/Plugin/InvitationHandlerTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
                                              ->disableOriginalConstructor()->getMock();
66 66
         }
67 67
         if (in_array('mailerPlugin', $mocks)) {
68
-            $this->mailerPluginMock   = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
68
+            $this->mailerPluginMock = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
69 69
                                          ->disableOriginalConstructor()->getMock();
70 70
         }
71 71
 
72 72
         if ($inject) {
73 73
             foreach ($mocks as $key) {
74
-                $setter = 'set' . $key;
75
-                $this->target->$setter($this->{$key . 'Mock'});
74
+                $setter = 'set'.$key;
75
+                $this->target->$setter($this->{$key.'Mock'});
76 76
             }
77 77
         }
78 78
     }
@@ -107,9 +107,9 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $this->setupMocks($mockKey);
109 109
 
110
-        $setter = 'set' . ucfirst($mockKey);
111
-        $getter = 'get' . ucfirst($mockKey);
112
-        $value  = $this->{$mockKey . 'Mock'};
110
+        $setter = 'set'.ucfirst($mockKey);
111
+        $getter = 'get'.ucfirst($mockKey);
112
+        $value  = $this->{$mockKey.'Mock'};
113 113
 
114 114
         $this->assertSame($this->target, $this->target->$setter($value), 'Fluent interface broken!');
115 115
         $this->assertSame($value, $this->target->$getter());
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function testGetterThrowExceptionIfDependencyMissing($getterName)
125 125
     {
126
-        $getter = "get" . $getterName;
126
+        $getter = "get".$getterName;
127 127
 
128 128
         $this->target->$getter();
129 129
     }
Please login to merge, or discard this patch.
Factory/Controller/Plugin/InvitationHandlerFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,11 +80,11 @@
 block discarded – undo
80 80
         $services->expects($this->exactly(5))
81 81
                  ->method('get')
82 82
                  ->will($this->returnValueMap(array(
83
-                     array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
83
+                     array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true)
84 84
                      array('translator', $translator),
85 85
                      array('repositories', $repositories),
86 86
                      array('Auth/UserTokenGenerator', $tokenGenerator),
87
-                     array('ControllerPluginManager',$pluginManager),
87
+                     array('ControllerPluginManager', $pluginManager),
88 88
                  )));
89 89
 
90 90
         /*
Please login to merge, or discard this patch.
Factory/Controller/Plugin/AcceptInvitationHandlerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                  ->method('get')
63 63
                  ->will($this->returnValueMap(
64 64
                      array(
65
-                        array('repositories',$repositories),
65
+                        array('repositories', $repositories),
66 66
                         array('AuthenticationService', $auth)
67 67
                     )
68 68
                  ))
Please login to merge, or discard this patch.
Factory/Controller/InviteEmployeeControllerFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
         $container->expects($this->exactly(2))
35 35
             ->method('get')
36 36
             ->willReturnMap([
37
-                ['Core/RepositoryService',$container],
38
-                ['Organizations/Organization',$orgRepo]
37
+                ['Core/RepositoryService', $container],
38
+                ['Organizations/Organization', $orgRepo]
39 39
             ])
40 40
         ;
41 41
         $factory = new InviteEmployeeControllerFactory();
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/Controller/ProfileControllerFactoryTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,12 +47,12 @@
 block discarded – undo
47 47
         $container->expects($this->any())
48 48
             ->method('get')
49 49
             ->willReturnMap([
50
-                ['repositories',$container],
51
-                ['Organizations/Organization',$repository],
52
-                ['translator',$translator],
53
-                ['Organizations\ImageFileCache\Manager',$imageFileCacheManager],
54
-                ['Jobs/Job',$jobRepository],
55
-                ['Jobs/JobboardSearchOptions',$options]
50
+                ['repositories', $container],
51
+                ['Organizations/Organization', $repository],
52
+                ['translator', $translator],
53
+                ['Organizations\ImageFileCache\Manager', $imageFileCacheManager],
54
+                ['Jobs/Job', $jobRepository],
55
+                ['Jobs/JobboardSearchOptions', $options]
56 56
             ])
57 57
         ;
58 58
 
Please login to merge, or discard this patch.
Organizations/test/OrganizationsTest/Mail/EmployeeInvitationFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     {
61 61
         $user = $this->getMockForAbstractClass('\Auth\Entity\UserInterface');
62 62
 
63
-        $makeArray = function ($options) use ($user) {
63
+        $makeArray = function($options) use ($user) {
64 64
             $options['user'] = $user;
65 65
             return array($options, array_merge(array('user' => $user, 'token' => false, 'template' => 'organizations/mail/invite-employee'), $options));
66 66
         };
Please login to merge, or discard this patch.
Organizations/test/OrganizationsTest/Entity/OrganizationReferenceTest.php 1 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.