@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | $controller = $this->controller; |
66 | 66 | $installer = $this->getMockBuilder(AssetsInstaller::class) |
67 | - ->setMethods(['install','setOutput','setInput']) |
|
67 | + ->setMethods(['install', 'setOutput', 'setInput']) |
|
68 | 68 | ->getMock() |
69 | 69 | ; |
70 | 70 | $installer->expects($this->once()) |
@@ -86,9 +86,9 @@ discard block |
||
86 | 86 | public function getTestInstallMethod() |
87 | 87 | { |
88 | 88 | return [ |
89 | - ['--copy', AssetsInstaller::METHOD_COPY], |
|
90 | - ['--relative', AssetsInstaller::METHOD_RELATIVE_SYMLINK], |
|
91 | - ['--symlink', AssetsInstaller::METHOD_ABSOLUTE_SYMLINK], |
|
89 | + ['--copy', AssetsInstaller::METHOD_COPY], |
|
90 | + ['--relative', AssetsInstaller::METHOD_RELATIVE_SYMLINK], |
|
91 | + ['--symlink', AssetsInstaller::METHOD_ABSOLUTE_SYMLINK], |
|
92 | 92 | ]; |
93 | 93 | } |
94 | 94 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | ) |
188 | 188 | ); |
189 | 189 | } |
190 | - $this->assertTrue((bool)preg_match($pattern, $responseHeader->getFieldValue())); |
|
190 | + $this->assertTrue((bool) preg_match($pattern, $responseHeader->getFieldValue())); |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
@@ -213,6 +213,6 @@ discard block |
||
213 | 213 | ) |
214 | 214 | ); |
215 | 215 | } |
216 | - $this->assertFalse((bool)preg_match($pattern, $responseHeader->getFieldValue())); |
|
216 | + $this->assertFalse((bool) preg_match($pattern, $responseHeader->getFieldValue())); |
|
217 | 217 | } |
218 | 218 | } |
@@ -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 | } |
@@ -26,26 +26,26 @@ |
||
26 | 26 | public function provideFindMethodsTestData() |
27 | 27 | { |
28 | 28 | return [ |
29 | - [ 'findBy', [], 'findBy', ['isDraft' => false] ], |
|
30 | - [ 'findBy', [ 'isDraft' => null ], 'findBy', [] ], |
|
31 | - [ 'findBy', [ 'isDraft' => true ], 'findBy', [ 'isDraft' => true ] ], |
|
32 | - [ 'findBy', [ 'isDraft' => 'something'], 'findBy', ['isDraft' => 'something'] ], |
|
29 | + ['findBy', [], 'findBy', ['isDraft' => false]], |
|
30 | + ['findBy', ['isDraft' => null], 'findBy', []], |
|
31 | + ['findBy', ['isDraft' => true], 'findBy', ['isDraft' => true]], |
|
32 | + ['findBy', ['isDraft' => 'something'], 'findBy', ['isDraft' => 'something']], |
|
33 | 33 | |
34 | - [ 'findDraftsBy', [], 'findBy', ['isDraft' => true]], |
|
35 | - [ 'findDraftsBy', ['isDraft' => null], 'findBy', ['isDraft' => true]], |
|
36 | - [ 'findDraftsBy', ['isDraft' => 'something'], 'findBy', ['isDraft' => true]], |
|
34 | + ['findDraftsBy', [], 'findBy', ['isDraft' => true]], |
|
35 | + ['findDraftsBy', ['isDraft' => null], 'findBy', ['isDraft' => true]], |
|
36 | + ['findDraftsBy', ['isDraft' => 'something'], 'findBy', ['isDraft' => true]], |
|
37 | 37 | |
38 | - [ 'findOneBy', [], 'findOneBy', ['isDraft' => false] ], |
|
39 | - [ 'findOneBy', [ 'isDraft' => null ], 'findOneBy', [] ], |
|
40 | - [ 'findOneBy', [ 'isDraft' => true ], 'findOneBy', [ 'isDraft' => true ] ], |
|
41 | - [ 'findOneBy', [ 'isDraft' => 'something'], 'findOneBy', ['isDraft' => 'something'] ], |
|
38 | + ['findOneBy', [], 'findOneBy', ['isDraft' => false]], |
|
39 | + ['findOneBy', ['isDraft' => null], 'findOneBy', []], |
|
40 | + ['findOneBy', ['isDraft' => true], 'findOneBy', ['isDraft' => true]], |
|
41 | + ['findOneBy', ['isDraft' => 'something'], 'findOneBy', ['isDraft' => 'something']], |
|
42 | 42 | |
43 | - [ 'findOneDraftBy', [], 'findOneBy', ['isDraft' => true]], |
|
44 | - [ 'findOneDraftBy', ['isDraft' => null], 'findOneBy', ['isDraft' => true]], |
|
45 | - [ 'findOneDraftBy', ['isDraft' => 'something'], 'findOneBy', ['isDraft' => true]], |
|
43 | + ['findOneDraftBy', [], 'findOneBy', ['isDraft' => true]], |
|
44 | + ['findOneDraftBy', ['isDraft' => null], 'findOneBy', ['isDraft' => true]], |
|
45 | + ['findOneDraftBy', ['isDraft' => 'something'], 'findOneBy', ['isDraft' => true]], |
|
46 | 46 | |
47 | - [ 'createDraft', [], 'create', ['isDraft' => true]], |
|
48 | - [ 'createDraft', ['isDraft' => false], 'create', ['isDraft' => true]], |
|
47 | + ['createDraft', [], 'create', ['isDraft' => true]], |
|
48 | + ['createDraft', ['isDraft' => false], 'create', ['isDraft' => true]], |
|
49 | 49 | ]; |
50 | 50 | } |
51 | 51 |
@@ -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 |
@@ -71,21 +71,21 @@ discard block |
||
71 | 71 | |
72 | 72 | return [ |
73 | 73 | [ |
74 | - 'Hydrator',[ |
|
74 | + 'Hydrator', [ |
|
75 | 75 | '@default'=>EntityHydrator::class, |
76 | 76 | 'value'=>$hydrator, |
77 | - 'expect_property' => ['hydrator',$hydrator] |
|
77 | + 'expect_property' => ['hydrator', $hydrator] |
|
78 | 78 | ], |
79 | 79 | ], |
80 | 80 | [ |
81 | - 'SourceHydrator',[ |
|
81 | + 'SourceHydrator', [ |
|
82 | 82 | '@default' => EntityHydrator::class, |
83 | 83 | 'value' => $hydrator, |
84 | - 'expect_property' => ['sourceHydrator',$hydrator] |
|
84 | + 'expect_property' => ['sourceHydrator', $hydrator] |
|
85 | 85 | ] |
86 | 86 | ], |
87 | 87 | [ |
88 | - 'SnapshotAttributes',[ |
|
88 | + 'SnapshotAttributes', [ |
|
89 | 89 | 'default' => [], |
90 | 90 | 'value' => ['some'=>'attributes'] |
91 | 91 | ] |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | ->willReturn($em) |
105 | 105 | ; |
106 | 106 | |
107 | - $cb = function (EventArgs $args) { |
|
107 | + $cb = function(EventArgs $args) { |
|
108 | 108 | $this->assertInstanceOf(Job::class, $args->get('entity')); |
109 | 109 | return true; |
110 | 110 | }; |
@@ -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 |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | ->willReturn(true); |
212 | 212 | $view |
213 | 213 | ->method('render') |
214 | - ->with($this->callback(function (ViewModel $subject) { |
|
214 | + ->with($this->callback(function(ViewModel $subject) { |
|
215 | 215 | return $subject->getTemplate() === 'template.en'; |
216 | 216 | })); |
217 | 217 | $target->getBodyText(); |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | ->willReturn(false); |
231 | 231 | $view |
232 | 232 | ->method('render') |
233 | - ->with($this->callback(function (ViewModel $subject) { |
|
233 | + ->with($this->callback(function(ViewModel $subject) { |
|
234 | 234 | return $subject->getTemplate() === 'template'; |
235 | 235 | })); |
236 | 236 | $target->getBodyText(); |