Completed
Push — develop ( 33eed9...a73e2c )
by Carsten
21s queued 14s
created
test/OrganizationsTest/Repository/Filter/PaginationQueryTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $builder->expects($this->any())
79 79
             ->method('field')
80 80
             ->willReturnMap([
81
-                ['permissions.view',$builder]
81
+                ['permissions.view', $builder]
82 82
             ])
83 83
         ;
84 84
 
@@ -121,20 +121,20 @@  discard block
 block discarded – undo
121 121
         $builder->expects($this->any())
122 122
             ->method('field')
123 123
             ->willReturnMap([
124
-                ['profileSetting',$builder],
125
-                ['id',$builder],
126
-                ['organization',$builder],
127
-                ['status.name',$builder],
128
-                ['isDraft',$builder],
129
-                ['profileSetting',$builder]
124
+                ['profileSetting', $builder],
125
+                ['id', $builder],
126
+                ['organization', $builder],
127
+                ['status.name', $builder],
128
+                ['isDraft', $builder],
129
+                ['profileSetting', $builder]
130 130
             ])
131 131
         ;
132 132
 
133 133
         $builder->expects($this->exactly(2))
134 134
             ->method('notIn')
135 135
             ->willReturnMap([
136
-                [ [StatusInterface::EXPIRED, StatusInterface::INACTIVE], $builder],
137
-                [ ['some-id'],$builder ]
136
+                [[StatusInterface::EXPIRED, StatusInterface::INACTIVE], $builder],
137
+                [['some-id'], $builder]
138 138
             ])
139 139
         ;
140 140
 
Please login to merge, or discard this patch.
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.
test/OrganizationsTest/Controller/InviteEmployeeControllerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,8 @@
 block discarded – undo
74 74
         $this->target->setPluginManager($plugins);
75 75
 
76 76
         $params = $this->getMockBuilder('\Zend\Mvc\Controller\Plugin\Params')
77
-                       ->disableOriginalConstructor()
78
-                       ->getMock()
77
+                        ->disableOriginalConstructor()
78
+                        ->getMock()
79 79
         ;
80 80
         $params
81 81
             ->expects($this->any())
Please login to merge, or discard this patch.
Factory/Controller/Plugin/InvitationHandlerFactoryTest.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $target = new InvitationHandlerFactory();
47 47
 
48 48
         $tokenGenerator = $this->getMockBuilder('\Auth\Service\UserUniqueTokenGenerator')
49
-                               ->disableOriginalConstructor()->getMock();
49
+                                ->disableOriginalConstructor()->getMock();
50 50
 
51 51
         $userRepository = $this->getMockBuilder('\Auth\Repository\User')->disableOriginalConstructor()->getMock();
52 52
 
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
         $translator = new \Zend\I18n\Translator\Translator();
57 57
     
58 58
         $mailer = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
59
-                       ->disableOriginalConstructor()
60
-                       ->getMock()
59
+                        ->disableOriginalConstructor()
60
+                        ->getMock()
61 61
         ;
62 62
         
63 63
         $pluginManager = $this->getMockBuilder(PluginManager::class)
@@ -78,14 +78,14 @@  discard block
 block discarded – undo
78 78
 
79 79
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock();
80 80
         $services->expects($this->exactly(5))
81
-                 ->method('get')
82
-                 ->will($this->returnValueMap(array(
83
-                     array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
84
-                     array('translator', $translator),
85
-                     array('repositories', $repositories),
86
-                     array('Auth/UserTokenGenerator', $tokenGenerator),
87
-                     array('ControllerPluginManager',$pluginManager),
88
-                 )));
81
+                    ->method('get')
82
+                    ->will($this->returnValueMap(array(
83
+                        array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
84
+                        array('translator', $translator),
85
+                        array('repositories', $repositories),
86
+                        array('Auth/UserTokenGenerator', $tokenGenerator),
87
+                        array('ControllerPluginManager',$pluginManager),
88
+                    )));
89 89
 
90 90
         /*
91 91
          * test start here
Please login to merge, or discard this 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 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,17 +55,17 @@
 block discarded – undo
55 55
         $auth = $this->getMockBuilder('\Auth\AuthenticationService')->disableOriginalConstructor()->getMock();
56 56
 
57 57
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
58
-                         ->disableOriginalConstructor()
59
-                         ->getMock()
58
+                            ->disableOriginalConstructor()
59
+                            ->getMock()
60 60
         ;
61 61
         $services->expects($this->exactly(2))
62
-                 ->method('get')
63
-                 ->will($this->returnValueMap(
64
-                     array(
62
+                    ->method('get')
63
+                    ->will($this->returnValueMap(
64
+                        array(
65 65
                         array('repositories',$repositories),
66 66
                         array('AuthenticationService', $auth)
67 67
                     )
68
-                 ))
68
+                    ))
69 69
         ;
70 70
 
71 71
         $target = new AcceptInvitationHandlerFactory();
Please login to merge, or discard this 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.