[TASK] CGL violations FunctionCallArgumentSpacing in /typo3/sysext/s*/
[Packages/TYPO3.CMS.git] / typo3 / sysext / sv / class.tx_sv_auth.php
index f8c6233..6768149 100644 (file)
@@ -177,9 +177,7 @@ class tx_sv_auth extends tx_sv_authbase     {
                        if(!$OK)     {
                                        // Failed login attempt (wrong password) - write that to the log!
                                if ($this->writeAttemptLog) {
-                                       $this->writelog(255,3,3,1,
-                                               "Login-attempt from %s (%s), username '%s', password not accepted!",
-                                               Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname']));
+                                       $this->writelog(255, 3, 3, 1, "Login-attempt from %s (%s), username '%s', password not accepted!", Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname']));
                                        t3lib_div::sysLog(
                                                sprintf( "Login-attempt from %s (%s), username '%s', password not accepted!", $this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname'] ),
                                                'Core',
@@ -193,9 +191,7 @@ class tx_sv_auth extends tx_sv_authbase     {
                        if ($OK && $user['lockToDomain'] && $user['lockToDomain']!=$this->authInfo['HTTP_HOST']) {
                                        // Lock domain didn't match, so error:
                                if ($this->writeAttemptLog) {
-                                       $this->writelog(255,3,3,1,
-                                               "Login-attempt from %s (%s), username '%s', locked domain '%s' did not match '%s'!",
-                                               Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $user[$this->db_user['username_column']], $user['lockToDomain'], $this->authInfo['HTTP_HOST']));
+                                       $this->writelog(255, 3, 3, 1, "Login-attempt from %s (%s), username '%s', locked domain '%s' did not match '%s'!", Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $user[$this->db_user['username_column']], $user['lockToDomain'], $this->authInfo['HTTP_HOST']));
                                        t3lib_div::sysLog(
                                                sprintf( "Login-attempt from %s (%s), username '%s', locked domain '%s' did not match '%s'!", $this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $user[$this->db_user['username_column']], $user['lockToDomain'], $this->authInfo['HTTP_HOST'] ),
                                                'Core',
@@ -227,20 +223,20 @@ class tx_sv_auth extends tx_sv_authbase   {
                        if (is_array($user) && $user[$this->db_user['usergroup_column']]) {
                                $groupList = $user[$this->db_user['usergroup_column']];
                                $groups = array();
-                               $this->getSubGroups($groupList,'',$groups);
+                               $this->getSubGroups($groupList, '', $groups);
                        }
 
                                // ADD group-numbers if the IPmask matches.
                        if (is_array($TYPO3_CONF_VARS['FE']['IPmaskMountGroups'])) {
                                foreach($TYPO3_CONF_VARS['FE']['IPmaskMountGroups'] as $IPel) {
-                                       if ($this->authInfo['REMOTE_ADDR'] && $IPel[0] && t3lib_div::cmpIP($this->authInfo['REMOTE_ADDR'],$IPel[0]))    {$groups[]=intval($IPel[1]);}
+                                       if ($this->authInfo['REMOTE_ADDR'] && $IPel[0] && t3lib_div::cmpIP($this->authInfo['REMOTE_ADDR'], $IPel[0]))   {$groups[]=intval($IPel[1]);}
                                }
                        }
 
                        $groups = array_unique($groups);
 
                        if (count($groups)) {
-                               $list = implode(',',$groups);
+                               $list = implode(',', $groups);
 
                                if ($this->writeDevLog)         t3lib_div::devLog('Get usergroups with id: '.$list, 'tx_sv_auth');
 
@@ -294,11 +290,11 @@ class tx_sv_auth extends tx_sv_authbase   {
 
                                // Get row:
                        $row=$groupRows[$uid];
-                       if (is_array($row) && !t3lib_div::inList($idList,$uid)) {       // Must be an array and $uid should not be in the idList, because then it is somewhere previously in the grouplist
+                       if (is_array($row) && !t3lib_div::inList($idList, $uid))        {       // Must be an array and $uid should not be in the idList, because then it is somewhere previously in the grouplist
 
                                        // Include sub groups
                                if (trim($row['subgroup'])) {
-                                       $theList = implode(',',t3lib_div::intExplode(',',$row['subgroup']));    // Make integer list
+                                       $theList = implode(',',t3lib_div::intExplode(',', $row['subgroup']));   // Make integer list
                                        $this->getSubGroups($theList, $idList.','.$uid, $groups);               // Call recursively, pass along list of already processed groups so they are not recursed again.
                                }
                        }