Completed
Push — master ( 62fafb...e2e747 )
by Mathieu
25s queued 10s
created
Integration/LdapAuthIntegration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
     public function authCallback($settings = [], $parameters = [])
90 90
     {
91 91
         $hostname = $settings['hostname'];
92
-        $port = isset($settings['port']) ? (int)$settings['port'] : 389;
93
-        $ssl = isset($settings['ssl']) ? (bool)$settings['ssl'] : false;
94
-        $startTls = isset($settings['starttls']) ? (bool)$settings['starttls'] : false;
92
+        $port = isset($settings['port']) ? (int) $settings['port'] : 389;
93
+        $ssl = isset($settings['ssl']) ? (bool) $settings['ssl'] : false;
94
+        $startTls = isset($settings['starttls']) ? (bool) $settings['starttls'] : false;
95 95
         $ldapVersion = isset($settings['version']) && !empty($settings['version']) ?
96
-            (int)$settings['version'] : 3;
96
+            (int) $settings['version'] : 3;
97 97
         $base_dn = $settings['base_dn'];
98 98
         $userKey = $settings['user_key'];
99 99
         $query = $settings['user_query'];
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                 'yesno_button_group',
299 299
                 [
300 300
                     'label' => 'mautic.integration.sso.ldapauth.auth_fallback',
301
-                    'data' => (isset($data['auth_fallback'])) ? (bool)$data['auth_fallback'] : true,
301
+                    'data' => (isset($data['auth_fallback'])) ? (bool) $data['auth_fallback'] : true,
302 302
                     'attr' => [
303 303
                         'tooltip' => 'mautic.integration.sso.ldapauth.auth_fallback.tooltip',
304 304
                     ],
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
                 'yesno_button_group',
311 311
                 [
312 312
                     'label' => 'mautic.integration.sso.auto_create_user',
313
-                    'data' => (isset($data['auto_create_user'])) ? (bool)$data['auto_create_user'] : false,
313
+                    'data' => (isset($data['auto_create_user'])) ? (bool) $data['auto_create_user'] : false,
314 314
                     'attr' => [
315 315
                         'tooltip' => 'mautic.integration.sso.auto_create_user.tooltip',
316 316
                     ],
Please login to merge, or discard this patch.