Completed
Push — master ( b7f6a5...e297c9 )
by Dawid
05:58
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/Server.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
             $settings = new HttpConfiguration();
49 49
         }
50 50
 
51
-        $this->settings= $settings;
51
+        $this->settings = $settings;
52 52
     }
53 53
 
54 54
     /**
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.