@@ -30,7 +30,7 @@ |
||
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'; |
@@ -30,7 +30,7 @@ |
||
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'; |
@@ -20,7 +20,7 @@ discard block |
||
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 |
||
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 | } |