@@ -103,7 +103,7 @@ |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @return mixed |
|
| 106 | + * @return string |
|
| 107 | 107 | */ |
| 108 | 108 | public function getId() |
| 109 | 109 | { |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | unlink(__DIR__ . '/../../_data/' . $basePath . 'Exception/error503.html.twig'); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $path |
|
| 45 | + */ |
|
| 43 | 46 | protected function getBundle($path) |
| 44 | 47 | { |
| 45 | 48 | $bundle = $this->createMock('Symfony\Component\HttpKernel\Bundle\BundleInterface'); |
@@ -74,6 +74,9 @@ discard block |
||
| 74 | 74 | return null; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param string $cacheDir |
|
| 79 | + */ |
|
| 77 | 80 | public function setCacheDir($cacheDir) |
| 78 | 81 | { |
| 79 | 82 | $this->cacheDir = $cacheDir; |
@@ -84,6 +87,9 @@ discard block |
||
| 84 | 87 | $this->logger = $logger; |
| 85 | 88 | } |
| 86 | 89 | |
| 90 | + /** |
|
| 91 | + * @param \PHPUnit\Framework\MockObject\MockObject $translationRepository |
|
| 92 | + */ |
|
| 87 | 93 | public function setTranslationRepository($translationRepository) |
| 88 | 94 | { |
| 89 | 95 | $this->translationRepository = $translationRepository; |
@@ -372,6 +372,9 @@ discard block |
||
| 372 | 372 | return Request::create('http://single-alias.tld/'); |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | + /** |
|
| 376 | + * @param string $uri |
|
| 377 | + */ |
|
| 375 | 378 | private function getRequestWithOverride($uri) |
| 376 | 379 | { |
| 377 | 380 | $session = new Session(new MockArraySessionStorage()); |
@@ -385,6 +388,9 @@ discard block |
||
| 385 | 388 | return $request; |
| 386 | 389 | } |
| 387 | 390 | |
| 391 | + /** |
|
| 392 | + * @param Request $request |
|
| 393 | + */ |
|
| 388 | 394 | private function getDomainConfiguration($request) |
| 389 | 395 | { |
| 390 | 396 | $hostMap = array( |
@@ -178,8 +178,8 @@ discard block |
||
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | - * @param $request |
|
| 182 | - * @param null $nodeTranslation |
|
| 181 | + * @param Request $request |
|
| 182 | + * @param NodeTranslation $nodeTranslation |
|
| 183 | 183 | * |
| 184 | 184 | * @return Container |
| 185 | 185 | */ |
@@ -241,6 +241,9 @@ discard block |
||
| 241 | 241 | return Request::create($url); |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | + /** |
|
| 245 | + * @param NodeTranslation $nodeTranslation |
|
| 246 | + */ |
|
| 244 | 247 | private function getEntityManager($nodeTranslation = null) |
| 245 | 248 | { |
| 246 | 249 | $em = $this->createMock('Doctrine\ORM\EntityManagerInterface'); |
@@ -146,6 +146,9 @@ discard block |
||
| 146 | 146 | new NodeIndexUpdateEventListener($this->getContainer($this->getSearchConfiguration(false)), $em); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | + /** |
|
| 150 | + * @param \PHPUnit\Framework\MockObject\MockObject $searchConfigMock |
|
| 151 | + */ |
|
| 149 | 152 | private function getContainer($searchConfigMock) |
| 150 | 153 | { |
| 151 | 154 | $container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -160,6 +163,9 @@ discard block |
||
| 160 | 163 | return $container; |
| 161 | 164 | } |
| 162 | 165 | |
| 166 | + /** |
|
| 167 | + * @param boolean $expectCall |
|
| 168 | + */ |
|
| 163 | 169 | private function getSearchConfiguration($expectCall) |
| 164 | 170 | { |
| 165 | 171 | $searchConfig = $this->createMock(NodePagesConfiguration::class); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * |
| 18 | 18 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 19 | 19 | * |
| 20 | - * @return array |
|
| 20 | + * @return \Symfony\Component\HttpFoundation\Response |
|
| 21 | 21 | */ |
| 22 | 22 | public function indexAction(Request $request) |
| 23 | 23 | { |