| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | public function handle() |
||
| 51 | { |
||
| 52 | $isPreview = $this->isPreview(); |
||
| 53 | if ($this->isPreview()) { |
||
| 54 | use_contentful_preview(); |
||
| 55 | } |
||
| 56 | |||
| 57 | if ($this->isFromSyncToLive()) { |
||
| 58 | $dumpPath = $this->dumpSync($isPreview, 'mysql_sync'); |
||
| 59 | $this->putSync($dumpPath, $isPreview); |
||
| 60 | } else { |
||
| 61 | $this->putSync($this->dumpSync($isPreview), $isPreview, 'mysql_sync'); |
||
| 62 | $this->switchToSyncDb(); |
||
| 63 | } |
||
| 66 |