Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 9 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
46 | View Code Duplication | public function withRecipients(array $recipients) { |
|
47 | $new = clone $this; |
||
48 | $new->recipients = []; |
||
49 | foreach($recipients as $email => $name) { |
||
50 | $this->validateEmail($email); |
||
51 | $new->recipients[$email] = $name; |
||
52 | } |
||
53 | return $new; |
||
54 | } |
||
55 | |||
67 |
This check marks private properties in classes that are never used. Those properties can be removed.