Passed
Push — master ( 776d9d...d90896 )
by Elia
01:07
created
_config/headers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $http_origin = $_SERVER['HTTP_ORIGIN'];
4
-if ($http_origin == "http://localhost:8080" || $http_origin == "https://minska.eliareutlinger.ch"){
4
+if ($http_origin == "http://localhost:8080" || $http_origin == "https://minska.eliareutlinger.ch") {
5 5
     header("Access-Control-Allow-Origin: $http_origin");
6 6
 }
7 7
 
Please login to merge, or discard this patch.
_config/core.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         list($type, $data) = explode(" ", getallheaders()['Authorization'], 2);
21 21
         if (strcasecmp($type, "Bearer") == 0) {
22 22
 
23
-            if($_COOKIE["appToken"] === $data){
23
+            if ($_COOKIE["appToken"] === $data) {
24 24
                 return $_COOKIE["appToken"];
25 25
             } else {
26 26
                 returnForbidden("Tokens not correct");
Please login to merge, or discard this patch.
user/login/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         //$domain = "localhost";
51 51
         $expire = $token_conf['expireAt'];
52 52
         $secure = "";
53
-        if(isset($_SERVER['HTTPS'])){
53
+        if (isset($_SERVER['HTTPS'])) {
54 54
             $secure = "Secure";
55 55
         }
56 56
 
Please login to merge, or discard this patch.
user/update/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 //$domain = "localhost";
63 63
                 $expire = $token_conf['expireAt'];
64 64
                 $secure = "";
65
-                if(isset($_SERVER['HTTPS'])){
65
+                if (isset($_SERVER['HTTPS'])) {
66 66
                     $secure = "Secure";
67 67
                 }
68 68
 
Please login to merge, or discard this patch.