@@ -50,13 +50,13 @@ discard block |
||
| 50 | 50 | public function provideCreatingInstancesTestData() |
| 51 | 51 | { |
| 52 | 52 | return array( |
| 53 | - array(Status::CREATED, null , new Status(Status::CREATED), "[System]"), |
|
| 54 | - array(Status::WAITING_FOR_APPROVAL, 'message2' , new Status(Status::WAITING_FOR_APPROVAL), "message2"), |
|
| 55 | - array(Status::REJECTED, 'message3' , new Status(Status::REJECTED), "message3"), |
|
| 56 | - array(Status::PUBLISH, 'message4' , new Status(Status::PUBLISH), "message4"), |
|
| 57 | - array(Status::ACTIVE, 'message5' , new Status(Status::ACTIVE), "message5"), |
|
| 58 | - array(Status::INACTIVE, 'message6' , new Status(Status::INACTIVE), "message6"), |
|
| 59 | - array(Status::EXPIRED, 'message7' , new Status(Status::EXPIRED), "message7"), |
|
| 53 | + array(Status::CREATED, null, new Status(Status::CREATED), "[System]"), |
|
| 54 | + array(Status::WAITING_FOR_APPROVAL, 'message2', new Status(Status::WAITING_FOR_APPROVAL), "message2"), |
|
| 55 | + array(Status::REJECTED, 'message3', new Status(Status::REJECTED), "message3"), |
|
| 56 | + array(Status::PUBLISH, 'message4', new Status(Status::PUBLISH), "message4"), |
|
| 57 | + array(Status::ACTIVE, 'message5', new Status(Status::ACTIVE), "message5"), |
|
| 58 | + array(Status::INACTIVE, 'message6', new Status(Status::INACTIVE), "message6"), |
|
| 59 | + array(Status::EXPIRED, 'message7', new Status(Status::EXPIRED), "message7"), |
|
| 60 | 60 | ); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function testSetGetDate() |
| 98 | 98 | { |
| 99 | - $date=new \DateTime("2017-02-28 11:11:11"); |
|
| 99 | + $date = new \DateTime("2017-02-28 11:11:11"); |
|
| 100 | 100 | $this->target->setDate($date); |
| 101 | 101 | |
| 102 | 102 | $this->assertEquals($date, $this->target->getDate()); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | public function testSetGetMessage() |
| 110 | 110 | { |
| 111 | - $message="my message"; |
|
| 111 | + $message = "my message"; |
|
| 112 | 112 | $this->target->setMessage($message); |
| 113 | 113 | |
| 114 | 114 | $this->assertEquals($message, $this->target->getMessage()); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function testSetGetStatus() |
| 122 | 122 | { |
| 123 | - $status=new Status(Status::CREATED); |
|
| 123 | + $status = new Status(Status::CREATED); |
|
| 124 | 124 | $this->target->setStatus($status); |
| 125 | 125 | $this->assertEquals($status, $this->target->getStatus()); |
| 126 | 126 | } |
@@ -93,9 +93,9 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @covers \Jobs\Entity\History::setDate |
|
| 97 | - * @covers \Jobs\Entity\History::getDate |
|
| 98 | - */ |
|
| 96 | + * @covers \Jobs\Entity\History::setDate |
|
| 97 | + * @covers \Jobs\Entity\History::getDate |
|
| 98 | + */ |
|
| 99 | 99 | public function testSetGetDate() |
| 100 | 100 | { |
| 101 | 101 | $date=new \DateTime("2017-02-28 11:11:11"); |
@@ -105,9 +105,9 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | - * @covers \Jobs\Entity\History::setMessage |
|
| 109 | - * @covers \Jobs\Entity\History::getMessage |
|
| 110 | - */ |
|
| 108 | + * @covers \Jobs\Entity\History::setMessage |
|
| 109 | + * @covers \Jobs\Entity\History::getMessage |
|
| 110 | + */ |
|
| 111 | 111 | public function testSetGetMessage() |
| 112 | 112 | { |
| 113 | 113 | $message="my message"; |
@@ -117,9 +117,9 @@ discard block |
||
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | - * @covers \Jobs\Entity\History::setStatus |
|
| 121 | - * @covers \Jobs\Entity\History::getStatus |
|
| 122 | - */ |
|
| 120 | + * @covers \Jobs\Entity\History::setStatus |
|
| 121 | + * @covers \Jobs\Entity\History::getStatus |
|
| 122 | + */ |
|
| 123 | 123 | public function testSetGetStatus() |
| 124 | 124 | { |
| 125 | 125 | $status=new Status(Status::CREATED); |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | public function provideBoolean() |
| 181 | 181 | { |
| 182 | 182 | return [ |
| 183 | - [true,true], |
|
| 183 | + [true, true], |
|
| 184 | 184 | [false, false], |
| 185 | 185 | [null, false] |
| 186 | 186 | ]; |
@@ -197,9 +197,9 @@ discard block |
||
| 197 | 197 | |
| 198 | 198 | public function provideArrays() |
| 199 | 199 | { |
| 200 | - $array = ['facebook','linkedin','xing']; |
|
| 200 | + $array = ['facebook', 'linkedin', 'xing']; |
|
| 201 | 201 | return [ |
| 202 | - [$array,$array], |
|
| 202 | + [$array, $array], |
|
| 203 | 203 | ]; |
| 204 | 204 | } |
| 205 | 205 | } |
@@ -85,11 +85,11 @@ |
||
| 85 | 85 | array('setDescription', 'getDescription', 'test2'), |
| 86 | 86 | array('setTitle', 'getTitle', 'test2'), |
| 87 | 87 | array('setLanguage', 'getLanguage', 'test2'), |
| 88 | - array(null , 'getRequirements', ''), |
|
| 89 | - array(null , 'getBenefits', ''), |
|
| 90 | - array(null , 'getQualifications', ''), |
|
| 91 | - array(null , 'getTitle', ''), |
|
| 92 | - array(null , 'getLanguage', 'en'), |
|
| 88 | + array(null, 'getRequirements', ''), |
|
| 89 | + array(null, 'getBenefits', ''), |
|
| 90 | + array(null, 'getQualifications', ''), |
|
| 91 | + array(null, 'getTitle', ''), |
|
| 92 | + array(null, 'getLanguage', 'en'), |
|
| 93 | 93 | ); |
| 94 | 94 | } |
| 95 | 95 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | public function testSetGetCoordinates() |
| 65 | 65 | { |
| 66 | - $input = [50,8]; |
|
| 66 | + $input = [50, 8]; |
|
| 67 | 67 | $this->target->setCoordinates($input); |
| 68 | 68 | $this->assertEquals($input, $this->target->getCoordinates()); |
| 69 | 69 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | 'as_reflection' => true, |
| 36 | 36 | ]; |
| 37 | 37 | |
| 38 | - private $inheritance = [ AbstractStatus::class ]; |
|
| 38 | + private $inheritance = [AbstractStatus::class]; |
|
| 39 | 39 | |
| 40 | 40 | public function testStatusConstants() |
| 41 | 41 | { |
@@ -28,5 +28,5 @@ |
||
| 28 | 28 | |
| 29 | 29 | private $target = Category::class; |
| 30 | 30 | |
| 31 | - private $inheritance = [ Node::class ]; |
|
| 31 | + private $inheritance = [Node::class]; |
|
| 32 | 32 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function testSetGetLabel() |
| 33 | 33 | { |
| 34 | - $label="Jobsintown"; |
|
| 34 | + $label = "Jobsintown"; |
|
| 35 | 35 | |
| 36 | 36 | $this->options->setLabel($label); |
| 37 | 37 | $this->assertEquals($label, $this->options->getLabel()); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function testSetGetKey() |
| 45 | 45 | { |
| 46 | - $key="jobsintown"; |
|
| 46 | + $key = "jobsintown"; |
|
| 47 | 47 | |
| 48 | 48 | $this->options->setKey($key); |
| 49 | 49 | $this->assertEquals($key, $this->options->getKey()); |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function testSetGetPrice() |
| 57 | 57 | { |
| 58 | - $key='test'; |
|
| 59 | - $price=199; |
|
| 58 | + $key = 'test'; |
|
| 59 | + $price = 199; |
|
| 60 | 60 | $this->options->setPrice($key, $price); |
| 61 | 61 | $this->assertEquals($price, $this->options->getPrice($key)); |
| 62 | 62 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function testSetGetTax() |
| 85 | 85 | { |
| 86 | - $tax='21'; |
|
| 86 | + $tax = '21'; |
|
| 87 | 87 | |
| 88 | 88 | $this->options->setTax($tax); |
| 89 | 89 | $this->assertEquals($tax, $this->options->getTax()); |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function testSetGetCurrency() |
| 97 | 97 | { |
| 98 | - $currency="EUR"; |
|
| 98 | + $currency = "EUR"; |
|
| 99 | 99 | |
| 100 | 100 | $this->options->setCurrency($currency); |
| 101 | 101 | $this->assertEquals($currency, $this->options->getCurrency()); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function testSetGetPublishDuration() |
| 109 | 109 | { |
| 110 | - $days=60; |
|
| 110 | + $days = 60; |
|
| 111 | 111 | |
| 112 | 112 | $this->options->setPublishDuration($days); |
| 113 | 113 | $this->assertEquals($days, $this->options->getPublishDuration()); |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public function testSetGetExternalKey() |
| 121 | 121 | { |
| 122 | - $key="1234"; |
|
| 122 | + $key = "1234"; |
|
| 123 | 123 | |
| 124 | 124 | $this->options->setExternalkey($key); |
| 125 | 125 | $this->assertEquals($key, $this->options->getExternalkey()); |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | public function testSetGetCategory() |
| 133 | 133 | { |
| 134 | - $category="Technical Jobs"; |
|
| 134 | + $category = "Technical Jobs"; |
|
| 135 | 135 | |
| 136 | 136 | $this->options->setCategory($category); |
| 137 | 137 | $this->assertEquals($category, $this->options->getCategory()); |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | public function testSetGetHeadline() |
| 145 | 145 | { |
| 146 | - $headline="Post Jobs on YAWIK"; |
|
| 146 | + $headline = "Post Jobs on YAWIK"; |
|
| 147 | 147 | |
| 148 | 148 | $this->options->setHeadLine($headline); |
| 149 | 149 | $this->assertEquals($headline, $this->options->getHeadLine()); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | public function testSetGetDescription() |
| 157 | 157 | { |
| 158 | - $description="Post Jobs on YAWIK"; |
|
| 158 | + $description = "Post Jobs on YAWIK"; |
|
| 159 | 159 | |
| 160 | 160 | $this->options->setDescription($description); |
| 161 | 161 | $this->assertEquals($description, $this->options->getDescription()); |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | */ |
| 168 | 168 | public function testSetGetLinkText() |
| 169 | 169 | { |
| 170 | - $linkText="YAWIK"; |
|
| 170 | + $linkText = "YAWIK"; |
|
| 171 | 171 | |
| 172 | 172 | $this->options->setLinkText($linkText); |
| 173 | 173 | $this->assertEquals($linkText, $this->options->getLinkText()); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | */ |
| 180 | 180 | public function testSetGetRoute() |
| 181 | 181 | { |
| 182 | - $route="YAWIK"; |
|
| 182 | + $route = "YAWIK"; |
|
| 183 | 183 | |
| 184 | 184 | $this->options->setRoute($route); |
| 185 | 185 | $this->assertEquals($route, $this->options->getRoute()); |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | public function testSetGetParams() |
| 193 | 193 | { |
| 194 | - $p=array( |
|
| 194 | + $p = array( |
|
| 195 | 195 | 'view' => 'jobs-publish-on-jobsintown' |
| 196 | 196 | ); |
| 197 | 197 | |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | */ |
| 206 | 206 | public function testSetGetLogo() |
| 207 | 207 | { |
| 208 | - $input="test.logo.gif"; |
|
| 208 | + $input = "test.logo.gif"; |
|
| 209 | 209 | $this->options->setLogo($input); |
| 210 | 210 | $this->assertEquals($input, $this->options->getLogo()); |
| 211 | 211 | } |
@@ -51,9 +51,9 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function testSetAndGetHeadscripts() |
| 53 | 53 | { |
| 54 | - $this->assertEquals([ 'modules/Jobs/js/form.organization-select.js' ], $this->target->getHeadscripts()); |
|
| 55 | - $this->assertSame($this->target, $this->target->setHeadscripts([ 'script1' ]), 'Fluent interface broken on "setHeadscripts"'); |
|
| 56 | - $this->assertEquals([ 'script1' ], $this->target->getHeadscripts()); |
|
| 54 | + $this->assertEquals(['modules/Jobs/js/form.organization-select.js'], $this->target->getHeadscripts()); |
|
| 55 | + $this->assertSame($this->target, $this->target->setHeadscripts(['script1']), 'Fluent interface broken on "setHeadscripts"'); |
|
| 56 | + $this->assertEquals(['script1'], $this->target->getHeadscripts()); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | public function testSetsDefaultAttributesOnInit() |
@@ -78,8 +78,8 @@ discard block |
||
| 78 | 78 | ]); |
| 79 | 79 | |
| 80 | 80 | return [ |
| 81 | - [ [ $org1 ], false ], |
|
| 82 | - [ [ $org1 ], true ], |
|
| 81 | + [[$org1], false], |
|
| 82 | + [[$org1], true], |
|
| 83 | 83 | ]; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | private $target = CustomerNote::class; |
| 30 | 30 | |
| 31 | - private $inheritance = [ SummaryForm::class ]; |
|
| 31 | + private $inheritance = [SummaryForm::class]; |
|
| 32 | 32 | |
| 33 | 33 | private $attributes = [ |
| 34 | 34 | 'baseFieldset' => 'Jobs/CustomerNoteFieldset', |