Passed
Push — main ( 7d5b4b...15f1b6 )
by Sammy
18:04 queued 11:18
created
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.
Hopper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     {
161 161
         header('Cache-Control: no-cache, must-revalidate');
162 162
         header('Expires: Mon, 01 Jan 1970 00:00:00 GMT');
163
-        header('Location: ' . $url);
163
+        header('Location: '.$url);
164 164
         exit();
165 165
     }
166 166
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
   // returns null if same as current URL (prevents endless redirection loop)
169 169
     public function referer()
170 170
     {
171
-        if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != $this->webHost() . $_SERVER['REQUEST_URI']) {
171
+        if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != $this->webHost().$_SERVER['REQUEST_URI']) {
172 172
             return $_SERVER['HTTP_REFERER'];
173 173
         }
174 174
 
@@ -186,12 +186,12 @@  discard block
 block discarded – undo
186 186
       //Get file type and set it as Content Type
187 187
         $finfo = finfo_open(FILEINFO_MIME_TYPE);
188 188
 
189
-        header('Content-Type: ' . finfo_file($finfo, $file_path));
189
+        header('Content-Type: '.finfo_file($finfo, $file_path));
190 190
 
191 191
         finfo_close($finfo);
192 192
 
193 193
       //Use Content-Disposition: attachment to specify the filename
194
-        header('Content-Disposition: attachment; filename=' . $file_name);
194
+        header('Content-Disposition: attachment; filename='.$file_name);
195 195
 
196 196
       //No cache
197 197
         header('Expires: 0');
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         header('Pragma: public');
200 200
 
201 201
       //Define file size
202
-        header('Content-Length: ' . filesize($file_path));
202
+        header('Content-Length: '.filesize($file_path));
203 203
 
204 204
         ob_clean();
205 205
         flush();
@@ -220,12 +220,12 @@  discard block
 block discarded – undo
220 220
 
221 221
     public function webHost(): string
222 222
     {
223
-        return $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
223
+        return $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'];
224 224
     }
225 225
 
226 226
     public function webRoot(): string
227 227
     {
228
-        return $this->webHost() . $this->basePath();
228
+        return $this->webHost().$this->basePath();
229 229
     }
230 230
 
231 231
     // return web base
@@ -243,10 +243,10 @@  discard block
 block discarded – undo
243 243
     public function filePath($setter = null): string
244 244
     {
245 245
         if (!is_null($setter)) {
246
-            $this->file_root = realpath($setter) . '/';
246
+            $this->file_root = realpath($setter).'/';
247 247
         }
248 248
 
249
-        return $this->file_root ?? __DIR__ . '/../../';
249
+        return $this->file_root ?? __DIR__.'/../../';
250 250
     }
251 251
 
252 252
 
Please login to merge, or discard this patch.
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.