Passed
Push — 1.10.x ( e37d9e...d684ae )
by Angel Fernando Quiroz
226:38 queued 187:01
created
plugin/azure_active_directory/src/AzureActiveDirectory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /**
37 37
      * Instance the plugin
38 38
      * @staticvar null $result
39
-     * @return Tour
39
+     * @return AzureActiveDirectory
40 40
      */
41 41
     static function create()
42 42
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
         $settings = [];
64 64
 
65 65
         foreach ($settingsInfo as $settingInfo) {
66
-            $variable = str_replace($this->get_name() . '_', '', $settingInfo['variable']);
66
+            $variable = str_replace($this->get_name().'_', '', $settingInfo['variable']);
67 67
 
68 68
             $settings[$variable] = $settingInfo['selected_value'];
69 69
         }
70 70
 
71 71
         $url = "https://login.microsoftonline.com/{$settings[self::SETTING_TENANT]}/oauth2/v2.0/";
72
-        $callback = api_get_path(WEB_PLUGIN_PATH) . $this->get_name() . '/src/callback.php';
72
+        $callback = api_get_path(WEB_PLUGIN_PATH).$this->get_name().'/src/callback.php';
73 73
 
74 74
         if ($urlType === self::URL_TYPE_SIGNOUT) {
75 75
             $action = 'logout';
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
             ];
98 98
         }
99 99
 
100
-        return $url . $action . '?' . http_build_query($urlParams);
100
+        return $url.$action.'?'.http_build_query($urlParams);
101 101
     }
102 102
 }
103 103
\ No newline at end of file
Please login to merge, or discard this patch.
plugin/azure_active_directory/src/callback.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-require dirname(__FILE__) . '/../../../main/inc/global.inc.php';
3
-require_once dirname(__FILE__) . '/../../../main/auth/external_login/functions.inc.php';
2
+require dirname(__FILE__).'/../../../main/inc/global.inc.php';
3
+require_once dirname(__FILE__).'/../../../main/auth/external_login/functions.inc.php';
4 4
 
5 5
 if (isset($_POST['error']) || empty($_REQUEST)) {
6
-    header('Location: ' . api_get_path(WEB_PATH) . 'index.php?logout=logout');
6
+    header('Location: '.api_get_path(WEB_PATH).'index.php?logout=logout');
7 7
     exit;
8 8
 }
9 9
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     'username' => $jwtPayload->emails[0],
26 26
     'language' => 'en',
27 27
     'password' => 'azure_active_directory',
28
-    'auth_source' => 'azure_active_directory ' . $jwtPayload->idp,
28
+    'auth_source' => 'azure_active_directory '.$jwtPayload->idp,
29 29
     'extra' => array()
30 30
 );
31 31
 
@@ -51,5 +51,5 @@  discard block
 block discarded – undo
51 51
     $_SESSION['_user'] = $_user;
52 52
 }
53 53
 
54
-header('Location: ' . api_get_path(WEB_PATH));
54
+header('Location: '.api_get_path(WEB_PATH));
55 55
 exit;
Please login to merge, or discard this patch.