@@ -46,8 +46,8 @@ |
||
| 46 | 46 | $expectedIdentifiers = array('Jobs', 'Jobs/Events'); |
| 47 | 47 | $eventManager = new EventManager(); |
| 48 | 48 | $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
| 49 | - ->disableOriginalConstructor() |
|
| 50 | - ->getMock(); |
|
| 49 | + ->disableOriginalConstructor() |
|
| 50 | + ->getMock(); |
|
| 51 | 51 | |
| 52 | 52 | $services->expects($this->once())->method('get')->with('EventManager')->willReturn($eventManager); |
| 53 | 53 | |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | |
| 53 | 53 | $services->expects($this->once())->method('get')->with('EventManager')->willReturn($eventManager); |
| 54 | 54 | |
| 55 | - $events = $target->__invoke($services,'irrelevant'); |
|
| 55 | + $events = $target->__invoke($services, 'irrelevant'); |
|
| 56 | 56 | |
| 57 | 57 | $this->assertSame($eventManager, $events); |
| 58 | 58 | $this->assertAttributeInstanceOf($expectedEventClass, 'eventPrototype', $events); |
@@ -22,16 +22,16 @@ |
||
| 22 | 22 | public function testFactory($config) |
| 23 | 23 | { |
| 24 | 24 | $serviceManager = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
| 25 | - ->disableOriginalConstructor()->getMock(); |
|
| 25 | + ->disableOriginalConstructor()->getMock(); |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | if (isset($config['core_options'])) { |
| 30 | 30 | $coreOptions = new \Core\Options\ModuleOptions($config['core_options']); |
| 31 | 31 | $serviceManager->expects($this->exactly(2)) |
| 32 | - ->method('get') |
|
| 33 | - ->withConsecutive(array('Config'), array('Core/Options')) |
|
| 34 | - ->will($this->onConsecutiveCalls($config, $coreOptions)); |
|
| 32 | + ->method('get') |
|
| 33 | + ->withConsecutive(array('Config'), array('Core/Options')) |
|
| 34 | + ->will($this->onConsecutiveCalls($config, $coreOptions)); |
|
| 35 | 35 | } else { |
| 36 | 36 | $serviceManager->expects($this->once())->method('get')->with('Config')->willReturn($config); |
| 37 | 37 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $factory = new ModuleOptionsFactory; |
| 40 | 40 | $defaultOption = new ModuleOptions(array()); |
| 41 | 41 | |
| 42 | - $object = $factory->__invoke($serviceManager,'irrelevant'); |
|
| 42 | + $object = $factory->__invoke($serviceManager, 'irrelevant'); |
|
| 43 | 43 | |
| 44 | 44 | $this->assertInstanceOf('Jobs\Options\ModuleOptions', $object); |
| 45 | 45 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function testSetGetMultipostingApprovalMail() |
| 33 | 33 | { |
| 34 | - $mail="[email protected]"; |
|
| 34 | + $mail = "[email protected]"; |
|
| 35 | 35 | |
| 36 | 36 | $this->options->setMultipostingApprovalMail($mail); |
| 37 | 37 | $this->assertEquals($mail, $this->options->getMultipostingApprovalMail()); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function testSetGetDefaultLogo() |
| 45 | 45 | { |
| 46 | - $image="image.png"; |
|
| 46 | + $image = "image.png"; |
|
| 47 | 47 | |
| 48 | 48 | $this->options->setDefaultLogo($image); |
| 49 | 49 | $this->assertEquals($image, $this->options->getDefaultLogo()); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function testSetGetMultipostingTargetUri() |
| 57 | 57 | { |
| 58 | - $uri="http://test.de/uri"; |
|
| 58 | + $uri = "http://test.de/uri"; |
|
| 59 | 59 | $this->options->setMultipostingTargetUri($uri); |
| 60 | 60 | $this->assertEquals($uri, $this->options->getMultipostingTargetUri()); |
| 61 | 61 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function testSetGetCompanyLogoMaxSize() |
| 68 | 68 | { |
| 69 | - $size='1234'; |
|
| 69 | + $size = '1234'; |
|
| 70 | 70 | |
| 71 | 71 | $this->options->setCompanyLogoMaxSize($size); |
| 72 | 72 | $this->assertEquals($size, $this->options->getCompanyLogoMaxSize()); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | */ |
| 79 | 79 | public function testSetGetCompanyLogoMimeType() |
| 80 | 80 | { |
| 81 | - $mime=array("text/plain"); |
|
| 81 | + $mime = array("text/plain"); |
|
| 82 | 82 | |
| 83 | 83 | $this->options->setCompanyLogoMimeType($mime); |
| 84 | 84 | $this->assertEquals($mime, $this->options->getCompanyLogoMimeType()); |
@@ -51,12 +51,12 @@ |
||
| 51 | 51 | $target = new CheckJobCreatePermissionListener(); |
| 52 | 52 | |
| 53 | 53 | $events = $this->getMockBuilder('\Zend\EventManager\SharedEventManager') |
| 54 | - ->disableOriginalConstructor() |
|
| 55 | - ->getMock(); |
|
| 54 | + ->disableOriginalConstructor() |
|
| 55 | + ->getMock(); |
|
| 56 | 56 | |
| 57 | 57 | $events->expects($this->once()) |
| 58 | - ->method('attach') |
|
| 59 | - ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission')); |
|
| 58 | + ->method('attach') |
|
| 59 | + ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission')); |
|
| 60 | 60 | |
| 61 | 61 | $target->attachShared($events); |
| 62 | 62 | } |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | |
| 141 | 141 | for ($i = 0; $i < 3; $i++) { |
| 142 | 142 | $empUser = new User(); |
| 143 | - $empUser->setId('1234-' . $i); |
|
| 143 | + $empUser->setId('1234-'.$i); |
|
| 144 | 144 | $perm = new EmployeePermissions(EmployeePermissionsInterface::JOBS_VIEW); |
| 145 | 145 | if (2 == $i && $isOneEmployeeAllowed) { |
| 146 | 146 | $perm->grant(EmployeePermissionsInterface::JOBS_CREATE); |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | * @testdox Implements \Organizations\Entity\EmployeeInterface |
| 135 | 135 | * @dataProvider provideStatusCheckData |
| 136 | 136 | */ |
| 137 | - public function testConvinientStatusCheckMethods($initialStatus, $expectedResults, $strict=null) |
|
| 137 | + public function testConvinientStatusCheckMethods($initialStatus, $expectedResults, $strict = null) |
|
| 138 | 138 | { |
| 139 | 139 | $this->target->setStatus($initialStatus); |
| 140 | 140 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | extract($params); |
| 48 | 48 | |
| 49 | 49 | if (!empty($createOrganizationName)) { |
| 50 | - $organizationName = OrganizationNameEntityProvider::createEntityWithRandomData((array)$createOrganizationName); |
|
| 50 | + $organizationName = OrganizationNameEntityProvider::createEntityWithRandomData((array) $createOrganizationName); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | return array_merge($params, compact('organizationName')); |
@@ -84,9 +84,9 @@ |
||
| 84 | 84 | array('setLabelRequirements', 'getLabelRequirements', 'test1'), |
| 85 | 85 | array('setLabelBenefits', 'getLabelBenefits', 'test2'), |
| 86 | 86 | array('setLabelQualifications', 'getLabelQualifications', 'test2'), |
| 87 | - array(null , 'getLabelRequirements', 'Requirements'), |
|
| 88 | - array(null , 'getLabelBenefits', 'Benefits'), |
|
| 89 | - array(null , 'getLabelQualifications', 'Qualifications'), |
|
| 87 | + array(null, 'getLabelRequirements', 'Requirements'), |
|
| 88 | + array(null, 'getLabelBenefits', 'Benefits'), |
|
| 89 | + array(null, 'getLabelQualifications', 'Qualifications'), |
|
| 90 | 90 | |
| 91 | 91 | ); |
| 92 | 92 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | public function testProvidesFluentInterface() |
| 58 | 58 | { |
| 59 | 59 | $this->assertSame($this->filter, $this->filter->setStripParams(array()), |
| 60 | - 'Fluent interface broken in method SetStripParams'); |
|
| 60 | + 'Fluent interface broken in method SetStripParams'); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | 'attributes' => [ |
| 122 | 122 | 'data-placeholder' => /*@translate*/ 'please select', |
| 123 | 123 | 'data-allowclear' => 'false', |
| 124 | - 'data-searchbox' => -1, // hide the search box |
|
| 124 | + 'data-searchbox' => -1, // hide the search box |
|
| 125 | 125 | 'required' => true, // mark label as required |
| 126 | 126 | ], |
| 127 | 127 | ) |