| @@ 184-190 (lines=7) @@ | ||
| 181 | $toDate = $fromDate + 24 * 60 * 60; |
|
| 182 | } |
|
| 183 | } else { |
|
| 184 | if ($input->getOption(self::OPTION_TO)) { |
|
| 185 | // test for valid format |
|
| 186 | $tmpDate = strtotime($input->getOption(self::OPTION_TO)); |
|
| 187 | if ($tmpDate !== false) { |
|
| 188 | $toDate = $tmpDate; |
|
| 189 | } |
|
| 190 | } |
|
| 191 | if ($input->getOption(self::OPTION_FROM)) { |
|
| 192 | // test for valid format |
|
| 193 | $tmpDate = strtotime($input->getOption(self::OPTION_FROM)); |
|
| @@ 191-197 (lines=7) @@ | ||
| 188 | $toDate = $tmpDate; |
|
| 189 | } |
|
| 190 | } |
|
| 191 | if ($input->getOption(self::OPTION_FROM)) { |
|
| 192 | // test for valid format |
|
| 193 | $tmpDate = strtotime($input->getOption(self::OPTION_FROM)); |
|
| 194 | if ($tmpDate !== false) { |
|
| 195 | $fromDate = $tmpDate; |
|
| 196 | } |
|
| 197 | } |
|
| 198 | } |
|
| 199 | } |
|
| 200 | ||