@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * Returns a list of functions to add to the existing list. |
| 18 | 18 | * |
| 19 | - * @return array An array of functions |
|
| 19 | + * @return TwigFunction[] An array of functions |
|
| 20 | 20 | */ |
| 21 | 21 | public function getFunctions() |
| 22 | 22 | { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @return array |
|
| 33 | + * @return TwigFunction[] |
|
| 34 | 34 | */ |
| 35 | 35 | public function getFunctions() |
| 36 | 36 | { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * Returns a list of functions to add to the existing list. |
| 18 | 18 | * |
| 19 | - * @return array An array of functions |
|
| 19 | + * @return TwigFunction[] An array of functions |
|
| 20 | 20 | */ |
| 21 | 21 | public function getFunctions() |
| 22 | 22 | { |
@@ -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,7 +40,7 @@ |
||
| 40 | 40 | private $requestStack; |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @param ContainerInterface|RequestStack $requestStack |
|
| 43 | + * @param \PHPUnit\Framework\MockObject\MockObject $requestStack |
|
| 44 | 44 | */ |
| 45 | 45 | public function __construct(/* RequestStack */ $requestStack) |
| 46 | 46 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | private $tokenStorage; |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * @param ContainerInterface|TokenStorageInterface $tokenStorage |
|
| 34 | + * @param \PHPUnit\Framework\MockObject\MockObject $tokenStorage |
|
| 35 | 35 | */ |
| 36 | 36 | public function __construct(/*TokenStorageInterface */ $tokenStorage) |
| 37 | 37 | { |
@@ -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'); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | /** |
| 63 | 63 | * The constructor for this service |
| 64 | 64 | * |
| 65 | - * @param ContainerInterface $container |
|
| 65 | + * @param \PHPUnit\Framework\MockObject\MockObject $domainConfiguration |
|
| 66 | 66 | */ |
| 67 | 67 | public function __construct( |
| 68 | 68 | /* DomainConfigurationInterface */ $domainConfiguration, |
@@ -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); |