Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function add(string $filename, ?int $line): self |
||
19 | { |
||
20 | $fileReferences = $this->references[$filename] ?? []; |
||
21 | |||
22 | if (isset($line) && !in_array($line, $fileReferences)) { |
||
23 | $fileReferences[] = $line; |
||
24 | } |
||
25 | |||
26 | $this->references[$filename] = $fileReferences; |
||
27 | |||
28 | return $this; |
||
29 | } |
||
30 | |||
53 |