Passed
Push — main ( e02650...e237e3 )
by Sammy
01:24 queued 13s
created
src/RouterException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 {
7 7
     public function __construct($message, $code = 0, $previous = null)
8 8
     {
9
-        parent::__construct('KADRO_ROUTER_ERR_' . $message, $code, $previous);
9
+        parent::__construct('KADRO_ROUTER_ERR_'.$message, $code, $previous);
10 10
     }
11 11
 }
Please login to merge, or discard this patch.
src/Hopper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         header('Cache-Control: no-cache, must-revalidate');
160 160
         header('Expires: Mon, 01 Jan 1970 00:00:00 GMT');
161
-        header('Location: ' . $url);
161
+        header('Location: '.$url);
162 162
         exit();
163 163
     }
164 164
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
   // returns null if same as current URL (prevents endless redirection loop)
167 167
     public function referer(): ?string
168 168
     {
169
-        if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != $this->webHost() . $_SERVER['REQUEST_URI']) {
169
+        if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != $this->webHost().$_SERVER['REQUEST_URI']) {
170 170
             return $_SERVER['HTTP_REFERER'];
171 171
         }
172 172
 
@@ -184,12 +184,12 @@  discard block
 block discarded – undo
184 184
       //Get file type and set it as Content Type
185 185
         $finfo = finfo_open(FILEINFO_MIME_TYPE);
186 186
 
187
-        header('Content-Type: ' . finfo_file($finfo, $file_path));
187
+        header('Content-Type: '.finfo_file($finfo, $file_path));
188 188
 
189 189
         finfo_close($finfo);
190 190
 
191 191
       //Use Content-Disposition: attachment to specify the filename
192
-        header('Content-Disposition: attachment; filename=' . $file_name);
192
+        header('Content-Disposition: attachment; filename='.$file_name);
193 193
 
194 194
       //No cache
195 195
         header('Expires: 0');
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
         header('Pragma: public');
198 198
 
199 199
       //Define file size
200
-        header('Content-Length: ' . filesize($file_path));
200
+        header('Content-Length: '.filesize($file_path));
201 201
 
202 202
         ob_clean();
203 203
         flush();
@@ -218,12 +218,12 @@  discard block
 block discarded – undo
218 218
 
219 219
     public function webHost(): string
220 220
     {
221
-        return $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
221
+        return $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'];
222 222
     }
223 223
 
224 224
     public function webRoot(): string
225 225
     {
226
-        return $this->webHost() . $this->basePath();
226
+        return $this->webHost().$this->basePath();
227 227
     }
228 228
 
229 229
     // return web base
@@ -241,10 +241,10 @@  discard block
 block discarded – undo
241 241
     public function filePath($setter = null): string
242 242
     {
243 243
         if (!is_null($setter)) {
244
-            $this->file_root = realpath($setter) . '/';
244
+            $this->file_root = realpath($setter).'/';
245 245
         }
246 246
 
247
-        return $this->file_root ?? __DIR__ . '/../../';
247
+        return $this->file_root ?? __DIR__.'/../../';
248 248
     }
249 249
 
250 250
 
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     // @return return urldecoded string
37 37
     public function params($name = null)
38 38
     {
39
-        if(is_null($name)){
39
+        if (is_null($name)) {
40 40
             return $this->params;
41 41
         }
42 42
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function submitted($name = null)
55 55
     {
56
-        if(is_null($name)){
56
+        if (is_null($name)) {
57 57
             return $_POST;
58 58
         }
59 59
         
Please login to merge, or discard this patch.