@@ -24,6 +24,9 @@ |
||
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $type |
|
| 29 | + */ |
|
| 27 | 30 | protected function validateManagerType($type) |
| 28 | 31 | { |
| 29 | 32 | $managerType = $this->container->getParameter($type); |
@@ -36,7 +36,6 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * @Route("/timings", name="dtc_queue_timings") |
| 38 | 38 | * |
| 39 | - * @param Request $request |
|
| 40 | 39 | */ |
| 41 | 40 | public function getTimingsAction() |
| 42 | 41 | { |
@@ -56,6 +55,10 @@ discard block |
||
| 56 | 55 | return new JsonResponse($params); |
| 57 | 56 | } |
| 58 | 57 | |
| 58 | + /** |
|
| 59 | + * @param \DateTime|null $beginDate |
|
| 60 | + * @param \DateTime $endDate |
|
| 61 | + */ |
|
| 59 | 62 | protected function calculateTimings($type, $beginDate, $endDate) |
| 60 | 63 | { |
| 61 | 64 | $params = []; |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | $format = $this->getDateFormat($type); |
| 83 | - usort($timingsDates, function ($date1str, $date2str) use ($format) { |
|
| 83 | + usort($timingsDates, function($date1str, $date2str) use ($format) { |
|
| 84 | 84 | $date1 = \DateTime::createFromFormat($format, $date1str); |
| 85 | 85 | $date2 = \DateTime::createFromFormat($format, $date2str); |
| 86 | 86 | if (!$date2) { |