@@ -43,17 +43,17 @@ |
||
43 | 43 | )); |
44 | 44 | |
45 | 45 | $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
46 | - ->disableOriginalConstructor() |
|
47 | - ->getMock(); |
|
46 | + ->disableOriginalConstructor() |
|
47 | + ->getMock(); |
|
48 | 48 | |
49 | 49 | $services->expects($this->exactly(3)) |
50 | - ->method('get') |
|
51 | - ->withConsecutive( |
|
50 | + ->method('get') |
|
51 | + ->withConsecutive( |
|
52 | 52 | array('Core/MailService'), |
53 | 53 | array('Jobs/Options'), |
54 | 54 | array('Core/Options') |
55 | - ) |
|
56 | - ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
55 | + ) |
|
56 | + ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
57 | 57 | |
58 | 58 | $expectedOptions = array( |
59 | 59 | 'siteName' => $coreOptions->getSiteName(), |
@@ -61,7 +61,7 @@ |
||
61 | 61 | ); |
62 | 62 | |
63 | 63 | $target = new MailSenderFactory(); |
64 | - $listener = $target->__invoke($services,'irrelevant'); |
|
64 | + $listener = $target->__invoke($services, 'irrelevant'); |
|
65 | 65 | |
66 | 66 | $this->assertInstanceOf('\Jobs\Listener\MailSender', $listener); |
67 | 67 | $this->assertAttributeSame($mailService, 'mailer', $listener); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
42 | 42 | ]; |
43 | 43 | |
44 | - private $inheritance = [ FactoryInterface::class ]; |
|
44 | + private $inheritance = [FactoryInterface::class]; |
|
45 | 45 | |
46 | 46 | |
47 | 47 | public function testServiceCreation() |
@@ -42,7 +42,7 @@ |
||
42 | 42 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
43 | 43 | ]; |
44 | 44 | |
45 | - private $inheritance = [ FactoryInterface::class ]; |
|
45 | + private $inheritance = [FactoryInterface::class]; |
|
46 | 46 | |
47 | 47 | public function testServiceCreation() |
48 | 48 | { |
@@ -55,12 +55,12 @@ |
||
55 | 55 | ->willReturn($urlHelper); |
56 | 56 | |
57 | 57 | $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
58 | - ->disableOriginalConstructor() |
|
59 | - ->getMock(); |
|
58 | + ->disableOriginalConstructor() |
|
59 | + ->getMock(); |
|
60 | 60 | |
61 | 61 | $serviceManagerMock->expects($this->once())->method('get') |
62 | - ->with('ViewHelperManager') |
|
63 | - ->willReturn($helpers); |
|
62 | + ->with('ViewHelperManager') |
|
63 | + ->willReturn($helpers); |
|
64 | 64 | |
65 | 65 | $service = $target->__invoke($serviceManagerMock,'irrelevant'); |
66 | 66 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | ->with('ViewHelperManager') |
63 | 63 | ->willReturn($helpers); |
64 | 64 | |
65 | - $service = $target->__invoke($serviceManagerMock,'irrelevant'); |
|
65 | + $service = $target->__invoke($serviceManagerMock, 'irrelevant'); |
|
66 | 66 | |
67 | 67 | $this->assertInstanceOf('\Jobs\Model\ApiJobDehydrator', $service); |
68 | 68 | $this->assertAttributeSame($urlHelper, 'url', $service); |
@@ -139,7 +139,7 @@ |
||
139 | 139 | ->with($this->equalTo($userId), $this->equalTo($limit)) |
140 | 140 | ->willReturn($cursor); |
141 | 141 | |
142 | - $actual = $this->listListener->getItems($user, $view , $limit); |
|
142 | + $actual = $this->listListener->getItems($user, $view, $limit); |
|
143 | 143 | |
144 | 144 | $this->assertInternalType('array', $actual); |
145 | 145 | $this->assertCount(1, $actual); |
@@ -91,16 +91,16 @@ discard block |
||
91 | 91 | [['value' => 'employmentTypes']], |
92 | 92 | [['value' => 'industries']] |
93 | 93 | )->will($this->onConsecutiveCalls( |
94 | - $professions, |
|
95 | - $industries, |
|
96 | - $types |
|
97 | - )); |
|
94 | + $professions, |
|
95 | + $industries, |
|
96 | + $types |
|
97 | + )); |
|
98 | 98 | } else { |
99 | 99 | $repository->expects($this->exactly(3))->method('findOneBy') |
100 | - ->withConsecutive( |
|
101 | - [['value' => 'professions']], |
|
102 | - [['value' => 'employmentTypes']], |
|
103 | - [['value' => 'industries']] |
|
100 | + ->withConsecutive( |
|
101 | + [['value' => 'professions']], |
|
102 | + [['value' => 'employmentTypes']], |
|
103 | + [['value' => 'industries']] |
|
104 | 104 | )->willReturn(null); |
105 | 105 | } |
106 | 106 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | ->with($this->isInstanceOf(Category::class)); |
116 | 116 | } else if ($postRequest) { |
117 | 117 | $repositories->expects($this->exactly(1))->method('store') |
118 | - ->with($this->isInstanceOf(Category::class)); |
|
118 | + ->with($this->isInstanceOf(Category::class)); |
|
119 | 119 | |
120 | 120 | } |
121 | 121 |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | |
38 | 38 | private $target = AdminCategoriesController::class; |
39 | 39 | |
40 | - private $inheritance = [ AbstractActionController::class ]; |
|
40 | + private $inheritance = [AbstractActionController::class]; |
|
41 | 41 | |
42 | - private function getConfiguredServiceManager($rootExists=true, $postRequest = false) |
|
42 | + private function getConfiguredServiceManager($rootExists = true, $postRequest = false) |
|
43 | 43 | { |
44 | 44 | $form = $this |
45 | 45 | ->getMockBuilder(CategoriesContainer::class) |
@@ -70,11 +70,11 @@ discard block |
||
70 | 70 | ->setMethods(['__invoke'])->getMock(); |
71 | 71 | $helper->expects($this->once())->method('__invoke')->with($subForm); |
72 | 72 | |
73 | - $viewHelpers = $this->createPluginManagerMock(['summaryForm' => $helper],$sm); |
|
73 | + $viewHelpers = $this->createPluginManagerMock(['summaryForm' => $helper], $sm); |
|
74 | 74 | } else { |
75 | - $viewHelpers = $this->createPluginManagerMock([],$sm); |
|
75 | + $viewHelpers = $this->createPluginManagerMock([], $sm); |
|
76 | 76 | } |
77 | - $forms = $this->createPluginManagerMock(['Jobs/AdminCategories' => $form],$sm); |
|
77 | + $forms = $this->createPluginManagerMock(['Jobs/AdminCategories' => $form], $sm); |
|
78 | 78 | |
79 | 79 | $repository = $this->getMockBuilder(AbstractRepository::class) |
80 | 80 | ->disableOriginalConstructor() |
@@ -61,16 +61,16 @@ discard block |
||
61 | 61 | ->getMock(); |
62 | 62 | |
63 | 63 | $dm = $this->getMockBuilder(DocumentManager::class) |
64 | - ->disableOriginalConstructor() |
|
64 | + ->disableOriginalConstructor() |
|
65 | 65 | ->setMethods(['getEventManager']) |
66 | - ->getMock(); |
|
66 | + ->getMock(); |
|
67 | 67 | |
68 | 68 | $dm->expects($this->once())->method('getEventManager')->willReturn($evm); |
69 | 69 | |
70 | 70 | $persister = $this->getMockBuilder(DocumentPersister::class) |
71 | - ->disableOriginalConstructor() |
|
72 | - ->setMethods(['load', 'loadAll']) |
|
73 | - ->getMock(); |
|
71 | + ->disableOriginalConstructor() |
|
72 | + ->setMethods(['load', 'loadAll']) |
|
73 | + ->getMock(); |
|
74 | 74 | |
75 | 75 | $cursor = $this->getMockBuilder(Cursor::class) |
76 | 76 | ->disableOriginalConstructor() |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | $uow->expects($this->exactly(2))->method('getDocumentPersister')->willReturn($persister); |
91 | 91 | |
92 | 92 | $meta = $this->getMockBuilder(ClassMetadata::class) |
93 | - ->disableOriginalConstructor() |
|
94 | - ->getMock(); |
|
93 | + ->disableOriginalConstructor() |
|
94 | + ->getMock(); |
|
95 | 95 | $meta->name = 'idonotcare'; |
96 | 96 | |
97 | 97 | return [$dm, $uow, $meta]; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | Categories::class, |
46 | 46 | 'args' => false, |
47 | 47 | 'mock' => ['getService', 'store'], |
48 | - '@testInheritance' => [Categories::class, 'as_reflection' => true ], |
|
48 | + '@testInheritance' => [Categories::class, 'as_reflection' => true], |
|
49 | 49 | '@testFindByCreatesDefaultCategory' => [ |
50 | 50 | 'args' => 'setupTargetArgsForFindTests', |
51 | 51 | 'mock' => ['createDefaultCategory' => 2], |
@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | ], |
48 | 48 | ]; |
49 | 49 | |
50 | - private $inheritance = [ JsonLdProviderInterface::class ]; |
|
50 | + private $inheritance = [JsonLdProviderInterface::class]; |
|
51 | 51 | |
52 | - private function getJob($withOrganization=true, $withDatePublishStart=true) |
|
52 | + private function getJob($withOrganization = true, $withDatePublishStart = true) |
|
53 | 53 | { |
54 | 54 | $job = new Job(); |
55 | 55 | $organization = new Organization(); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $organization->setOrganizationName($name); |
58 | 58 | if ($withOrganization) { |
59 | 59 | $job->setOrganization($organization); |
60 | - }else{ |
|
60 | + } else { |
|
61 | 61 | $job->setCompany("Company Name"); |
62 | 62 | } |
63 | 63 | $job->setTitle('Test JsonLdProvider'); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $organization->setOrganizationName($name); |
58 | 58 | if ($withOrganization) { |
59 | 59 | $job->setOrganization($organization); |
60 | - }else{ |
|
60 | + } else{ |
|
61 | 61 | $job->setCompany("Company Name"); |
62 | 62 | } |
63 | 63 | $job->setTitle('Test JsonLdProvider'); |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | */ |
61 | 61 | private $target = Job::class; |
62 | 62 | |
63 | - private $inheritance = [ MetaDataProviderInterface::class ]; |
|
63 | + private $inheritance = [MetaDataProviderInterface::class]; |
|
64 | 64 | |
65 | - private $traits = [ MetaDataProviderTrait::class ]; |
|
65 | + private $traits = [MetaDataProviderTrait::class]; |
|
66 | 66 | |
67 | 67 | |
68 | 68 | /** |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | */ |
175 | 175 | public function testSetGetPortals() |
176 | 176 | { |
177 | - $link = array('jobsintown-de','yawik'); |
|
177 | + $link = array('jobsintown-de', 'yawik'); |
|
178 | 178 | $this->target->setPortals($link); |
179 | 179 | $this->assertEquals($link, $this->target->getPortals()); |
180 | 180 | } |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | |
242 | 242 | public function provideDates() |
243 | 243 | { |
244 | - $date="2011-01-12"; |
|
244 | + $date = "2011-01-12"; |
|
245 | 245 | return [ |
246 | 246 | [$date, new \DateTime($date)], |
247 | 247 | [new \DateTime($date), new \DateTime($date)], |
@@ -251,12 +251,12 @@ discard block |
||
251 | 251 | public function provideSetGetStatusTestData() |
252 | 252 | { |
253 | 253 | return array( |
254 | - array(Status::CREATED, Status::CREATED), |
|
255 | - array(Status::ACTIVE, Status::ACTIVE), |
|
256 | - array(Status::EXPIRED, Status::EXPIRED), |
|
257 | - array(Status::PUBLISH, Status::PUBLISH), |
|
254 | + array(Status::CREATED, Status::CREATED), |
|
255 | + array(Status::ACTIVE, Status::ACTIVE), |
|
256 | + array(Status::EXPIRED, Status::EXPIRED), |
|
257 | + array(Status::PUBLISH, Status::PUBLISH), |
|
258 | 258 | array(Status::INACTIVE, Status::INACTIVE), |
259 | - array(Status::ACTIVE, Status::ACTIVE), |
|
259 | + array(Status::ACTIVE, Status::ACTIVE), |
|
260 | 260 | ); |
261 | 261 | } |
262 | 262 | /** |
@@ -286,8 +286,8 @@ discard block |
||
286 | 286 | public function provideSetGetAtsEnabledTestData() |
287 | 287 | { |
288 | 288 | return array( |
289 | - array(true, true), |
|
290 | - array(false, false), |
|
289 | + array(true, true), |
|
290 | + array(false, false), |
|
291 | 291 | ); |
292 | 292 | } |
293 | 293 | /** |
@@ -305,8 +305,8 @@ discard block |
||
305 | 305 | public function provideSetGetDraftTestData() |
306 | 306 | { |
307 | 307 | return array( |
308 | - array(true, true), |
|
309 | - array(false, false), |
|
308 | + array(true, true), |
|
309 | + array(false, false), |
|
310 | 310 | ); |
311 | 311 | } |
312 | 312 | /** |
@@ -324,8 +324,8 @@ discard block |
||
324 | 324 | public function provideSetGetTemplateTestData() |
325 | 325 | { |
326 | 326 | return array( |
327 | - array(null, 'default'), |
|
328 | - array('mytemplate', 'mytemplate'), |
|
327 | + array(null, 'default'), |
|
328 | + array('mytemplate', 'mytemplate'), |
|
329 | 329 | ); |
330 | 330 | } |
331 | 331 | /** |
@@ -343,9 +343,9 @@ discard block |
||
343 | 343 | public function provideIsActiveTestData() |
344 | 344 | { |
345 | 345 | return array( |
346 | - array(true, Status::ACTIVE, false), |
|
346 | + array(true, Status::ACTIVE, false), |
|
347 | 347 | array(false, Status::ACTIVE, true), |
348 | - array(true, Status::INACTIVE,false), |
|
348 | + array(true, Status::INACTIVE, false), |
|
349 | 349 | array(false, Status::INACTIVE, false), |
350 | 350 | ); |
351 | 351 | } |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | |
593 | 593 | public function testGetSnapshotGenerator() |
594 | 594 | { |
595 | - $expected = array( |
|
595 | + $expected = array( |
|
596 | 596 | 'hydrator' => '', |
597 | 597 | 'target' => 'Jobs\Entity\JobSnapshot', |
598 | 598 | 'exclude' => array('permissions', 'history') |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | |
638 | 638 | public function setDescription($description) |
639 | 639 | { |
640 | - $this->description=$description; |
|
640 | + $this->description = $description; |
|
641 | 641 | return $this; |
642 | 642 | } |
643 | 643 | public function getDescription() |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | } |
647 | 647 | public function setTest($test) |
648 | 648 | { |
649 | - $this->test=$test; |
|
649 | + $this->test = $test; |
|
650 | 650 | return $this; |
651 | 651 | } |
652 | 652 | public function getTest() |