@@ -36,8 +36,8 @@  | 
                                                    ||
| 36 | 36 | |
| 37 | 37 | public function process(ArrayAccess $credentials): void  | 
                                                        
| 38 | 38 |      { | 
                                                        
| 39 | - $name = $this->server->offsetExists(static::INPUT_NAME) ? strval($this->server->offsetGet(static::INPUT_NAME)) : '' ;  | 
                                                        |
| 40 | - $pass = $this->server->offsetExists(static::INPUT_PASS) ? strval($this->server->offsetGet(static::INPUT_PASS)) : '' ;  | 
                                                        |
| 39 | + $name = $this->server->offsetExists(static::INPUT_NAME) ? strval($this->server->offsetGet(static::INPUT_NAME)) : '';  | 
                                                        |
| 40 | + $pass = $this->server->offsetExists(static::INPUT_PASS) ? strval($this->server->offsetGet(static::INPUT_PASS)) : '';  | 
                                                        |
| 41 | 41 | |
| 42 | 42 |          if (!empty($name) && !empty($pass)) { | 
                                                        
| 43 | 43 | /** @scrutinizer ignore-call */  | 
                                                        
@@ -58,10 +58,10 @@  | 
                                                    ||
| 58 | 58 | /** @scrutinizer ignore-call */  | 
                                                        
| 59 | 59 | $this->loggedUser = $this->authenticator->getDataOnly($this->nameFromSess());  | 
                                                        
| 60 | 60 |          } else { | 
                                                        
| 61 | - $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : '' ;  | 
                                                        |
| 62 | - $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2)) : $name ;  | 
                                                        |
| 63 | - $pass = $credentials->offsetExists(static::INPUT_PASS) ? strval($credentials->offsetGet(static::INPUT_PASS)) : '' ;  | 
                                                        |
| 64 | - $pass = $credentials->offsetExists(static::INPUT_PASS2) ? strval($credentials->offsetGet(static::INPUT_PASS2)) : $pass ;  | 
                                                        |
| 61 | + $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : '';  | 
                                                        |
| 62 | + $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2)) : $name;  | 
                                                        |
| 63 | + $pass = $credentials->offsetExists(static::INPUT_PASS) ? strval($credentials->offsetGet(static::INPUT_PASS)) : '';  | 
                                                        |
| 64 | + $pass = $credentials->offsetExists(static::INPUT_PASS2) ? strval($credentials->offsetGet(static::INPUT_PASS2)) : $pass;  | 
                                                        |
| 65 | 65 |              if (!empty($name) && !empty($pass)) { | 
                                                        
| 66 | 66 | /** @scrutinizer ignore-call */  | 
                                                        
| 67 | 67 | $this->loggedUser = $this->authenticator->authenticate($name, ['password' => $pass]);  |