@@ -86,7 +86,7 @@ |
||
86 | 86 | { |
87 | 87 | $tempDir = sys_get_temp_dir().'/yawik/application-tests'; |
88 | 88 | $tempFile = $tempDir.'/.env'; |
89 | - $tempFileDist = $tempDir.'/.env.dist'; |
|
89 | + $tempFileDist = $tempDir.'/.env.dist'; |
|
90 | 90 | |
91 | 91 | if (!is_dir($tempDir)) { |
92 | 92 | mkdir($tempDir, 0777, true); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | use TestInheritanceTrait, TestSetterGetterTrait; |
28 | 28 | |
29 | - protected $target = [ '\Core\Entity\Exception\ImmutableEntityException', [ 'entityClassName' ] ]; |
|
29 | + protected $target = ['\Core\Entity\Exception\ImmutableEntityException', ['entityClassName']]; |
|
30 | 30 | |
31 | 31 | protected $inheritance = [ |
32 | 32 | '\RuntimeException', |
@@ -37,14 +37,14 @@ discard block |
||
37 | 37 | public function propertiesProvider() |
38 | 38 | { |
39 | 39 | return [ |
40 | - [ 'message', [ |
|
40 | + ['message', [ |
|
41 | 41 | 'value' => 'entityClassName is an immutable entity.', |
42 | 42 | 'ignore_setter' => true, |
43 | 43 | ]], |
44 | - [ 'message', [ |
|
44 | + ['message', [ |
|
45 | 45 | 'value' => 'stdClass is an immutable entity.', |
46 | 46 | 'ignore_setter' => true, |
47 | - 'target' => ['\Core\Entity\Exception\ImmutableEntityException', [ new \stdClass() ] ] |
|
47 | + 'target' => ['\Core\Entity\Exception\ImmutableEntityException', [new \stdClass()]] |
|
48 | 48 | ]] |
49 | 49 | ]; |
50 | 50 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | ->setCity('XXXX') |
45 | 45 | ->setRegion('YYYY') |
46 | 46 | ->setCountry('ZZZZ') |
47 | - ->setCoordinates(new Point([10,20])); |
|
47 | + ->setCoordinates(new Point([10, 20])); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | |
130 | 130 | public function testConvertToAndFromJson() |
131 | 131 | { |
132 | - if (false === (@include_once __DIR__ . '/../../../../Geo/src/Geo/Entity/Geometry/Point.php')) { |
|
132 | + if (false === (@include_once __DIR__.'/../../../../Geo/src/Geo/Entity/Geometry/Point.php')) { |
|
133 | 133 | $this->assertTrue(true); |
134 | 134 | return; |
135 | 135 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | '@testConstruct' => false, |
42 | 42 | ]; |
43 | 43 | |
44 | - private $inheritance = [ EntityHydrator::class ]; |
|
44 | + private $inheritance = [EntityHydrator::class]; |
|
45 | 45 | |
46 | 46 | private $properties = [ |
47 | 47 | ['propertyMap', ['default' => [], 'value' => ['property' => 'fieldname']]] |
@@ -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(); |
@@ -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 |