@@ 70-75 (lines=6) @@ | ||
67 | $doNotUseLastStockMovement = boolval($input->getOption('do-not-use-last-stock-movement')); |
|
68 | ||
69 | // validate dates |
|
70 | if ($start) { |
|
71 | $start = \DateTime::createFromFormat('Y-m-d', $start); |
|
72 | if (false === $start) { |
|
73 | throw new \InvalidArgumentException('The format for start is invalid'); |
|
74 | } |
|
75 | } |
|
76 | ||
77 | if ($end) { |
|
78 | $end = \DateTime::createFromFormat('Y-m-d', $end); |
|
@@ 77-82 (lines=6) @@ | ||
74 | } |
|
75 | } |
|
76 | ||
77 | if ($end) { |
|
78 | $end = \DateTime::createFromFormat('Y-m-d', $end); |
|
79 | if (false === $end) { |
|
80 | throw new \InvalidArgumentException('The format for end is invalid'); |
|
81 | } |
|
82 | } |
|
83 | ||
84 | // find manufacturer |
|
85 | $manufacturer = $this->manufacturerRepository->findOneByExternalId($manufacturer); |