| Conditions | 4 |
| Paths | 4 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function verify($auth) |
||
| 26 | { |
||
| 27 | if (!isset($auth['username'])) { |
||
| 28 | throw new InvalidArgumentException('Invalid arguments'); |
||
| 29 | } |
||
| 30 | |||
| 31 | return ($this->auth['username'] == $auth['username']) |
||
| 32 | && (!isset($this->auth['password']) || $this->auth['password'] == $auth['password']); |
||
| 33 | } |
||
| 34 | } |