| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 8 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | View Code Duplication | public function withRecipient($email, $name = null) |
|
| 38 | { |
||
| 39 | $this->validateEmail($email); |
||
| 40 | $new = clone $this; |
||
| 41 | $new->recipients = []; |
||
| 42 | $new->recipients[$email] = $name; |
||
| 43 | return $new; |
||
| 44 | } |
||
| 45 | |||
| 67 |
This check marks private properties in classes that are never used. Those properties can be removed.