Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
27 | 1 | public function export(array $settings = []): array |
|
28 | { |
||
29 | 1 | $info = Craft::$app->getInfo(); |
|
30 | |||
31 | return [ |
||
32 | 'settings' => [ |
||
33 | 1 | 'edition' => $info->edition, |
|
34 | 1 | 'timezone' => $info->timezone, |
|
35 | 1 | 'name' => $info->name, |
|
36 | 1 | 'on' => $info->on, |
|
37 | 1 | 'maintenance' => $info->maintenance, |
|
38 | ], |
||
39 | ]; |
||
40 | } |
||
41 | |||
61 |