Passed
Branch AuthCoreClass (b50259)
by Stone
02:07
created
Category
Core/Modules/Csrf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                 $hash = bin2hex($rand);
46 46
                 $this->session->set('csrf_token', $hash);
47 47
             } catch (\Exception $e) {
48
-                echo 'Random generator not present on server: ' . $e->getMessage();
48
+                echo 'Random generator not present on server: '.$e->getMessage();
49 49
             }
50 50
         }
51 51
     }
Please login to merge, or discard this patch.
Core/Modules/AlertBox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                 throw new \Exception("Invalid toastr alert type");
33 33
             }
34 34
         } catch (\Exception $e) {
35
-            echo "<pre>alerter error :" . $e.'</pre>'; //See how to handle better, perhaps with a custom error
35
+            echo "<pre>alerter error :".$e.'</pre>'; //See how to handle better, perhaps with a custom error
36 36
             die();
37 37
         }
38 38
 
Please login to merge, or discard this patch.
Core/Dependency/Response.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@
 block discarded – undo
23 23
             default:
24 24
                 $headerType = 'text/html';
25 25
         }
26
-        $contentType = 'Content-Type: ' . $headerType;
26
+        $contentType = 'Content-Type: '.$headerType;
27 27
 
28 28
         header($contentType);
29 29
     }
30 30
 
31 31
     public function redirect(string $url = ''): void
32 32
     {
33
-        header("location: /" . $url);
33
+        header("location: /".$url);
34 34
         die(); //after redirect do not execute anything else from the function
35 35
     }
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
Core/Dependency/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     {
60 60
         $host = $_SERVER['HTTP_HOST'];
61 61
         $https = !empty($_SERVER['HTTPS']) ? 'https' : 'http';
62
-        return $https . '://' . $host . '/';
62
+        return $https.'://'.$host.'/';
63 63
     }
64 64
 
65 65
     /**
Please login to merge, or discard this patch.