Skip to content

Commit 54643c4

Browse files
committed
Update coding style
1 parent 557703b commit 54643c4

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
return (new Config())
1414
->setRules([
1515
'@PER-CS3.0' => true,
16+
'fully_qualified_strict_types' => ['import_symbols' => true],
17+
'ordered_imports' => true,
1618
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
1719
])
1820
->setFinder($finder);

src/ServerFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
use League\Glide\Manipulators\Orientation;
2626
use League\Glide\Manipulators\Pixelate;
2727
use League\Glide\Manipulators\Sharpen;
28-
use League\Glide\Manipulators\ManipulatorInterface;
2928
use League\Glide\Manipulators\Size;
3029
use League\Glide\Manipulators\Watermark;
3130
use League\Glide\Responses\ResponseFactoryInterface;
@@ -262,7 +261,7 @@ public function getImageManager(): ImageManagerInterface
262261
/**
263262
* Get image manipulators.
264263
*
265-
* @return array<ManipulatorInterface> Image manipulators.
264+
* @return array<Manipulators\ManipulatorInterface> Image manipulators.
266265
*/
267266
public function getManipulators(): array
268267
{

tests/Api/EncoderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function setUp(): void
5555

5656
public function tearDown(): void
5757
{
58-
\Mockery::close();
58+
Mockery::close();
5959
}
6060

6161
public function testCreateInstance(): void
@@ -144,7 +144,7 @@ public function testGetFormatThrowsExceptionForInvalidFormat(): void
144144

145145
protected function getImageByMimeType(string $mimeType): ImageInterface
146146
{
147-
return \Mockery::mock(ImageInterface::class, function ($mock) use ($mimeType) {
147+
return Mockery::mock(ImageInterface::class, function ($mock) use ($mimeType) {
148148
$this->assertMediaType($mock, $mimeType);
149149
});
150150
}
@@ -216,6 +216,6 @@ protected function assertMediaType($mock, $mediaType): Mockery\CompositeExpectat
216216
/*
217217
* @var Mock $mock
218218
*/
219-
return $mock->shouldReceive('origin')->andReturn(\Mockery::mock('Intervention\Image\Origin', ['mediaType' => $mediaType]));
219+
return $mock->shouldReceive('origin')->andReturn(Mockery::mock('Intervention\Image\Origin', ['mediaType' => $mediaType]));
220220
}
221221
}

0 commit comments

Comments
 (0)