Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | public function handle(Spreadsheet $spreadsheet) |
||
16 | { |
||
17 | $spreadsheet->sheets()->each(function (TranslationsSheet $translationsSheet) { |
||
18 | $this->info("Locking translation sheet [<comment>{$translationsSheet->getTitle()}</comment>] :"); |
||
19 | |||
20 | $translationsSheet->lockTranslations(); |
||
21 | $translationsSheet->api()->reset(); |
||
22 | |||
23 | $this->output->writeln('<info>Done</info>.'); |
||
24 | $this->output->writeln(PHP_EOL); |
||
25 | }); |
||
26 | } |
||
27 | } |
||
28 |