Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 1 | public function addPhone(string $phone, ?string $area = null, ?string $place = null, ?string $region = null): void |
|
24 | { |
||
25 | 1 | $this->data[] = \array_merge( |
|
26 | [ |
||
27 | 1 | 'id' => \sha1($phone), |
|
28 | 1 | 'original-phone' => $phone, |
|
29 | ], |
||
30 | 1 | \array_filter(\compact('area', 'place', 'region')) |
|
31 | ); |
||
39 |