@@ -84,14 +84,14 @@ discard block |
||
84 | 84 | ['foo'], |
85 | 85 | [['error' => UPLOAD_ERR_NO_FILE]], |
86 | 86 | [ |
87 | - ['type' => 'pdf','error' => UPLOAD_ERR_OK], |
|
87 | + ['type' => 'pdf', 'error' => UPLOAD_ERR_OK], |
|
88 | 88 | ] |
89 | 89 | ]; |
90 | 90 | } |
91 | 91 | |
92 | 92 | private function setupImagine() |
93 | 93 | { |
94 | - $this->imageFile = __DIR__ . '/fixtures/logo.jpg'; |
|
94 | + $this->imageFile = __DIR__.'/fixtures/logo.jpg'; |
|
95 | 95 | $image = $this->getMockBuilder(ImageInterface::class) |
96 | 96 | ->getMock() |
97 | 97 | ; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $this->image->expects($this->once()) |
129 | 129 | ->method('resize') |
130 | - ->with($this->callback(function ($size) { |
|
130 | + ->with($this->callback(function($size) { |
|
131 | 131 | $this->assertInstanceOf(BoxInterface::class, $size); |
132 | 132 | $this->assertEquals(100, $size->getWidth()); |
133 | 133 | $this->assertEquals(100, $size->getHeight()); |
@@ -200,9 +200,9 @@ discard block |
||
200 | 200 | public function getTestMinMaxOptions() |
201 | 201 | { |
202 | 202 | return [ |
203 | - [ ['max-width'=>50, 'max-height'=> 50 ], 50, 50], |
|
204 | - [ ['max-width'=>80, 'max-height'=> 90 ], 80,90], |
|
205 | - [ ['min-width'=>200, 'min-height' => 120],200,120] |
|
203 | + [['max-width'=>50, 'max-height'=> 50], 50, 50], |
|
204 | + [['max-width'=>80, 'max-height'=> 90], 80, 90], |
|
205 | + [['min-width'=>200, 'min-height' => 120], 200, 120] |
|
206 | 206 | ]; |
207 | 207 | } |
208 | 208 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | ->willReturn($documentName); |
93 | 93 | $repository->expects($this->once()) |
94 | 94 | ->method('setEntityPrototype') |
95 | - ->with($this->callback(function ($entity) use ($documentName) { |
|
95 | + ->with($this->callback(function($entity) use ($documentName) { |
|
96 | 96 | return $entity instanceof $documentName; |
97 | 97 | })); |
98 | 98 | $repository->expects($this->once()) |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | ->getMock(); |
121 | 121 | $attachableEntity->expects($this->once()) |
122 | 122 | ->method('setAttachableEntityManager') |
123 | - ->with($this->callback(function ($manager) { |
|
123 | + ->with($this->callback(function($manager) { |
|
124 | 124 | return $manager instanceof AttachableEntityManager; |
125 | 125 | })); |
126 | 126 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | ->getMock(); |
146 | 146 | $attachableEntity->expects($this->once()) |
147 | 147 | ->method('setAttachableEntityManager') |
148 | - ->with($this->callback(function ($manager) { |
|
148 | + ->with($this->callback(function($manager) { |
|
149 | 149 | return $manager instanceof AttachableEntityManager; |
150 | 150 | })); |
151 | 151 |
@@ -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); |
@@ -94,7 +94,7 @@ |
||
94 | 94 | public function testSetSubjectDoesNotTranslate() |
95 | 95 | { |
96 | 96 | $translator = $this->getMockBuilder(Translator::class)->disableOriginalConstructor() |
97 | - ->setMethods(['translate'])->getMock(); |
|
97 | + ->setMethods(['translate'])->getMock(); |
|
98 | 98 | $translator->expects($this->never())->method('translate'); |
99 | 99 | |
100 | 100 | $this->target->setTranslator($translator); |
@@ -38,11 +38,11 @@ |
||
38 | 38 | */ |
39 | 39 | private $target = TranslatorAwareMessage::class; |
40 | 40 | |
41 | - private $inheritance = [ Message::class, TranslatorAwareInterface::class ]; |
|
41 | + private $inheritance = [Message::class, TranslatorAwareInterface::class]; |
|
42 | 42 | |
43 | 43 | public function propertiesProvider() |
44 | 44 | { |
45 | - $setTranslator = function () { |
|
45 | + $setTranslator = function() { |
|
46 | 46 | $this->target->setTranslator(new Translator()); |
47 | 47 | }; |
48 | 48 |
@@ -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 | { |