| Conditions | 4 |
| Paths | 8 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function handle() |
||
| 25 | { |
||
| 26 | $arguments = []; |
||
| 27 | if ($this->option('preview')) { |
||
| 28 | $arguments['--preview'] = true; |
||
| 29 | } |
||
| 30 | |||
| 31 | $this->call('contentful:sync-locales', $arguments); |
||
| 32 | |||
| 33 | $this->call('contentful:sync-data', $arguments); |
||
| 34 | |||
| 35 | if ($this->option('no-switch')) { |
||
| 36 | $arguments['--no-switch'] = true; |
||
| 37 | } |
||
| 38 | |||
| 39 | if ($this->option('no-truncate')) { |
||
| 40 | $arguments['--no-truncate'] = true; |
||
| 41 | } |
||
| 42 | |||
| 43 | $this->call('contentful:sync-flatten', $arguments); |
||
| 44 | } |
||
| 46 |