| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 65 | final public static function fromList(array $list): AbstractRecipient |
||
| 66 | { |
||
| 67 | return new static( |
||
| 68 | new AddressList( |
||
| 69 | array_map( |
||
| 70 | function ($pair) { |
||
| 71 | [$emailAddress, $name] = $pair; |
||
| 72 | return new Address( |
||
| 73 | new EmailAddress($emailAddress), |
||
| 74 | $name |
||
| 75 | ); |
||
| 76 | }, |
||
| 77 | $list |
||
| 78 | ) |
||
| 79 | ) |
||
| 80 | ); |
||
| 81 | } |
||
| 82 | } |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.