@@ 104-110 (lines=7) @@ | ||
101 | return false; |
|
102 | } |
|
103 | } |
|
104 | if ($this->option('from')) { |
|
105 | if (!preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/', $this->option('from'))) { |
|
106 | $this->error('--from must be on ISO-format YYYY-MM-DD.'); |
|
107 | ||
108 | return false; |
|
109 | } |
|
110 | } |
|
111 | if ($this->option('until')) { |
|
112 | if (!preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/', $this->option('until'))) { |
|
113 | $this->error('--until must be on ISO-format YYYY-MM-DD.'); |
|
@@ 111-117 (lines=7) @@ | ||
108 | return false; |
|
109 | } |
|
110 | } |
|
111 | if ($this->option('until')) { |
|
112 | if (!preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/', $this->option('until'))) { |
|
113 | $this->error('--until must be on ISO-format YYYY-MM-DD.'); |
|
114 | ||
115 | return false; |
|
116 | } |
|
117 | } |
|
118 | ||
119 | return true; |
|
120 | } |