We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
14 | class UniGenLocationCategories { |
||
15 | |||
16 | /** @var array<string, array<int>> */ |
||
17 | public array $locTypes = []; |
||
18 | /** @var array<int> */ |
||
19 | private array $locAdded = []; // list of locs added to a category |
||
20 | |||
21 | public function addLoc(int $locID, string $category): string { |
||
22 | if ($this->added($locID)) { |
||
23 | return "<b>Also in $category</b><br />"; |
||
24 | } |
||
25 | $this->locTypes[$category][] = $locID; |
||
26 | $this->locAdded[] = $locID; |
||
27 | return ''; |
||
28 | } |
||
29 | |||
30 | public function added(int $locID): bool { |
||
32 | } |
||
33 | |||
35 |