@@ -80,7 +80,7 @@ |
||
80 | 80 | $sm = $this->getServiceManagerMock(); |
81 | 81 | $sm->setService('ApplicationConfig', $appConfig); |
82 | 82 | |
83 | - $builder = $this->target->__invoke($sm,'irrelevant'); |
|
83 | + $builder = $this->target->__invoke($sm, 'irrelevant'); |
|
84 | 84 | |
85 | 85 | $this->assertAttributeSame($expectModulePath, 'moduleConfigPath', $builder); |
86 | 86 | $this->assertAttributeSame($expectGlobalPaths, 'globalConfigPaths', $builder); |
@@ -82,16 +82,16 @@ |
||
82 | 82 | 'number' => '123', |
83 | 83 | ]); |
84 | 84 | $repository = $this |
85 | - ->getMockBuilder(Organization::class) |
|
86 | - ->disableOriginalConstructor() |
|
85 | + ->getMockBuilder(Organization::class) |
|
86 | + ->disableOriginalConstructor() |
|
87 | 87 | ->setMethods(['find']) |
88 | 88 | ->getMock() |
89 | 89 | ; |
90 | 90 | $repository |
91 | - ->expects($this->once()) |
|
92 | - ->method('find') |
|
93 | - ->with('orgId') |
|
94 | - ->willReturn($org) |
|
91 | + ->expects($this->once()) |
|
92 | + ->method('find') |
|
93 | + ->with('orgId') |
|
94 | + ->willReturn($org) |
|
95 | 95 | ; |
96 | 96 | $repositories = $this->createPluginManagerMock(['Organizations' => $repository]); |
97 | 97 | $services['repositories'] = $repositories; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ FactoryInterface::class ]; |
|
46 | + private $inheritance = [FactoryInterface::class]; |
|
47 | 47 | |
48 | 48 | |
49 | 49 | public function testCreateService() |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $container = $this->getServiceManagerMock(); |
52 | 52 | $formElements = $this->getPluginManagerMock($container); |
53 | 53 | |
54 | - $this->target->__invoke($container,OrganizationSelect::class); |
|
54 | + $this->target->__invoke($container, OrganizationSelect::class); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | public function testServiceCreationWithoutPreSelectedOrganization() |
@@ -50,10 +50,10 @@ |
||
50 | 50 | { |
51 | 51 | $select = $this->getMockBuilder('Jobs\Form\MultipostingSelect')->disableOriginalConstructor()->getMock(); |
52 | 52 | $select->expects($this->once()) |
53 | - ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes'); |
|
53 | + ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes'); |
|
54 | 54 | |
55 | 55 | $select->expects($this->once()) |
56 | - ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js')); |
|
56 | + ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js')); |
|
57 | 57 | |
58 | 58 | $factory = $this->getMockBuilder('\Zend\ServiceManager\FactoryInterface') |
59 | 59 | ->setMethods(array('__invoke')) |
@@ -52,9 +52,9 @@ |
||
52 | 52 | |
53 | 53 | public function testTrimAndStripTagsFromJobTitle() |
54 | 54 | { |
55 | - $expected="title (m/w)"; |
|
55 | + $expected = "title (m/w)"; |
|
56 | 56 | $output = $this->inputFilter->getInputs(); |
57 | 57 | $filter = $output['title']->getFilterChain(); |
58 | - $this->assertEquals($expected, $filter->filter(' <b>title</b> (m/w)')); |
|
58 | + $this->assertEquals($expected, $filter->filter(' <b>title</b> (m/w)')); |
|
59 | 59 | } |
60 | 60 | } |
@@ -46,19 +46,19 @@ discard block |
||
46 | 46 | $channelOptions = new ChannelOptions(); |
47 | 47 | |
48 | 48 | $channelOptions->setCategory('testCat') |
49 | - ->setCurrency('€') |
|
50 | - ->setDescription('testDesc') |
|
51 | - ->setExternalkey('testExtKey') |
|
52 | - ->setHeadLine('testHL') |
|
53 | - ->setKey('testKey') |
|
54 | - ->setLabel('testLabel') |
|
55 | - ->setLinkText('testLinkTxt') |
|
56 | - ->setLogo('testLogo') |
|
57 | - ->setParams(array('test' => 'params')) |
|
58 | - ->setPrice('test', 1234) |
|
59 | - ->setPublishDuration(10) |
|
60 | - ->setRoute('testRoute') |
|
61 | - ->setTax(19); |
|
49 | + ->setCurrency('€') |
|
50 | + ->setDescription('testDesc') |
|
51 | + ->setExternalkey('testExtKey') |
|
52 | + ->setHeadLine('testHL') |
|
53 | + ->setKey('testKey') |
|
54 | + ->setLabel('testLabel') |
|
55 | + ->setLinkText('testLinkTxt') |
|
56 | + ->setLogo('testLogo') |
|
57 | + ->setParams(array('test' => 'params')) |
|
58 | + ->setPrice('test', 1234) |
|
59 | + ->setPublishDuration(10) |
|
60 | + ->setRoute('testRoute') |
|
61 | + ->setTax(19); |
|
62 | 62 | |
63 | 63 | $providerOptions->addChannel($channelOptions); |
64 | 64 | |
@@ -66,35 +66,35 @@ discard block |
||
66 | 66 | $currencyFormat->expects($this->any())->method('__invoke')->will($this->returnArgument(0)); |
67 | 67 | |
68 | 68 | $helpers = $this |
69 | - ->getMockBuilder('\Zend\ServiceManager\AbstractPluginManager') |
|
70 | - ->disableOriginalConstructor() |
|
71 | - ->setMethods(array('get')) |
|
72 | - ->getMockForAbstractClass() |
|
69 | + ->getMockBuilder('\Zend\ServiceManager\AbstractPluginManager') |
|
70 | + ->disableOriginalConstructor() |
|
71 | + ->setMethods(array('get')) |
|
72 | + ->getMockForAbstractClass() |
|
73 | 73 | ; |
74 | 74 | |
75 | 75 | $helpers |
76 | - ->expects($this->once()) |
|
77 | - ->method('get') |
|
78 | - ->with('currencyFormat') |
|
79 | - ->willReturn($currencyFormat) |
|
76 | + ->expects($this->once()) |
|
77 | + ->method('get') |
|
78 | + ->with('currencyFormat') |
|
79 | + ->willReturn($currencyFormat) |
|
80 | 80 | ; |
81 | 81 | |
82 | 82 | $router = $this |
83 | - ->getMockBuilder('\Zend\Mvc\Router\SimpleRouteStack') |
|
84 | - ->disableOriginalConstructor() |
|
85 | - ->setMethods(['assemble']) |
|
86 | - ->getMock() |
|
83 | + ->getMockBuilder('\Zend\Mvc\Router\SimpleRouteStack') |
|
84 | + ->disableOriginalConstructor() |
|
85 | + ->setMethods(['assemble']) |
|
86 | + ->getMock() |
|
87 | 87 | ; |
88 | 88 | $router |
89 | - ->expects($this->any()) |
|
90 | - ->method('assemble') |
|
91 | - ->willReturn('/test/uri') |
|
89 | + ->expects($this->any()) |
|
90 | + ->method('assemble') |
|
91 | + ->willReturn('/test/uri') |
|
92 | 92 | ; |
93 | 93 | |
94 | 94 | $services = $this |
95 | - ->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
|
96 | - ->disableOriginalConstructor() |
|
97 | - ->getMock() |
|
95 | + ->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
|
96 | + ->disableOriginalConstructor() |
|
97 | + ->getMock() |
|
98 | 98 | ; |
99 | 99 | |
100 | 100 | $servicesMap = array( |
@@ -104,8 +104,8 @@ discard block |
||
104 | 104 | ); |
105 | 105 | |
106 | 106 | $services->expects($this->exactly(3)) |
107 | - ->method('get') |
|
108 | - ->will($this->returnValueMap($servicesMap)) |
|
107 | + ->method('get') |
|
108 | + ->will($this->returnValueMap($servicesMap)) |
|
109 | 109 | ; |
110 | 110 | |
111 | 111 | $target = new MultipostingSelectFactory(); |
@@ -110,7 +110,7 @@ |
||
110 | 110 | |
111 | 111 | $target = new MultipostingSelectFactory(); |
112 | 112 | |
113 | - $select = $target->__invoke($services,'irrelevant'); |
|
113 | + $select = $target->__invoke($services, 'irrelevant'); |
|
114 | 114 | |
115 | 115 | $this->assertInstanceOf('\Jobs\Form\MultipostingSelect', $select); |
116 | 116 | $this->assertEquals('false', $select->getAttribute('data-autoinit')); |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | */ |
52 | 52 | private $formElements; |
53 | 53 | |
54 | - /** |
|
55 | - * @var ContainerInterface |
|
56 | - */ |
|
54 | + /** |
|
55 | + * @var ContainerInterface |
|
56 | + */ |
|
57 | 57 | private $services; |
58 | 58 | |
59 | 59 | public function setUp() |
@@ -76,21 +76,21 @@ discard block |
||
76 | 76 | $this->user = $user; |
77 | 77 | |
78 | 78 | $auth = $this->getMockBuilder('Auth\AuthenticationService') |
79 | - ->disableOriginalConstructor() |
|
80 | - ->getMock(); |
|
79 | + ->disableOriginalConstructor() |
|
80 | + ->getMock(); |
|
81 | 81 | |
82 | 82 | $auth->expects($this->once()) |
83 | - ->method('getUser') |
|
84 | - ->willReturn($user); |
|
83 | + ->method('getUser') |
|
84 | + ->willReturn($user); |
|
85 | 85 | |
86 | 86 | $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
87 | - ->disableOriginalConstructor() |
|
88 | - ->getMock(); |
|
87 | + ->disableOriginalConstructor() |
|
88 | + ->getMock(); |
|
89 | 89 | |
90 | 90 | $services->expects($this->once()) |
91 | - ->method('get') |
|
92 | - ->with('AuthenticationService') |
|
93 | - ->willReturn($auth); |
|
91 | + ->method('get') |
|
92 | + ->with('AuthenticationService') |
|
93 | + ->willReturn($auth); |
|
94 | 94 | |
95 | 95 | $this->services = $services; |
96 | 96 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $org = $this->user->getOrganization(); |
113 | 113 | $org->expects($this->once())->method('hasAssociation')->willReturn(false); |
114 | 114 | |
115 | - $select = $this->target->__invoke($this->services,'irrelevant'); |
|
115 | + $select = $this->target->__invoke($this->services, 'irrelevant'); |
|
116 | 116 | |
117 | 117 | $this->assertInstanceOf('\Jobs\Form\HiringOrganizationSelect', $select); |
118 | 118 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $org = $this->user->getOrganization(); |
126 | 126 | $org->expects($this->once())->method('hasAssociation')->willReturn(false); |
127 | 127 | |
128 | - $select = $this->target->__invoke($this->services,'irrelevant'); |
|
128 | + $select = $this->target->__invoke($this->services, 'irrelevant'); |
|
129 | 129 | |
130 | 130 | $this->assertEquals(array(), $select->getValueOptions()); |
131 | 131 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | 'testOrg1' => 'testOrg1.name|org1.city|org1.street|org1.number|' |
162 | 162 | ); |
163 | 163 | |
164 | - $select = $this->target->__invoke($this->services,'irrelevant'); |
|
164 | + $select = $this->target->__invoke($this->services, 'irrelevant'); |
|
165 | 165 | |
166 | 166 | $actual = $select->getValueOptions(); |
167 | 167 |
@@ -61,16 +61,16 @@ |
||
61 | 61 | array('serverUrl') |
62 | 62 | ) |
63 | 63 | ->will($this->onConsecutiveCalls($urlHelper, $paramsHelper, $serverUrl)); |
64 | - $sm = $this |
|
65 | - ->getMockBuilder(ServiceManager::class) |
|
66 | - ->disableOriginalConstructor() |
|
67 | - ->getMock() |
|
68 | - ; |
|
69 | - $sm->expects($this->once()) |
|
70 | - ->method('get') |
|
71 | - ->with('ViewHelperManager') |
|
72 | - ->willReturn($helpers) |
|
73 | - ; |
|
64 | + $sm = $this |
|
65 | + ->getMockBuilder(ServiceManager::class) |
|
66 | + ->disableOriginalConstructor() |
|
67 | + ->getMock() |
|
68 | + ; |
|
69 | + $sm->expects($this->once()) |
|
70 | + ->method('get') |
|
71 | + ->with('ViewHelperManager') |
|
72 | + ->willReturn($helpers) |
|
73 | + ; |
|
74 | 74 | $service = $target->__invoke($sm,'irrelevant'); |
75 | 75 | |
76 | 76 | $this->assertInstanceOf('\Jobs\View\Helper\JobUrl', $service); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | ->with('ViewHelperManager') |
72 | 72 | ->willReturn($helpers) |
73 | 73 | ; |
74 | - $service = $target->__invoke($sm,'irrelevant'); |
|
74 | + $service = $target->__invoke($sm, 'irrelevant'); |
|
75 | 75 | |
76 | 76 | $this->assertInstanceOf('\Jobs\View\Helper\JobUrl', $service); |
77 | 77 | $this->assertAttributeSame($urlHelper, 'urlHelper', $service); |
@@ -63,12 +63,12 @@ |
||
63 | 63 | ->will($this->onConsecutiveCalls($urlHelper, $translateHelper, $paramsHelper, $serverUrl)); |
64 | 64 | |
65 | 65 | $sm = $this->getMockBuilder(ServiceManager::class) |
66 | - ->disableOriginalConstructor() |
|
67 | - ->getMock(); |
|
68 | - $sm->expects($this->once()) |
|
69 | - ->method('get') |
|
70 | - ->with('ViewHelperManager') |
|
71 | - ->willReturn($helpers); |
|
66 | + ->disableOriginalConstructor() |
|
67 | + ->getMock(); |
|
68 | + $sm->expects($this->once()) |
|
69 | + ->method('get') |
|
70 | + ->with('ViewHelperManager') |
|
71 | + ->willReturn($helpers); |
|
72 | 72 | |
73 | 73 | $service = $target->__invoke($sm,'irrelevant'); |
74 | 74 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | ->with('ViewHelperManager') |
71 | 71 | ->willReturn($helpers); |
72 | 72 | |
73 | - $service = $target->__invoke($sm,'irrelevant'); |
|
73 | + $service = $target->__invoke($sm, 'irrelevant'); |
|
74 | 74 | |
75 | 75 | $this->assertInstanceOf('\Jobs\View\Helper\ApplyUrl', $service); |
76 | 76 | $this->assertAttributeSame($urlHelper, 'urlHelper', $service); |
@@ -57,8 +57,8 @@ |
||
57 | 57 | ->getMock(); |
58 | 58 | |
59 | 59 | $urlHelper |
60 | - ->expects($this->once()) |
|
61 | - ->method('__invoke') |
|
60 | + ->expects($this->once()) |
|
61 | + ->method('__invoke') |
|
62 | 62 | ->with(null, [], ['query' => $query->toArray()], true) |
63 | 63 | ->willReturn('returnUrl') |
64 | 64 | ; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ] |
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ FactoryInterface::class ]; |
|
46 | + private $inheritance = [FactoryInterface::class]; |
|
47 | 47 | |
48 | 48 | public function testInvoke() |
49 | 49 | { |