@@ 83-89 (lines=7) @@ | ||
80 | return false; |
|
81 | } |
|
82 | } |
|
83 | if ($this->option('from')) { |
|
84 | if (!preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/', $this->option('from'))) { |
|
85 | $this->error('--from must be on ISO-format YYYY-MM-DD.'); |
|
86 | ||
87 | return false; |
|
88 | } |
|
89 | } |
|
90 | if ($this->option('until')) { |
|
91 | if (!preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/', $this->option('until'))) { |
|
92 | $this->error('--until must be on ISO-format YYYY-MM-DD.'); |
|
@@ 90-96 (lines=7) @@ | ||
87 | return false; |
|
88 | } |
|
89 | } |
|
90 | if ($this->option('until')) { |
|
91 | if (!preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/', $this->option('until'))) { |
|
92 | $this->error('--until must be on ISO-format YYYY-MM-DD.'); |
|
93 | ||
94 | return false; |
|
95 | } |
|
96 | } |
|
97 | ||
98 | return true; |
|
99 | } |