| Conditions | 4 | 
| Paths | 6 | 
| Total Lines | 16 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 20 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 31 | public function __invoke(string $password) : bool  | 
            ||
| 32 |     { | 
            ||
| 33 |         foreach ($this->rules as $validate) { | 
            ||
| 34 |             try { | 
            ||
| 35 | $validate($password);  | 
            ||
| 36 |             } catch (InvalidPassword $e) { | 
            ||
| 37 | $this->exceptions[] = $e;  | 
            ||
| 38 | }  | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 41 |         if (count($this->exceptions)) { | 
            ||
| 42 | return false;  | 
            ||
| 43 | }  | 
            ||
| 44 | |||
| 45 | return true;  | 
            ||
| 46 | }  | 
            ||
| 47 | }  | 
            ||
| 48 |