@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | private $target = JsonLd::class; |
| 35 | 35 | |
| 36 | - private $inheritance = [ AbstractHelper::class ]; |
|
| 36 | + private $inheritance = [AbstractHelper::class]; |
|
| 37 | 37 | |
| 38 | 38 | public function propertiesProvider() |
| 39 | 39 | { |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | private $target = JobOrganizationName::class; |
| 37 | 37 | |
| 38 | - private $inheritance = [ AbstractHelper::class ]; |
|
| 38 | + private $inheritance = [AbstractHelper::class]; |
|
| 39 | 39 | |
| 40 | 40 | public function invokeTestData() |
| 41 | 41 | { |
@@ -58,10 +58,10 @@ discard block |
||
| 58 | 58 | $job4->setOrganization($org); |
| 59 | 59 | |
| 60 | 60 | return [ |
| 61 | - [ $job1, '', 'TestCompany' ], |
|
| 62 | - [ $job2, '', 'OrgName'], |
|
| 63 | - [ $job3, 'DefaultName', 'DefaultName' ], |
|
| 64 | - [ $job4, '', 'Override'], |
|
| 61 | + [$job1, '', 'TestCompany'], |
|
| 62 | + [$job2, '', 'OrgName'], |
|
| 63 | + [$job3, 'DefaultName', 'DefaultName'], |
|
| 64 | + [$job4, '', 'Override'], |
|
| 65 | 65 | ]; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | 'args' => 'getConstructorArgs', |
| 37 | 37 | ]; |
| 38 | 38 | |
| 39 | - private $inheritance = [ AbstractHelper::class ]; |
|
| 39 | + private $inheritance = [AbstractHelper::class]; |
|
| 40 | 40 | |
| 41 | 41 | private function getConstructorArgs() |
| 42 | 42 | { |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | |
| 59 | 59 | $this->paginatorMock = $paginator; |
| 60 | 60 | |
| 61 | - return [ $paginator ]; |
|
| 61 | + return [$paginator]; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | public function testConstruction() |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | $this->target = new Publisher($this->serviceManager); |
| 112 | 112 | |
| 113 | - $staticClassPrefix = '\\' . __CLASS__ . '::'; |
|
| 113 | + $staticClassPrefix = '\\'.__CLASS__.'::'; |
|
| 114 | 114 | |
| 115 | 115 | $this->log = $this->getMockBuilder('\Zend\Log\Logger') |
| 116 | 116 | ->disableOriginalConstructor() |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | $this->publisher->expects($this->any()) |
| 166 | 166 | ->method('__set') |
| 167 | - ->will($this->returnCallback($staticClassPrefix . 'publisherSetter')); |
|
| 167 | + ->will($this->returnCallback($staticClassPrefix.'publisherSetter')); |
|
| 168 | 168 | |
| 169 | 169 | $this->htmlAbsPathFilter = $this->getMockBuilder('\Core\Filter\HtmlAbsPathFilter') |
| 170 | 170 | ->disableOriginalConstructor() |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | $this->htmlAbsPathFilter->expects($this->any()) |
| 174 | 174 | ->method('filter') |
| 175 | - ->will($this->returnCallback($staticClassPrefix . 'absPathFilter')); |
|
| 175 | + ->will($this->returnCallback($staticClassPrefix.'absPathFilter')); |
|
| 176 | 176 | |
| 177 | 177 | $this->filterManager = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
| 178 | 178 | ->disableOriginalConstructor() |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | |
| 219 | 219 | $this->providerChannel->expects($this->any()) |
| 220 | 220 | ->method('__get') |
| 221 | - ->will($this->returnCallback($staticClassPrefix . 'providerChannelGetter')); |
|
| 221 | + ->will($this->returnCallback($staticClassPrefix.'providerChannelGetter')); |
|
| 222 | 222 | |
| 223 | 223 | $this->provider->expects($this->any(0)) |
| 224 | 224 | ->method('__get') |
@@ -131,62 +131,62 @@ discard block |
||
| 131 | 131 | ->will($this->returnValue('<html />')); |
| 132 | 132 | |
| 133 | 133 | $this->viewPhpRendererStrategy = $this->getMockBuilder('\Zend\View\Strategy\PhpRendererStrategy') |
| 134 | - ->disableOriginalConstructor() |
|
| 135 | - ->getMock(); |
|
| 134 | + ->disableOriginalConstructor() |
|
| 135 | + ->getMock(); |
|
| 136 | 136 | |
| 137 | 137 | $this->viewPhpRendererStrategy->expects($this->once()) |
| 138 | - ->method('getRenderer') |
|
| 139 | - ->will($this->returnValue($this->renderer)); |
|
| 138 | + ->method('getRenderer') |
|
| 139 | + ->will($this->returnValue($this->renderer)); |
|
| 140 | 140 | |
| 141 | 141 | $this->response = $this->getMockBuilder('\Zend\Http\Response') |
| 142 | - ->disableOriginalConstructor() |
|
| 143 | - ->getMock(); |
|
| 142 | + ->disableOriginalConstructor() |
|
| 143 | + ->getMock(); |
|
| 144 | 144 | |
| 145 | 145 | $this->jobEvent = $this->getMockBuilder('\Jobs\Listener\Events\JobEvent') |
| 146 | - ->disableOriginalConstructor() |
|
| 147 | - ->getMock(); |
|
| 146 | + ->disableOriginalConstructor() |
|
| 147 | + ->getMock(); |
|
| 148 | 148 | |
| 149 | 149 | $this->job = $this->getMockBuilder('\Jobs\Entity\Job') |
| 150 | - ->disableOriginalConstructor() |
|
| 151 | - ->getMock(); |
|
| 150 | + ->disableOriginalConstructor() |
|
| 151 | + ->getMock(); |
|
| 152 | 152 | |
| 153 | 153 | $this->publisher = $this->getMockBuilder('\Jobs\Entity\Publisher') |
| 154 | - ->disableOriginalConstructor() |
|
| 155 | - ->getMock(); |
|
| 154 | + ->disableOriginalConstructor() |
|
| 155 | + ->getMock(); |
|
| 156 | 156 | |
| 157 | 157 | $this->publisher->expects($this->at(0)) |
| 158 | - ->method('__get') |
|
| 159 | - ->with('externalId') |
|
| 160 | - ->will($this->returnValue('externalId32')); |
|
| 158 | + ->method('__get') |
|
| 159 | + ->with('externalId') |
|
| 160 | + ->will($this->returnValue('externalId32')); |
|
| 161 | 161 | |
| 162 | 162 | $this->publisher->expects($this->at(1)) |
| 163 | - ->method('__get') |
|
| 164 | - ->with('reference') |
|
| 165 | - ->will($this->returnValue('reference32')); |
|
| 163 | + ->method('__get') |
|
| 164 | + ->with('reference') |
|
| 165 | + ->will($this->returnValue('reference32')); |
|
| 166 | 166 | |
| 167 | 167 | $this->publisher->expects($this->any()) |
| 168 | - ->method('__set') |
|
| 169 | - ->will($this->returnCallback($staticClassPrefix . 'publisherSetter')); |
|
| 168 | + ->method('__set') |
|
| 169 | + ->will($this->returnCallback($staticClassPrefix . 'publisherSetter')); |
|
| 170 | 170 | |
| 171 | 171 | $this->htmlAbsPathFilter = $this->getMockBuilder('\Core\Filter\HtmlAbsPathFilter') |
| 172 | 172 | ->disableOriginalConstructor() |
| 173 | 173 | ->getMock(); |
| 174 | 174 | |
| 175 | 175 | $this->htmlAbsPathFilter->expects($this->any()) |
| 176 | - ->method('filter') |
|
| 177 | - ->will($this->returnCallback($staticClassPrefix . 'absPathFilter')); |
|
| 176 | + ->method('filter') |
|
| 177 | + ->will($this->returnCallback($staticClassPrefix . 'absPathFilter')); |
|
| 178 | 178 | |
| 179 | 179 | $this->filterManager = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
| 180 | - ->disableOriginalConstructor() |
|
| 181 | - ->getMock(); |
|
| 180 | + ->disableOriginalConstructor() |
|
| 181 | + ->getMock(); |
|
| 182 | 182 | |
| 183 | 183 | $this->filterManager->expects($this->at(0)) |
| 184 | 184 | ->method('get') |
| 185 | 185 | ->willReturn($this->htmlAbsPathFilter); |
| 186 | 186 | |
| 187 | 187 | $this->restClient = $this->getMockBuilder('\Core\Service\RestClient') |
| 188 | - ->disableOriginalConstructor() |
|
| 189 | - ->getMock(); |
|
| 188 | + ->disableOriginalConstructor() |
|
| 189 | + ->getMock(); |
|
| 190 | 190 | |
| 191 | 191 | //$this->restClient->expects($this->at(0)) |
| 192 | 192 | // ->method('getHost') |
@@ -202,8 +202,8 @@ discard block |
||
| 202 | 202 | ->will($this->returnValue($this->response)); |
| 203 | 203 | |
| 204 | 204 | $this->organization = $this->getMockBuilder('\Organizations\Entity\Organization') |
| 205 | - ->disableOriginalConstructor() |
|
| 206 | - ->getMock(); |
|
| 205 | + ->disableOriginalConstructor() |
|
| 206 | + ->getMock(); |
|
| 207 | 207 | |
| 208 | 208 | $this->organization->expects($this->at(0)) |
| 209 | 209 | ->method('__get') |
@@ -211,21 +211,21 @@ discard block |
||
| 211 | 211 | ->will($this->returnValue('name32')); |
| 212 | 212 | |
| 213 | 213 | $this->provider = $this->getMockBuilder('\Jobs\Options\ProviderOptions') |
| 214 | - ->disableOriginalConstructor() |
|
| 215 | - ->getMock(); |
|
| 214 | + ->disableOriginalConstructor() |
|
| 215 | + ->getMock(); |
|
| 216 | 216 | |
| 217 | 217 | $this->providerChannel = $this->getMockBuilder('\Jobs\Options\ChannelOptions') |
| 218 | - ->disableOriginalConstructor() |
|
| 219 | - ->getMock(); |
|
| 218 | + ->disableOriginalConstructor() |
|
| 219 | + ->getMock(); |
|
| 220 | 220 | |
| 221 | 221 | $this->providerChannel->expects($this->any()) |
| 222 | - ->method('__get') |
|
| 223 | - ->will($this->returnCallback($staticClassPrefix . 'providerChannelGetter')); |
|
| 222 | + ->method('__get') |
|
| 223 | + ->will($this->returnCallback($staticClassPrefix . 'providerChannelGetter')); |
|
| 224 | 224 | |
| 225 | 225 | $this->provider->expects($this->any(0)) |
| 226 | - ->method('__get') |
|
| 227 | - ->with('channels') |
|
| 228 | - ->willReturn(array('bbb value' => $this->providerChannel)); |
|
| 226 | + ->method('__get') |
|
| 227 | + ->with('channels') |
|
| 228 | + ->willReturn(array('bbb value' => $this->providerChannel)); |
|
| 229 | 229 | |
| 230 | 230 | $this->viewModel = $this->getMockBuilder('\Zend\View\Model\ViewModel') |
| 231 | 231 | ->disableOriginalConstructor() |
@@ -306,13 +306,13 @@ discard block |
||
| 306 | 306 | protected function setRestReturn($referenceUpdate, $applyIdUpdate) |
| 307 | 307 | { |
| 308 | 308 | $this->response->expects($this->any()) |
| 309 | - ->method('getBody') |
|
| 310 | - ->will($this->returnValue(json_encode( |
|
| 311 | - array( |
|
| 312 | - 'referenceUpdate' => $referenceUpdate, |
|
| 313 | - 'applyIdUpdate' => $applyIdUpdate |
|
| 314 | - ) |
|
| 315 | - ))); |
|
| 309 | + ->method('getBody') |
|
| 310 | + ->will($this->returnValue(json_encode( |
|
| 311 | + array( |
|
| 312 | + 'referenceUpdate' => $referenceUpdate, |
|
| 313 | + 'applyIdUpdate' => $applyIdUpdate |
|
| 314 | + ) |
|
| 315 | + ))); |
|
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | |
| 108 | 108 | $wf = new WorkflowSettings(); |
| 109 | 109 | $wf->setAcceptApplicationByDepartmentManager($flag('acceptApplication')) |
| 110 | - ->setAssignDepartmentManagersToJobs($flag('assignManagers')); |
|
| 110 | + ->setAssignDepartmentManagersToJobs($flag('assignManagers')); |
|
| 111 | 111 | |
| 112 | 112 | $org->expects($this->once())->method('getWorkflowSettings')->willReturn($wf); |
| 113 | 113 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | private function createOrganization(array $spec) |
| 96 | 96 | { |
| 97 | - $flag = function ($key) use ($spec) { |
|
| 97 | + $flag = function($key) use ($spec) { |
|
| 98 | 98 | return isset($spec[$key]) && $spec[$key]; |
| 99 | 99 | }; |
| 100 | 100 | $org = $this |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** @var array $testConfig */ |
| 4 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
| 4 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
| 5 | 5 | |
| 6 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
| 6 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
|
@@ -52,8 +52,8 @@ |
||
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | $this->serviceMock = $this->getMockBuilder('Auth\Service\Register') |
| 55 | - ->disableOriginalConstructor() |
|
| 56 | - ->getMock(); |
|
| 55 | + ->disableOriginalConstructor() |
|
| 56 | + ->getMock(); |
|
| 57 | 57 | |
| 58 | 58 | |
| 59 | 59 | $this->paramsMock = $this->getMockBuilder('Zend\Mvc\Controller\Plugin\Params') |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | { |
| 135 | 135 | $postData = array( |
| 136 | 136 | 'name' => uniqid('name'), |
| 137 | - 'email' => uniqid('email') . '@' . uniqid('host') . '.com.pl' |
|
| 137 | + 'email' => uniqid('email').'@'.uniqid('host').'.com.pl' |
|
| 138 | 138 | ); |
| 139 | 139 | |
| 140 | 140 | $request = new Request(); |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | { |
| 182 | 182 | $postData = array( |
| 183 | 183 | 'name' => uniqid('name'), |
| 184 | - 'email' => uniqid('email') . '@' . uniqid('host') . '.com.pl' |
|
| 184 | + 'email' => uniqid('email').'@'.uniqid('host').'.com.pl' |
|
| 185 | 185 | ); |
| 186 | 186 | |
| 187 | 187 | $request = new Request(); |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | { |
| 229 | 229 | $postData = array( |
| 230 | 230 | 'name' => uniqid('name'), |
| 231 | - 'email' => uniqid('email') . '@' . uniqid('host') . '.com.pl' |
|
| 231 | + 'email' => uniqid('email').'@'.uniqid('host').'.com.pl' |
|
| 232 | 232 | ); |
| 233 | 233 | |
| 234 | 234 | $request = new Request(); |
@@ -242,10 +242,10 @@ |
||
| 242 | 242 | public function provideGetDisplayNameTestData() |
| 243 | 243 | { |
| 244 | 244 | return array( |
| 245 | - array(null, null, "[email protected]", "[email protected]"), |
|
| 245 | + array(null, null, "[email protected]", "[email protected]"), |
|
| 246 | 246 | array(" Carsten ", " Bleek ", "[email protected]", "Carsten Bleek"), |
| 247 | - array(null, " Bleek ", "[email protected]", "Bleek"), |
|
| 248 | - array(" Carsten ", null, "[email protected]", "[email protected]"), |
|
| 247 | + array(null, " Bleek ", "[email protected]", "Bleek"), |
|
| 248 | + array(" Carsten ", null, "[email protected]", "[email protected]"), |
|
| 249 | 249 | ); |
| 250 | 250 | } |
| 251 | 251 | |