Completed
Push — master ( 35c1c3...0dd52b )
by Dawid
10s
created
src/Http/Middleware/ErrorMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
     private function setErrorHandler(): void
67 67
     {
68
-        set_error_handler(function (int $number, string $message, string $file, int $line) {
68
+        set_error_handler(function(int $number, string $message, string $file, int $line) {
69 69
 
70 70
             if (!(error_reporting() & $number)) {
71 71
                 return;
Please login to merge, or discard this patch.
src/Http/ServerRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      */
160 160
     public function getAttribute($attribute, $default = null)
161 161
     {
162
-        if (! isset($this->attributes[$attribute])) {
162
+        if (!isset($this->attributes[$attribute])) {
163 163
             return $default;
164 164
         }
165 165
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                 continue;
220 220
             }
221 221
 
222
-            if (! $file instanceof UploadedFileInterface) {
222
+            if (!$file instanceof UploadedFileInterface) {
223 223
                 throw new \InvalidArgumentException('Invalid leaf in uploaded files structure');
224 224
             }
225 225
         }
Please login to merge, or discard this patch.
src/Http/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@
 block discarded – undo
255 255
      */
256 256
     public static function fromJson($data, int $status = self::HTTP_OK, array $headers = [])
257 257
     {
258
-        if (! $data instanceof \JsonSerializable && ! is_array($data)) {
258
+        if (!$data instanceof \JsonSerializable && !is_array($data)) {
259 259
             throw new InvalidArgumentException('Invalid $data provided, method expects array or instance of \JsonSerializable.');
260 260
         }
261 261
 
Please login to merge, or discard this patch.
src/Application/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     {
49 49
         $result = $this->config;
50 50
         $key = explode('.', $key);
51
-        foreach($key as $part) {
51
+        foreach ($key as $part) {
52 52
             if (!is_array($result) || !isset($result[$part])) {
53 53
                 return null;
54 54
             }
Please login to merge, or discard this patch.
src/Http/Router/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Igni\Http\Router;
4 4
 
5
-use Igni\Http\Exception\GenericHttpException;;
5
+use Igni\Http\Exception\GenericHttpException; ;
6 6
 use Igni\Http\Route;
7 7
 use Igni\Http\Router as RouterInterface;
8 8
 use Symfony\Component\Routing\Route as SymfonyRoute;
Please login to merge, or discard this patch.