Skip to content

Commit 6954b4e

Browse files
CS fixes
1 parent c9cf833 commit 6954b4e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Factory/PsrHttpFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(
5050
$psr17Factory = match (true) {
5151
class_exists(DiscoveryPsr17Factory::class) => new DiscoveryPsr17Factory(),
5252
class_exists(NyholmPsr17Factory::class) => new NyholmPsr17Factory(),
53-
default => throw new \LogicException(sprintf('You cannot use the "%s" as no PSR-17 factories have been provided. Try running "composer require php-http/discovery psr/http-factory-implementation:*".', self::class)),
53+
default => throw new \LogicException(\sprintf('You cannot use the "%s" as no PSR-17 factories have been provided. Try running "composer require php-http/discovery psr/http-factory-implementation:*".', self::class)),
5454
};
5555

5656
$serverRequestFactory ??= $psr17Factory;

Factory/UploadedFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function move(string $directory, ?string $name = null): File
5959
try {
6060
$this->psrUploadedFile->moveTo((string) $target);
6161
} catch (\RuntimeException $e) {
62-
throw new FileException(sprintf('Could not move the file "%s" to "%s" (%s).', $this->getPathname(), $target, $e->getMessage()), 0, $e);
62+
throw new FileException(\sprintf('Could not move the file "%s" to "%s" (%s).', $this->getPathname(), $target, $e->getMessage()), 0, $e);
6363
}
6464

6565
@chmod($target, 0666 & ~umask());

Tests/Factory/PsrHttpFactoryTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,14 @@ public function testUploadErrNoFile()
219219
[],
220220
[],
221221
[
222-
'f1' => $file,
223-
'f2' => ['name' => null, 'type' => null, 'tmp_name' => null, 'error' => \UPLOAD_ERR_NO_FILE, 'size' => 0],
224-
],
222+
'f1' => $file,
223+
'f2' => ['name' => null, 'type' => null, 'tmp_name' => null, 'error' => \UPLOAD_ERR_NO_FILE, 'size' => 0],
224+
],
225225
[
226-
'REQUEST_METHOD' => 'POST',
227-
'HTTP_HOST' => 'dunglas.fr',
228-
'HTTP_X_SYMFONY' => '2.8',
229-
],
226+
'REQUEST_METHOD' => 'POST',
227+
'HTTP_HOST' => 'dunglas.fr',
228+
'HTTP_X_SYMFONY' => '2.8',
229+
],
230230
'Content'
231231
);
232232

0 commit comments

Comments
 (0)