@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * onKernelRequest |
| 62 | 62 | * |
| 63 | - * @param GetResponseEvent|ResponseEvent $event |
|
| 63 | + * @param \PHPUnit\Framework\MockObject\MockObject $event |
|
| 64 | 64 | */ |
| 65 | 65 | public function onKernelRequest($event) |
| 66 | 66 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @param TokenInterface $token |
| 87 | - * @param $providerKey |
|
| 87 | + * @param string $providerKey |
|
| 88 | 88 | * |
| 89 | 89 | * @return bool |
| 90 | 90 | */ |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @param GetResponseEvent|ResponseEvent $event |
|
| 70 | + * @param \PHPUnit\Framework\MockObject\MockObject $event |
|
| 71 | 71 | **/ |
| 72 | 72 | public function onKernelRequest($event) |
| 73 | 73 | { |
@@ -138,6 +138,9 @@ discard block |
||
| 138 | 138 | $object->onKernelResponse($event); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | + /** |
|
| 142 | + * @param \PHPUnit\Framework\MockObject\MockObject $flashBag |
|
| 143 | + */ |
|
| 141 | 144 | private function getHostOverrideListener($flashBag) |
| 142 | 145 | { |
| 143 | 146 | $session = $this->getMockBuilder('Symfony\Component\HttpFoundation\Session\Session') |
@@ -172,6 +175,9 @@ discard block |
||
| 172 | 175 | return $listener; |
| 173 | 176 | } |
| 174 | 177 | |
| 178 | + /** |
|
| 179 | + * @param \PHPUnit\Framework\MockObject\MockObject $response |
|
| 180 | + */ |
|
| 175 | 181 | private function getFilterResponseEvent($request, $response, $requestType = HttpKernelInterface::MASTER_REQUEST) |
| 176 | 182 | { |
| 177 | 183 | $event = $this->getMockBuilder('Symfony\Component\HttpKernel\Event\FilterResponseEvent') |
@@ -338,6 +338,9 @@ |
||
| 338 | 338 | return Request::create('http://single-alias.tld/'); |
| 339 | 339 | } |
| 340 | 340 | |
| 341 | + /** |
|
| 342 | + * @param string $uri |
|
| 343 | + */ |
|
| 341 | 344 | private function getRequestWithOverride($uri) |
| 342 | 345 | { |
| 343 | 346 | $session = new Session(new MockArraySessionStorage()); |
@@ -215,6 +215,9 @@ |
||
| 215 | 215 | return $repository; |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | + /** |
|
| 219 | + * @param NodeTranslation $nodeTranslation |
|
| 220 | + */ |
|
| 218 | 221 | private function getDomainBasedLocaleRouter($request, $nodeTranslation = null) |
| 219 | 222 | { |
| 220 | 223 | return new DomainBasedLocaleRouter($this->getDomainConfiguration(), $this->getRequestStack($request), $this->getEntityManager($nodeTranslation)); |
@@ -8,13 +8,25 @@ |
||
| 8 | 8 | |
| 9 | 9 | public function addExportField($name, $header); |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @return void |
|
| 13 | + */ |
|
| 11 | 14 | public function buildIterator(); |
| 12 | 15 | |
| 13 | 16 | public function getIterator(); |
| 14 | 17 | |
| 18 | + /** |
|
| 19 | + * @return void |
|
| 20 | + */ |
|
| 15 | 21 | public function buildFilters(); |
| 16 | 22 | |
| 23 | + /** |
|
| 24 | + * @return void |
|
| 25 | + */ |
|
| 17 | 26 | public function buildExportFields(); |
| 18 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $columnName |
|
| 30 | + */ |
|
| 19 | 31 | public function getStringValue($item, $columnName); |
| 20 | 32 | } |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | * |
| 235 | 235 | * @Route("/export.{_format}", requirements={"_format" = "csv|ods|xlsx"}, name="KunstmaanTranslatorBundle_settings_translations_export", methods={"GET", "POST"}) |
| 236 | 236 | * |
| 237 | - * @return array |
|
| 237 | + * @return Response |
|
| 238 | 238 | */ |
| 239 | 239 | public function exportAction(Request $request, $_format) |
| 240 | 240 | { |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | return $this->exportFields; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $header |
|
| 94 | + */ |
|
| 92 | 95 | public function addExportField($name, $header, $template = null, FieldAlias $alias = null) |
| 93 | 96 | { |
| 94 | 97 | $this->exportFields[] = new Field($name, $header); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * You can override this method to return the correct entity manager when using multiple databases ... |
| 35 | 35 | * |
| 36 | - * @return \Doctrine\Common\Persistence\ObjectManager|object |
|
| 36 | + * @return \Doctrine\Persistence\ObjectManager |
|
| 37 | 37 | */ |
| 38 | 38 | protected function getEntityManager() |
| 39 | 39 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * Shows the list of entities |
| 45 | 45 | * |
| 46 | 46 | * @param AbstractAdminListConfigurator $configurator |
| 47 | - * @param null|Request $request |
|
| 47 | + * @param Request $request |
|
| 48 | 48 | * |
| 49 | 49 | * @return Response |
| 50 | 50 | */ |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | * |
| 94 | 94 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
| 95 | 95 | * @param string $type The type to add |
| 96 | - * @param null|Request $request |
|
| 96 | + * @param Request $request |
|
| 97 | 97 | * |
| 98 | 98 | * @throws AccessDeniedHttpException |
| 99 | 99 | * |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * |
| 189 | 189 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
| 190 | 190 | * @param string $entityId The id of the entity that will be edited |
| 191 | - * @param null|Request $request |
|
| 191 | + * @param Request $request |
|
| 192 | 192 | * |
| 193 | 193 | * @throws NotFoundHttpException |
| 194 | 194 | * @throws AccessDeniedHttpException |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | * |
| 343 | 343 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
| 344 | 344 | * @param int $entityId The id to delete |
| 345 | - * @param null|Request $request |
|
| 345 | + * @param Request $request |
|
| 346 | 346 | * |
| 347 | 347 | * @throws NotFoundHttpException |
| 348 | 348 | * @throws AccessDeniedHttpException |
@@ -469,6 +469,9 @@ discard block |
||
| 469 | 469 | ); |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | + /** |
|
| 473 | + * @param \Doctrine\Persistence\ObjectRepository $repo |
|
| 474 | + */ |
|
| 472 | 475 | private function getMaxSortableField($repo, $sort) |
| 473 | 476 | { |
| 474 | 477 | $maxWeight = $repo->createQueryBuilder('i') |