| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 15 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 45 | 1 | public function import(array $generalSettings, array $settings = []): array  | 
            |
| 46 |     { | 
            ||
| 47 | 1 |         if (array_key_exists('settings', $generalSettings)) { | 
            |
| 48 | 1 |             Schematic::info('- Saving general settings'); | 
            |
| 49 | |||
| 50 | 1 | $record = Craft::$app->getInfo();  | 
            |
| 51 | 1 | $record->setAttributes($generalSettings['settings']);  | 
            |
| 52 | |||
| 53 | 1 |             if (!Craft::$app->saveInfo($record)) { | 
            |
| 54 | 1 |                 Schematic::warning('- Couldn’t save general settings.'); | 
            |
| 55 | }  | 
            ||
| 56 | }  | 
            ||
| 57 | |||
| 58 | 1 | return [];  | 
            |
| 59 | }  | 
            ||
| 60 | }  | 
            ||
| 61 |