@@ -35,7 +35,7 @@ |
||
35 | 35 | ], |
36 | 36 | ]; |
37 | 37 | |
38 | - private $inheritance = [ AbstractStatus::class ]; |
|
38 | + private $inheritance = [AbstractStatus::class]; |
|
39 | 39 | |
40 | 40 | public function xtestGetStatesSortsMap() |
41 | 41 | { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | private $target = [ |
36 | 36 | Ast_ConcreteStatus::class, |
37 | - [ Ast_ConcreteStatus::TEST ], |
|
37 | + [Ast_ConcreteStatus::TEST], |
|
38 | 38 | '@testInheritance' => [ |
39 | 39 | 'class' => AbstractStatus::class, |
40 | 40 | 'as_reflection' => true |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | '@testConstruction' => false, |
45 | 45 | ]; |
46 | 46 | |
47 | - private $inheritance = [ StatusInterface::class ]; |
|
47 | + private $inheritance = [StatusInterface::class]; |
|
48 | 48 | |
49 | 49 | public function testGetStates() |
50 | 50 | { |
@@ -91,7 +91,7 @@ |
||
91 | 91 | ->getMock(); |
92 | 92 | $attachableEntityManager->expects($this->once()) |
93 | 93 | ->method('setReferences') |
94 | - ->with($this->callback(function ($references) { |
|
94 | + ->with($this->callback(function($references) { |
|
95 | 95 | return is_array($references); |
96 | 96 | })) |
97 | 97 | ->willReturnSelf(); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | '@testSetImagesWithPermissions' => ['mock' => ['clear' => 1, 'set' => 0, 'setPermissions']], |
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ ImageSetInterface::class ]; |
|
46 | + private $inheritance = [ImageSetInterface::class]; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * @covers ::__construct |
@@ -206,8 +206,8 @@ |
||
206 | 206 | public function provideTestCreateAttachedEntityData() |
207 | 207 | { |
208 | 208 | return [ |
209 | - ['EntityClass' ], |
|
210 | - ['EntityClass', 'testkey' ], |
|
209 | + ['EntityClass'], |
|
210 | + ['EntityClass', 'testkey'], |
|
211 | 211 | ['EntityClass', ['param' => 'value']], |
212 | 212 | ['EntityClass', ['param' => 'value'], 'testkey'], |
213 | 213 | ]; |
@@ -183,14 +183,14 @@ |
||
183 | 183 | public function provideRolePermissionsData() |
184 | 184 | { |
185 | 185 | return [ |
186 | - [ 'user', 'user', false, true ], |
|
187 | - [ 'recruiter', 'user', false, false ], |
|
188 | - [ 'all', 'irrelevant', false, true ], |
|
189 | - [ 'user', 'user', true, true ], |
|
190 | - [ 'recruiter', 'user', true, false], |
|
191 | - [ 'all', 'irrelevant', true, true ], |
|
192 | - [ 'testUser', null, true, true ], |
|
193 | - [ 'anonymous', null, true, false ], |
|
186 | + ['user', 'user', false, true], |
|
187 | + ['recruiter', 'user', false, false], |
|
188 | + ['all', 'irrelevant', false, true], |
|
189 | + ['user', 'user', true, true], |
|
190 | + ['recruiter', 'user', true, false], |
|
191 | + ['all', 'irrelevant', true, true], |
|
192 | + ['testUser', null, true, true], |
|
193 | + ['anonymous', null, true, false], |
|
194 | 194 | ]; |
195 | 195 | } |
196 | 196 |
@@ -47,15 +47,15 @@ |
||
47 | 47 | ] |
48 | 48 | ]; |
49 | 49 | |
50 | - private $inheritance = [ LeafsInterface::class ]; |
|
50 | + private $inheritance = [LeafsInterface::class]; |
|
51 | 51 | |
52 | - private $traits = [ EntityTrait::class ]; |
|
52 | + private $traits = [EntityTrait::class]; |
|
53 | 53 | |
54 | 54 | public function propertiesProvider() |
55 | 55 | { |
56 | 56 | |
57 | 57 | return [ |
58 | - [ 'items', ['default' => new ArrayCollection(), 'value' => new \Doctrine\Common\Collections\ArrayCollection()]], |
|
58 | + ['items', ['default' => new ArrayCollection(), 'value' => new \Doctrine\Common\Collections\ArrayCollection()]], |
|
59 | 59 | ]; |
60 | 60 | } |
61 | 61 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | '@testCopyArrayValues' => Fcot_Mock::class, |
42 | 42 | ]; |
43 | 43 | |
44 | - private $inheritance = [ AbstractOptions::class ]; |
|
44 | + private $inheritance = [AbstractOptions::class]; |
|
45 | 45 | |
46 | 46 | public function propertiesProvider() |
47 | 47 | { |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | 'fields' => [ |
128 | 128 | 'field' => [ |
129 | 129 | 'attributes' => ['attr' => 'attrVal'], |
130 | - 'options' => ['opt1' => 'optVal' ], |
|
130 | + 'options' => ['opt1' => 'optVal'], |
|
131 | 131 | 'label' => 'label', |
132 | 132 | 'required' => true, |
133 | 133 | 'type' => 'ElementType', |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | protected $target = [ |
31 | 31 | 'class' => '\Core\Options\Exception\MissingOptionException', |
32 | - 'args' => [ 'testOptionKey', 'TestTarget' ] |
|
32 | + 'args' => ['testOptionKey', 'TestTarget'] |
|
33 | 33 | ]; |
34 | 34 | |
35 | 35 | protected $inheritance = [ |
@@ -44,29 +44,29 @@ discard block |
||
44 | 44 | $target2 = new MissingOptionException('-', new \stdClass()); |
45 | 45 | |
46 | 46 | return [ |
47 | - [ 'OptionKey', [ |
|
47 | + ['OptionKey', [ |
|
48 | 48 | 'value' => 'testOptionKey', |
49 | 49 | 'ignore_setter' => true, |
50 | 50 | ]], |
51 | - [ 'target', [ |
|
51 | + ['target', [ |
|
52 | 52 | 'value' => 'TestTarget', |
53 | 53 | 'ignore_setter' => true, |
54 | 54 | ]], |
55 | - [ 'targetFQCN', [ |
|
55 | + ['targetFQCN', [ |
|
56 | 56 | 'value' => 'stdClass', |
57 | 57 | 'target' => $target2, |
58 | 58 | 'ignore_setter' => true, |
59 | 59 | ]], |
60 | - [ 'targetFQCN', [ |
|
60 | + ['targetFQCN', [ |
|
61 | 61 | 'value' => 'TestTarget', |
62 | 62 | 'ignore_setter' => true, |
63 | 63 | ]], |
64 | - [ 'previous', [ |
|
64 | + ['previous', [ |
|
65 | 65 | 'value' => $ex, |
66 | 66 | 'target' => $target, |
67 | 67 | 'ignore_setter' => true, |
68 | 68 | ]], |
69 | - [ 'message', [ |
|
69 | + ['message', [ |
|
70 | 70 | 'value' => 'Missing value for option "testOptionKey" in "TestTarget"', |
71 | 71 | 'ignore_setter' => true, |
72 | 72 | ]] |