diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-04-24 11:01:37 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-04-25 18:17:19 +0200 |
commit | 79c92da8c14de61dccc015f04c3900aac4bd4179 (patch) | |
tree | 7b4e0f51d2bd2508905fdc697b31a73810a1b5d5 /src/Http | |
parent | 7c3a0c70e8d23f47287ead148c6b8682216352c6 (diff) |
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/]
```
Diffstat (limited to 'src/Http')
-rw-r--r-- | src/Http/Exceptions/HttpException.php | 2 | ||||
-rw-r--r-- | src/Http/MessageTrait.php | 1 | ||||
-rw-r--r-- | src/Http/Psr7ServiceProvider.php | 1 | ||||
-rw-r--r-- | src/Http/Request.php | 3 | ||||
-rw-r--r-- | src/Http/UrlGenerator.php | 2 |
5 files changed, 3 insertions, 6 deletions
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 <app url>/<path>?<parameters> */ class UrlGenerator implements UrlGeneratorInterface |