From f33432a69430330a1ca7dbbbb0b3ccb797dd76b9 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Fri, 7 Jan 2022 12:47:54 -0500 Subject: [PATCH] replace tabs with spaces for consistent indentation regardless of tabstop size --- lib/Auth/Source/FSFDrupalAuth.php | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/Auth/Source/FSFDrupalAuth.php b/lib/Auth/Source/FSFDrupalAuth.php index dc3373e..0e4eff6 100644 --- a/lib/Auth/Source/FSFDrupalAuth.php +++ b/lib/Auth/Source/FSFDrupalAuth.php @@ -233,9 +233,9 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase */ private function add_more_attributes(&$attributes, $username) { - // - // query on membership - // + // + // query on membership + // $membership_data = $this->query_db('query_membership', $username); @@ -245,7 +245,7 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase ': No rows in result set. Probably no membership.'); } - $attributes['is_member'] = ['false']; + $attributes['is_member'] = ['false']; $attributes['was_member'] = ['false']; foreach ($membership_data as $row) { @@ -255,18 +255,18 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase } $value = (string) $value; - if ($value === '1' || $value === '2' || $value === '3') { + if ($value === '1' || $value === '2' || $value === '3') { $attributes['is_member'] = ['true']; $attributes['was_member'] = ['true']; - } elseif ($value === '4') { + } elseif ($value === '4') { $attributes['was_member'] = ['true']; - } + } } } - // - // query on staff - // + // + // query on staff + // $staff_data = $this->query_db('query_staff', $username); @@ -276,7 +276,7 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase ': No rows in result set. Probably not FSF staff.'); } - $attributes['is_fsf_staff'] = ['false']; + $attributes['is_fsf_staff'] = ['false']; foreach ($staff_data as $row) { foreach ($row as $key => $value) { @@ -333,11 +333,11 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase */ $attributes = []; - // use the entered user name so we don't forcibly change it to all - // lower case. this is to preserve the behavior of the old cas server, - // and to remain compatible with our MW and Discourse sites that are - // case sensitive. - $attributes['name'][] = $username; + // use the entered user name so we don't forcibly change it to all + // lower case. this is to preserve the behavior of the old cas server, + // and to remain compatible with our MW and Discourse sites that are + // case sensitive. + $attributes['name'][] = $username; foreach ($user_data as $row) { foreach ($row as $key => $value) { -- 2.25.1