Conditions | 3 |
Paths | 4 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
38 | public function handle() |
||
39 | { |
||
40 | |||
41 | $isPreview = $this->isPreview(); |
||
42 | |||
43 | if ($this->isPreview()) { |
||
44 | use_contentful_preview(); |
||
45 | } |
||
46 | |||
47 | if ($this->isFromSyncToLive()) { |
||
48 | $dumpPath = $this->dumpSync($isPreview, 'mysql_sync'); |
||
49 | $this->putSync($dumpPath, $isPreview); |
||
50 | } else { |
||
51 | $this->putSync($this->dumpSync($isPreview), $isPreview, 'mysql_sync'); |
||
52 | $this->switchToSyncDb(); |
||
53 | } |
||
54 | |||
55 | } |
||
56 | } |
||
57 |