@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | { |
| 19 | 19 | public function testConstructor() |
| 20 | 20 | { |
| 21 | - $target= new ListFilterLocationFieldset(); |
|
| 21 | + $target = new ListFilterLocationFieldset(); |
|
| 22 | 22 | $this->assertInstanceOf('Jobs\Form\ListFilterLocationFieldset', $target); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | ), |
| 55 | 55 | 'attributes' => [ |
| 56 | 56 | 'value' => '10', // default distance |
| 57 | - 'data-searchbox' => -1, // hide the search box |
|
| 57 | + 'data-searchbox' => -1, // hide the search box |
|
| 58 | 58 | 'data-allowclear' => 'false', // allow to clear a selected value |
| 59 | 59 | 'data-placeholder' => 'Distance', |
| 60 | 60 | ] |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | { |
| 69 | 69 | $this->view->expects($this->once()) |
| 70 | 70 | ->method('partial') |
| 71 | - ->with(dirname($this->viewModel->getTemplate()) . '/' . $this->helper->getPartial(), |
|
| 71 | + ->with(dirname($this->viewModel->getTemplate()).'/'.$this->helper->getPartial(), |
|
| 72 | 72 | $this->callback(function(array $variables) |
| 73 | 73 | { |
| 74 | 74 | return $variables['default'] && $variables['oneClick'] === []; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | $this->view->expects($this->once()) |
| 88 | 88 | ->method('partial') |
| 89 | - ->with(dirname($this->viewModel->getTemplate()) . '/' . $options['partial']); |
|
| 89 | + ->with(dirname($this->viewModel->getTemplate()).'/'.$options['partial']); |
|
| 90 | 90 | |
| 91 | 91 | $helper = $this->helper; |
| 92 | 92 | $helper($this->validData(), $options); |
@@ -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() |
@@ -104,9 +104,9 @@ discard block |
||
| 104 | 104 | ->disableOriginalConstructor() |
| 105 | 105 | ->getMock(); |
| 106 | 106 | |
| 107 | - $callback1 = [new MailSenderListenerMock(),'listen1']; |
|
| 108 | - $callback2 = [new MailSenderListenerMock(),'listen2']; |
|
| 109 | - $callback3 = [new MailSenderListenerMock(),'listen3']; |
|
| 107 | + $callback1 = [new MailSenderListenerMock(), 'listen1']; |
|
| 108 | + $callback2 = [new MailSenderListenerMock(), 'listen2']; |
|
| 109 | + $callback3 = [new MailSenderListenerMock(), 'listen3']; |
|
| 110 | 110 | $events->expects($this->exactly(3)) |
| 111 | 111 | ->method('attach') |
| 112 | 112 | ->withConsecutive( |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | array(JobEvent::EVENT_JOB_ACCEPTED, array($this->target, 'onJobAccepted')), |
| 115 | 115 | array(JobEvent::EVENT_JOB_REJECTED, array($this->target, 'onJobRejected')) |
| 116 | 116 | ) |
| 117 | - ->will($this->onConsecutiveCalls($callback1,$callback2,$callback3)) |
|
| 117 | + ->will($this->onConsecutiveCalls($callback1, $callback2, $callback3)) |
|
| 118 | 118 | ; |
| 119 | 119 | |
| 120 | 120 | $events->expects($this->exactly(3)) |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | |
| 197 | 197 | class MailSenderListenerMock |
| 198 | 198 | { |
| 199 | - public function listen1(){} |
|
| 200 | - public function listen2(){} |
|
| 201 | - public function listen3(){} |
|
| 199 | + public function listen1() {} |
|
| 200 | + public function listen2() {} |
|
| 201 | + public function listen3() {} |
|
| 202 | 202 | } |
| 203 | 203 | \ No newline at end of file |
@@ -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') |
@@ -199,7 +199,7 @@ |
||
| 199 | 199 | |
| 200 | 200 | $actual = $this->target->__invoke($event); |
| 201 | 201 | |
| 202 | - $this->assertTrue(is_array($actual),'Listener did not return an array!'); |
|
| 202 | + $this->assertTrue(is_array($actual), 'Listener did not return an array!'); |
|
| 203 | 203 | $this->assertArrayHasKey('status', $actual); |
| 204 | 204 | $this->assertEquals('disabled', $actual['status']); |
| 205 | 205 | } |