Total Complexity | 8 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class ForceRemoved { |
||
7 | |||
8 | public static function create() { |
||
9 | return new static(); |
||
10 | } |
||
11 | |||
12 | protected function getExtensions() { |
||
13 | $result = db_select('system', 's' )->fields('s', [ |
||
|
|||
14 | 'filename', |
||
15 | 'name', |
||
16 | 'type', |
||
17 | 'status', |
||
18 | 'bootstrap', |
||
19 | 'schema_version', |
||
20 | 'weight', |
||
21 | 'info', |
||
22 | ])->execute(); |
||
23 | |||
24 | $extensions = iterator_to_array($result); |
||
25 | return $extensions; |
||
26 | } |
||
27 | |||
28 | protected function filterMissing($extension) { |
||
29 | $path = $extension->filename; |
||
30 | return !file_exists($path); |
||
31 | } |
||
32 | |||
33 | protected function stripInfo(\stdClass $extension) { |
||
55 | } |
||
56 | |||
57 | public function find() { |
||
61 | } |
||
62 | } |
||
63 |