Total Complexity | 9 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Missing |
||
11 | { |
||
12 | public function missing(): array |
||
13 | { |
||
14 | return array_diff($this->sourceAvailable(), $this->mainAvailable()); |
||
15 | } |
||
16 | |||
17 | public function unnecessary(): array |
||
18 | { |
||
19 | return array_diff($this->mainAvailable(), $this->sourceAvailable()); |
||
20 | } |
||
21 | |||
22 | protected function mainAvailable(): array |
||
23 | { |
||
24 | return LocaleSupport::availableAll(); |
||
25 | } |
||
26 | |||
27 | protected function sourceAvailable(): array |
||
38 | } |
||
39 | |||
40 | protected function sourcePath(): string |
||
41 | { |
||
42 | $path = IlluminateConfig::get(Config::KEY_PRIVATE . '.vendor'); |
||
43 | |||
44 | return rtrim($path, '/') . '/src'; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return \DirectoryIterator|\DirectoryIterator[] |
||
49 | */ |
||
50 | protected function directories(): DirectoryIterator |
||
53 | } |
||
54 | } |
||
55 |