@@ -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 = [ |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | ], |
| 35 | 35 | ]; |
| 36 | 36 | |
| 37 | - private $inheritance = [ WizardContainer::class ]; |
|
| 37 | + private $inheritance = [WizardContainer::class]; |
|
| 38 | 38 | |
| 39 | 39 | public function testInitialize() |
| 40 | 40 | { |