Passed
Push — master ( 9fbf46...aef765 )
by Xavier
02:16
created
src/App/Controller/AppController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         if (isset($_COOKIE['country']) && $this->checkCountry($_COOKIE['country'])) { // First if the client has a preference
32 32
             $country_id = $_COOKIE['country'];
33
-        }else if ($this->checkCountry($clientLanguage)) { // Not a preference? Let's check its browser!
33
+        } else if ($this->checkCountry($clientLanguage)) { // Not a preference? Let's check its browser!
34 34
             $country_id = $clientLanguage;
35 35
         } else {  // Nevermind let's move to the french language
36 36
             $country_id = 'fr';
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         if (isset($_COOKIE['country']) && $this->checkCountry($_COOKIE['country'])) { // First if the client has a preference
32 32
             $country_id = $_COOKIE['country'];
33
-        }else if ($this->checkCountry($clientLanguage)) { // Not a preference? Let's check its browser!
33
+        } else if ($this->checkCountry($clientLanguage)) { // Not a preference? Let's check its browser!
34 34
             $country_id = $clientLanguage;
35 35
         } else {  // Nevermind let's move to the french language
36 36
             $country_id = 'fr';
Please login to merge, or discard this patch.
src/Security/Controller/AuthController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function login(Request $request, Response $response)
22 22
     {
23
-        phpCAS::client(CAS_VERSION_2_0,'auth.univ-lorraine.fr',443,'');
23
+        phpCAS::client(CAS_VERSION_2_0, 'auth.univ-lorraine.fr', 443, '');
24 24
         phpCAS::setNoCasServerValidation();
25 25
         phpCAS::forceAuthentication();
26 26
         phpCAS::getUser();
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function logout(Request $request, Response $response)
33 33
     {
34
-        phpCAS::client(CAS_VERSION_2_0,'auth.univ-lorraine.fr',443,'');
34
+        phpCAS::client(CAS_VERSION_2_0, 'auth.univ-lorraine.fr', 443, '');
35 35
         phpCAS::logout();
36 36
     }
37 37
 }
Please login to merge, or discard this patch.