@@ -14,6 +14,9 @@ |
||
14 | 14 | class BaseController extends FOSRestController |
15 | 15 | { |
16 | 16 | |
17 | + /** |
|
18 | + * @param SerializationContext $context |
|
19 | + */ |
|
17 | 20 | protected function renderWithContext($content, $context = null) |
18 | 21 | { |
19 | 22 | $person = $this->getUser(); |
@@ -26,13 +26,11 @@ |
||
26 | 26 | * templateVar="failedCallbacks" |
27 | 27 | * ) |
28 | 28 | * |
29 | - * @param Request $request the request object |
|
30 | - * @param ParamFetcherInterface $paramFetcher param fetcher service |
|
31 | 29 | * |
32 | 30 | * @REST\Get("/notifications/callbacks/failed", name="api_1_get_failed_notification_callbacks") |
33 | 31 | * @Audit\Loggable(type="SELECT") |
34 | 32 | * |
35 | - * @return array |
|
33 | + * @return \Symfony\Component\HttpFoundation\Response |
|
36 | 34 | */ |
37 | 35 | public function getFailedByClientAction() |
38 | 36 | { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @param ParamFetcherInterface $paramFetcher param fetcher service |
50 | 50 | * @Audit\Loggable(type="SELECT") |
51 | 51 | * |
52 | - * @return array |
|
52 | + * @return \Symfony\Component\HttpFoundation\Response |
|
53 | 53 | */ |
54 | 54 | public function getNotificationsAction(Request $request, |
55 | 55 | ParamFetcherInterface $paramFetcher) |
@@ -93,9 +93,8 @@ discard block |
||
93 | 93 | * } |
94 | 94 | * ) |
95 | 95 | * @REST\View(templateVar="notification") |
96 | - * @param Request $request the request object |
|
97 | 96 | * @param int $id |
98 | - * @return \LoginCidadao\NotificationBundle\Entity\Notification |
|
97 | + * @return \Symfony\Component\HttpFoundation\Response |
|
99 | 98 | * @throws NotFoundHttpException when notification not exist |
100 | 99 | * @throws AccessDeniedHttpException when trying to access another user's Notification |
101 | 100 | * @REST\Get("/notifications/{id}", name="api_1_get_notification") |
@@ -172,7 +171,7 @@ discard block |
||
172 | 171 | /** |
173 | 172 | * Fetch a Notification or throw an 404 Exception. |
174 | 173 | * |
175 | - * @param mixed $id |
|
174 | + * @param integer $id |
|
176 | 175 | * @return NotificationInterface |
177 | 176 | * @throws NotFoundHttpException |
178 | 177 | */ |
@@ -104,6 +104,9 @@ discard block |
||
104 | 104 | return $this->handleView($view); |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param \Closure $callback |
|
109 | + */ |
|
107 | 110 | private function runTimeLimited($callback, $waitTime = 1) |
108 | 111 | { |
109 | 112 | $maxExecutionTime = ini_get('max_execution_time'); |
@@ -127,6 +130,9 @@ discard block |
||
127 | 130 | throw new RequestTimeoutException("Request Timeout"); |
128 | 131 | } |
129 | 132 | |
133 | + /** |
|
134 | + * @param \DateTime $updatedAt |
|
135 | + */ |
|
130 | 136 | private function getCheckUpdateCallback($id, $updatedAt, $lastUpdatedAt) |
131 | 137 | { |
132 | 138 | $em = $this->getDoctrine()->getEntityManager(); |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | /** |
411 | 411 | * Get response code |
412 | 412 | * |
413 | - * @return integer |
|
413 | + * @return string |
|
414 | 414 | */ |
415 | 415 | public function getResponseCode() |
416 | 416 | { |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | } |
429 | 429 | |
430 | 430 | /** |
431 | - * @return Client |
|
431 | + * @return ClientInterface |
|
432 | 432 | */ |
433 | 433 | public function getClient() |
434 | 434 | { |
@@ -79,6 +79,9 @@ |
||
79 | 79 | return $this; |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $logoutKey |
|
84 | + */ |
|
82 | 85 | public function setKey($logoutKey) |
83 | 86 | { |
84 | 87 | $this->logoutKey = $logoutKey; |
@@ -57,6 +57,9 @@ discard block |
||
57 | 57 | $annotation->setActionLogId($log->getId()); |
58 | 58 | } |
59 | 59 | |
60 | + /** |
|
61 | + * @param integer $responseCode |
|
62 | + */ |
|
60 | 63 | public function updateResponseCode($actionLogId, $responseCode) |
61 | 64 | { |
62 | 65 | |
@@ -83,7 +86,6 @@ discard block |
||
83 | 86 | } |
84 | 87 | |
85 | 88 | /** |
86 | - * @param Loggable $annotation |
|
87 | 89 | * @param Request $request |
88 | 90 | * @param array $controllerAction |
89 | 91 | * @param string $auditUsername |
@@ -137,6 +139,9 @@ discard block |
||
137 | 139 | $this->em->flush($log); |
138 | 140 | } |
139 | 141 | |
142 | + /** |
|
143 | + * @param boolean $isImpersonating |
|
144 | + */ |
|
140 | 145 | public function registerImpersonate(Request $request, |
141 | 146 | PersonInterface $person, |
142 | 147 | PersonInterface $impersonator, |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | $this->createCategories($output); |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $dir |
|
36 | + */ |
|
34 | 37 | private function loadDumpFiles($dir, OutputInterface $output) |
35 | 38 | { |
36 | 39 | $em = $this->getManager(); |
@@ -94,6 +97,10 @@ discard block |
||
94 | 97 | return compact('id', 'name', 'state_id', 'stat', 'reviewed'); |
95 | 98 | } |
96 | 99 | |
100 | + /** |
|
101 | + * @param string $fileName |
|
102 | + * @param \Doctrine\DBAL\Statement $query |
|
103 | + */ |
|
97 | 104 | private function loopInsert($dir, $fileName, $query, $prepareFunction, $debug = false) |
98 | 105 | { |
99 | 106 | $entries = 0; |
@@ -112,6 +119,9 @@ discard block |
||
112 | 119 | return $entries; |
113 | 120 | } |
114 | 121 | |
122 | + /** |
|
123 | + * @param string $dir |
|
124 | + */ |
|
115 | 125 | protected function createDefaultOAuthClient($dir, OutputInterface $output) |
116 | 126 | { |
117 | 127 | if (!($this->getDefaultOAuthClient() instanceof Client)) { |
@@ -82,6 +82,9 @@ |
||
82 | 82 | $io->progressFinish(); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param string $env |
|
87 | + */ |
|
85 | 88 | private function clearCache(SymfonyStyle $io, $env) |
86 | 89 | { |
87 | 90 | $io->section("Clearing cache ($env)..."); |