| Conditions | 4 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function verify($auth) |
||
| 20 | { |
||
| 21 | if (!isset($auth['username'])) { |
||
| 22 | throw new InvalidArgumentException("Invalid arguments"); |
||
| 23 | } |
||
| 24 | return ($this->auth['username'] == $auth['username']) |
||
| 25 | && (!isset($this->auth['password']) || $this->auth['password'] == $auth['password']); |
||
| 26 | } |
||
| 27 | } |