Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
15 | 1 | public function handle(Spreadsheet $spreadsheet) |
|
16 | 1 | { |
|
17 | $spreadsheet->ensureConfiguredSheetsAreCreated(); |
||
18 | |||
19 | $spreadsheet->sheets()->each(function (TranslationsSheet $translationsSheet) { |
||
20 | $this->output->writeln( |
||
21 | '<comment>Setting up translations sheet [' . $translationsSheet->getTitle() . ']</comment>' |
||
22 | ); |
||
23 | |||
24 | $translationsSheet->api()->addBatchRequests( |
||
25 | $translationsSheet->api()->setTabColor($translationsSheet->getId(), $translationsSheet->getTabColor()) |
||
26 | ); |
||
27 | }); |
||
28 | |||
29 | $spreadsheet->api()->sendBatchRequests(); |
||
30 | |||
31 | $this->output->writeln('<info>Done. Spreasheet is ready.</info>'); |
||
32 | } |
||
33 | } |
||
34 |