@@ -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', |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | ], |
| 35 | 35 | ]; |
| 36 | 36 | |
| 37 | - private $inheritance = [ Fieldset::class ]; |
|
| 37 | + private $inheritance = [Fieldset::class]; |
|
| 38 | 38 | |
| 39 | 39 | public function testInitialize() |
| 40 | 40 | { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | public function testConstructor() |
| 21 | 21 | { |
| 22 | - $target= new ListFilterPersonalFieldset(); |
|
| 22 | + $target = new ListFilterPersonalFieldset(); |
|
| 23 | 23 | $this->assertInstanceOf('Jobs\Form\ListFilterPersonalFieldset', $target); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | ], |
| 40 | 40 | ]; |
| 41 | 41 | |
| 42 | - private $inheritance = [ MetaDataFieldset::class, ViewPartialProviderInterface::class ]; |
|
| 42 | + private $inheritance = [MetaDataFieldset::class, ViewPartialProviderInterface::class]; |
|
| 43 | 43 | |
| 44 | 44 | private $attributes = [ |
| 45 | 45 | 'defaultPartial' => 'jobs/form/customer-note' |
@@ -36,14 +36,14 @@ |
||
| 36 | 36 | private $target = [ |
| 37 | 37 | ClassificationsFieldset::class, |
| 38 | 38 | '@testInitialize' => [ |
| 39 | - 'mock' => ['setName' => ['with' => 'classifications'], 'add' ], |
|
| 39 | + 'mock' => ['setName' => ['with' => 'classifications'], 'add'], |
|
| 40 | 40 | ], |
| 41 | 41 | ]; |
| 42 | 42 | |
| 43 | - private $inheritance = [ Fieldset::class ]; |
|
| 43 | + private $inheritance = [Fieldset::class]; |
|
| 44 | 44 | |
| 45 | 45 | private $properties = [ |
| 46 | - ['hydrator', ['ignore_setter' => true, 'ignore_getter' => true, 'default@' => EntityHydrator::class ]], |
|
| 46 | + ['hydrator', ['ignore_setter' => true, 'ignore_getter' => true, 'default@' => EntityHydrator::class]], |
|
| 47 | 47 | ]; |
| 48 | 48 | |
| 49 | 49 | public function testInitialize() |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | public function testConstructor() |
| 21 | 21 | { |
| 22 | - $target= new ListFilterAdminFieldset(); |
|
| 22 | + $target = new ListFilterAdminFieldset(); |
|
| 23 | 23 | $this->assertInstanceOf('Jobs\Form\ListFilterAdminFieldset', $target); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | ), |
| 46 | 46 | 'attributes' => array( |
| 47 | 47 | 'value' => Status::CREATED, |
| 48 | - 'data-searchbox' => -1, // hide the search box |
|
| 48 | + 'data-searchbox' => -1, // hide the search box |
|
| 49 | 49 | 'data-allowclear' => 'false', // allow to clear a selected value |
| 50 | 50 | ) |
| 51 | 51 | ]; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | public function testConstructor() |
| 21 | 21 | { |
| 22 | - $target= new ListFilterBaseFieldset(); |
|
| 22 | + $target = new ListFilterBaseFieldset(); |
|
| 23 | 23 | $this->assertInstanceOf('Jobs\Form\ListFilterBaseFieldset', $target); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | $add1 = ['type' => 'Hidden', |
| 34 | 34 | 'name' => 'page', |
| 35 | - 'attributes' => ['value' => 1,] |
|
| 35 | + 'attributes' => ['value' => 1, ] |
|
| 36 | 36 | ]; |
| 37 | 37 | |
| 38 | 38 | $add2 = [ |