diff options
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 |