@@ -44,9 +44,9 @@ |
||
44 | 44 | |
45 | 45 | public function process(\ArrayAccess $credentials): void |
46 | 46 | { |
47 | - $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : '' ; |
|
48 | - $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2)) : $name ; |
|
49 | - $stamp = $credentials->offsetExists(static::INPUT_STAMP) ? intval(strval($credentials->offsetGet(static::INPUT_STAMP))) : 0 ; |
|
47 | + $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : ''; |
|
48 | + $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2)) : $name; |
|
49 | + $stamp = $credentials->offsetExists(static::INPUT_STAMP) ? intval(strval($credentials->offsetGet(static::INPUT_STAMP))) : 0; |
|
50 | 50 | |
51 | 51 | $wantedUser = $this->authenticator->getDataOnly(strval($name)); |
52 | 52 | $wantedCert = $this->authenticator->getCertData(strval($name)); |
@@ -54,9 +54,9 @@ |
||
54 | 54 | |
55 | 55 | public function process(\ArrayAccess $credentials): void |
56 | 56 | { |
57 | - $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : '' ; |
|
58 | - $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2) ): $name ; |
|
59 | - $stamp = $credentials->offsetExists(static::INPUT_STAMP) ? intval(strval($credentials->offsetGet(static::INPUT_STAMP))) : 0 ; |
|
57 | + $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : ''; |
|
58 | + $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2)) : $name; |
|
59 | + $stamp = $credentials->offsetExists(static::INPUT_STAMP) ? intval(strval($credentials->offsetGet(static::INPUT_STAMP))) : 0; |
|
60 | 60 | |
61 | 61 | $wantedUser = $this->authenticator->getDataOnly(strval($name)); |
62 | 62 | $wantedCert = $this->authenticator->getCertData(strval($name)); |
@@ -42,8 +42,8 @@ |
||
42 | 42 | |
43 | 43 | public function process(\ArrayAccess $credentials): void |
44 | 44 | { |
45 | - $name = $this->server->offsetExists(static::INPUT_NAME) ? strval($this->server->offsetGet(static::INPUT_NAME)) : '' ; |
|
46 | - $digest = $this->server->offsetExists(static::INPUT_PASS) ? strval($this->server->offsetGet(static::INPUT_PASS)) : '' ; |
|
45 | + $name = $this->server->offsetExists(static::INPUT_NAME) ? strval($this->server->offsetGet(static::INPUT_NAME)) : ''; |
|
46 | + $digest = $this->server->offsetExists(static::INPUT_PASS) ? strval($this->server->offsetGet(static::INPUT_PASS)) : ''; |
|
47 | 47 | $wantedUser = $this->authenticator->getDataOnly(strval($name)); |
48 | 48 | $wantedCert = $this->authenticator->getCertData(strval($name)); |
49 | 49 | if ($wantedUser && $wantedCert && $digest) { |