From 79c92da8c14de61dccc015f04c3900aac4bd4179 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 24 Apr 2019 11:01:37 +0200 Subject: Formatting ```bash php-cs-fixer fix --allow-risky=yes --rules=@PSR2,psr4,mb_str_functions.php_unit_construct,php_unit_ordered_covers,trailing_comma_in_multiline_array --rules='{"array_syntax": {"syntax":"short"}}' [tests/|src/] ``` --- src/Http/Exceptions/HttpException.php | 2 +- src/Http/MessageTrait.php | 1 - src/Http/Psr7ServiceProvider.php | 1 - src/Http/Request.php | 3 +-- src/Http/UrlGenerator.php | 2 +- 5 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src/Http') diff --git a/src/Http/Exceptions/HttpException.php b/src/Http/Exceptions/HttpException.php index 07853d1e..6efc2fad 100644 --- a/src/Http/Exceptions/HttpException.php +++ b/src/Http/Exceptions/HttpException.php @@ -48,4 +48,4 @@ class HttpException extends RuntimeException { return $this->statusCode; } -} \ No newline at end of file +} diff --git a/src/Http/MessageTrait.php b/src/Http/MessageTrait.php index 17fbf5db..0b12ce61 100644 --- a/src/Http/MessageTrait.php +++ b/src/Http/MessageTrait.php @@ -2,7 +2,6 @@ namespace Engelsystem\Http; - use Nyholm\Psr7\Stream; use Psr\Http\Message\StreamInterface; diff --git a/src/Http/Psr7ServiceProvider.php b/src/Http/Psr7ServiceProvider.php index a9194272..d58ee6e9 100644 --- a/src/Http/Psr7ServiceProvider.php +++ b/src/Http/Psr7ServiceProvider.php @@ -13,7 +13,6 @@ use Psr\Http\Message\UploadedFileFactoryInterface; use Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory; use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface; - class Psr7ServiceProvider extends ServiceProvider { public function register() diff --git a/src/Http/Request.php b/src/Http/Request.php index 8b5abf2f..0e1acf76 100644 --- a/src/Http/Request.php +++ b/src/Http/Request.php @@ -328,9 +328,8 @@ class Request extends SymfonyRequest implements ServerRequestInterface public function getUploadedFiles() { $files = []; + /** @var SymfonyFile $file */ foreach ($this->files as $file) { - /** @var SymfonyFile $file */ - $files[] = new UploadedFile( $file->getRealPath(), $file->getSize(), diff --git a/src/Http/UrlGenerator.php b/src/Http/UrlGenerator.php index 7ced769e..d84a02b5 100644 --- a/src/Http/UrlGenerator.php +++ b/src/Http/UrlGenerator.php @@ -4,7 +4,7 @@ namespace Engelsystem\Http; /** * Provides urls when rewriting on the webserver is enabled. (default) - * + * * The urls have the form /? */ class UrlGenerator implements UrlGeneratorInterface -- cgit v1.3.1