@@ -96,13 +96,13 @@ discard block |
||
| 96 | 96 | $professions, |
| 97 | 97 | $industries, |
| 98 | 98 | $types |
| 99 | - )); |
|
| 99 | + )); |
|
| 100 | 100 | } else { |
| 101 | 101 | $repository->expects($this->exactly(3))->method('findOneBy') |
| 102 | - ->withConsecutive( |
|
| 103 | - [['value' => 'professions']], |
|
| 104 | - [['value' => 'employmentTypes']], |
|
| 105 | - [['value' => 'industries']] |
|
| 102 | + ->withConsecutive( |
|
| 103 | + [['value' => 'professions']], |
|
| 104 | + [['value' => 'employmentTypes']], |
|
| 105 | + [['value' => 'industries']] |
|
| 106 | 106 | )->willReturn(null); |
| 107 | 107 | } |
| 108 | 108 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | ->with($this->isInstanceOf(Category::class)); |
| 118 | 118 | } elseif ($postRequest) { |
| 119 | 119 | $repositories->expects($this->exactly(1))->method('store') |
| 120 | - ->with($this->isInstanceOf(Category::class)); |
|
| 120 | + ->with($this->isInstanceOf(Category::class)); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | |
@@ -39,9 +39,9 @@ |
||
| 39 | 39 | |
| 40 | 40 | private $target = AdminCategoriesController::class; |
| 41 | 41 | |
| 42 | - private $inheritance = [ AbstractActionController::class ]; |
|
| 42 | + private $inheritance = [AbstractActionController::class]; |
|
| 43 | 43 | |
| 44 | - private function getConfiguredServiceManager($rootExists=true, $postRequest = false) |
|
| 44 | + private function getConfiguredServiceManager($rootExists = true, $postRequest = false) |
|
| 45 | 45 | { |
| 46 | 46 | $form = $this |
| 47 | 47 | ->getMockBuilder(CategoriesContainer::class) |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | vfsStream::setup('/'); |
| 77 | 77 | vfsStream::create($isJobs ? ['module' => ['Jobs' => []]] : ['module' => []]); |
| 78 | 78 | $expectModulePath = $isJobs ? vfsStream::url('./module/Jobs/config/') : '.'; |
| 79 | - $config['module_paths'] = array_map(function ($i) { |
|
| 79 | + $config['module_paths'] = array_map(function($i) { |
|
| 80 | 80 | return vfsStream::url($i); |
| 81 | 81 | }, $config['module_paths']); |
| 82 | 82 | |
@@ -59,8 +59,8 @@ |
||
| 59 | 59 | ; |
| 60 | 60 | |
| 61 | 61 | $auth->expects($this->once()) |
| 62 | - ->method('getUser') |
|
| 63 | - ->will($this->returnValue($user)) |
|
| 62 | + ->method('getUser') |
|
| 63 | + ->will($this->returnValue($user)) |
|
| 64 | 64 | ; |
| 65 | 65 | |
| 66 | 66 | $repository = $this->getMockBuilder(Job::class)->disableOriginalConstructor()->getMock(); |
@@ -45,17 +45,17 @@ |
||
| 45 | 45 | )); |
| 46 | 46 | |
| 47 | 47 | $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
| 48 | - ->disableOriginalConstructor() |
|
| 49 | - ->getMock(); |
|
| 48 | + ->disableOriginalConstructor() |
|
| 49 | + ->getMock(); |
|
| 50 | 50 | |
| 51 | 51 | $services->expects($this->exactly(3)) |
| 52 | - ->method('get') |
|
| 53 | - ->withConsecutive( |
|
| 54 | - array('Core/MailService'), |
|
| 55 | - array('Jobs/Options'), |
|
| 56 | - array('Core/Options') |
|
| 57 | - ) |
|
| 58 | - ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
| 52 | + ->method('get') |
|
| 53 | + ->withConsecutive( |
|
| 54 | + array('Core/MailService'), |
|
| 55 | + array('Jobs/Options'), |
|
| 56 | + array('Core/Options') |
|
| 57 | + ) |
|
| 58 | + ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
| 59 | 59 | |
| 60 | 60 | $expectedOptions = array( |
| 61 | 61 | 'siteName' => $coreOptions->getSiteName(), |
@@ -78,21 +78,21 @@ |
||
| 78 | 78 | $this->user = $user; |
| 79 | 79 | |
| 80 | 80 | $auth = $this->getMockBuilder('Auth\AuthenticationService') |
| 81 | - ->disableOriginalConstructor() |
|
| 82 | - ->getMock(); |
|
| 81 | + ->disableOriginalConstructor() |
|
| 82 | + ->getMock(); |
|
| 83 | 83 | |
| 84 | 84 | $auth->expects($this->once()) |
| 85 | - ->method('getUser') |
|
| 86 | - ->willReturn($user); |
|
| 85 | + ->method('getUser') |
|
| 86 | + ->willReturn($user); |
|
| 87 | 87 | |
| 88 | 88 | $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
| 89 | - ->disableOriginalConstructor() |
|
| 90 | - ->getMock(); |
|
| 89 | + ->disableOriginalConstructor() |
|
| 90 | + ->getMock(); |
|
| 91 | 91 | |
| 92 | 92 | $services->expects($this->once()) |
| 93 | - ->method('get') |
|
| 94 | - ->with('AuthenticationService') |
|
| 95 | - ->willReturn($auth); |
|
| 93 | + ->method('get') |
|
| 94 | + ->with('AuthenticationService') |
|
| 95 | + ->willReturn($auth); |
|
| 96 | 96 | |
| 97 | 97 | $this->services = $services; |
| 98 | 98 | } |
@@ -48,19 +48,19 @@ discard block |
||
| 48 | 48 | $channelOptions = new ChannelOptions(); |
| 49 | 49 | |
| 50 | 50 | $channelOptions->setCategory('testCat') |
| 51 | - ->setCurrency('€') |
|
| 52 | - ->setDescription('testDesc') |
|
| 53 | - ->setExternalkey('testExtKey') |
|
| 54 | - ->setHeadLine('testHL') |
|
| 55 | - ->setKey('testKey') |
|
| 56 | - ->setLabel('testLabel') |
|
| 57 | - ->setLinkText('testLinkTxt') |
|
| 58 | - ->setLogo('testLogo') |
|
| 59 | - ->setParams(array('test' => 'params')) |
|
| 60 | - ->setPrice('test', 1234) |
|
| 61 | - ->setPublishDuration(10) |
|
| 62 | - ->setRoute('testRoute') |
|
| 63 | - ->setTax(19); |
|
| 51 | + ->setCurrency('€') |
|
| 52 | + ->setDescription('testDesc') |
|
| 53 | + ->setExternalkey('testExtKey') |
|
| 54 | + ->setHeadLine('testHL') |
|
| 55 | + ->setKey('testKey') |
|
| 56 | + ->setLabel('testLabel') |
|
| 57 | + ->setLinkText('testLinkTxt') |
|
| 58 | + ->setLogo('testLogo') |
|
| 59 | + ->setParams(array('test' => 'params')) |
|
| 60 | + ->setPrice('test', 1234) |
|
| 61 | + ->setPublishDuration(10) |
|
| 62 | + ->setRoute('testRoute') |
|
| 63 | + ->setTax(19); |
|
| 64 | 64 | |
| 65 | 65 | $providerOptions->addChannel($channelOptions); |
| 66 | 66 | |
@@ -106,8 +106,8 @@ discard block |
||
| 106 | 106 | ); |
| 107 | 107 | |
| 108 | 108 | $services->expects($this->exactly(3)) |
| 109 | - ->method('get') |
|
| 110 | - ->will($this->returnValueMap($servicesMap)) |
|
| 109 | + ->method('get') |
|
| 110 | + ->will($this->returnValueMap($servicesMap)) |
|
| 111 | 111 | ; |
| 112 | 112 | |
| 113 | 113 | $target = new MultipostingSelectFactory(); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | public function testTrimAndStripTagsFromJobTitle() |
| 56 | 56 | { |
| 57 | - $expected="title (m/w)"; |
|
| 57 | + $expected = "title (m/w)"; |
|
| 58 | 58 | $output = $this->inputFilter->getInputs(); |
| 59 | 59 | $filter = $output['title']->getFilterChain(); |
| 60 | 60 | $this->assertEquals($expected, $filter->filter(' <b>title</b> (m/w)')); |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
| 46 | 46 | ]; |
| 47 | 47 | |
| 48 | - private $inheritance = [ FactoryInterface::class ]; |
|
| 48 | + private $inheritance = [FactoryInterface::class]; |
|
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | public function testCreateService() |
@@ -43,8 +43,8 @@ |
||
| 43 | 43 | $provider=new ProviderOptions(); |
| 44 | 44 | |
| 45 | 45 | $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
| 46 | - ->disableOriginalConstructor() |
|
| 47 | - ->getMock(); |
|
| 46 | + ->disableOriginalConstructor() |
|
| 47 | + ->getMock(); |
|
| 48 | 48 | |
| 49 | 49 | |
| 50 | 50 | $serviceManagerMock |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function testInvokation() |
| 42 | 42 | { |
| 43 | - $provider=new ProviderOptions(); |
|
| 43 | + $provider = new ProviderOptions(); |
|
| 44 | 44 | |
| 45 | 45 | $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
| 46 | 46 | ->disableOriginalConstructor() |