@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | foreach ($period as $dt){ |
28 | 28 | $this->syncRates($dt); |
29 | 29 | } |
30 | - }else{ |
|
30 | + } else{ |
|
31 | 31 | $this->syncRates($begin); |
32 | 32 | } |
33 | 33 | ExchangeRate::insertOrIgnore($this->rates); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | if($rates){ |
40 | 40 | $this->info($dt->format('d.m.Y') . ' synced'); |
41 | 41 | array_push($this->rates, ['date' => $dt->format('Y-m-d'), 'rates' => json_encode($rates)]); |
42 | - }else{ |
|
42 | + } else{ |
|
43 | 43 | $this->error($dt->format('d.m.Y') . ' not synced'); |
44 | 44 | } |
45 | 45 | } |