@@ -62,12 +62,10 @@ discard block |
||
62 | 62 | if ($date instanceof Carbon) |
63 | 63 | { |
64 | 64 | $this->date_min = $date->format($this->date_format); |
65 | - } |
|
66 | - else if (is_string($date)) |
|
65 | + } else if (is_string($date)) |
|
67 | 66 | { |
68 | 67 | $this->date_min = $date; |
69 | - } |
|
70 | - else |
|
68 | + } else |
|
71 | 69 | { |
72 | 70 | throw new InvalidArgumentException("Min date must be a string or a Carbon instance."); |
73 | 71 | } |
@@ -85,12 +83,10 @@ discard block |
||
85 | 83 | if ($date instanceof Carbon) |
86 | 84 | { |
87 | 85 | $this->date_max = $date->format($this->date_format); |
88 | - } |
|
89 | - else if (is_string($date)) |
|
86 | + } else if (is_string($date)) |
|
90 | 87 | { |
91 | 88 | $this->date_max = $date; |
92 | - } |
|
93 | - else |
|
89 | + } else |
|
94 | 90 | { |
95 | 91 | throw new InvalidArgumentException("Max date must be a string or a Carbon instance."); |
96 | 92 | } |