@@ -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; |
@@ -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 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
33 | - * @param mixed $clonedEntity |
|
33 | + * @param \stdClass $clonedEntity |
|
34 | 34 | * |
35 | 35 | * @return DeepCloneAndSaveEvent |
36 | 36 | */ |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @param mixed $entity |
|
53 | + * @param \stdClass $entity |
|
54 | 54 | * |
55 | 55 | * @return DeepCloneAndSaveEvent |
56 | 56 | */ |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | /** |
147 | 147 | * Return entity manager mock |
148 | 148 | * |
149 | - * @return EntityManager |
|
149 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
150 | 150 | */ |
151 | 151 | public function getEntityManager() |
152 | 152 | { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | /** |
159 | 159 | * Return alc provider mock |
160 | 160 | * |
161 | - * @return AclProviderInterface |
|
161 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
162 | 162 | */ |
163 | 163 | public function getAclProvider() |
164 | 164 | { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | /** |
169 | 169 | * Return security token storage |
170 | 170 | * |
171 | - * @return TokenStorageInterface |
|
171 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
172 | 172 | */ |
173 | 173 | public function getTokenStorage() |
174 | 174 | { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | /** |
179 | 179 | * Return oid retrieval strategy mock |
180 | 180 | * |
181 | - * @return ObjectIdentityRetrievalStrategyInterface |
|
181 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
182 | 182 | */ |
183 | 183 | public function getOidRetrievalStrategy() |
184 | 184 | { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
207 | - * @return KernelInterface |
|
207 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
208 | 208 | */ |
209 | 209 | public function getKernel() |
210 | 210 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | /** |
267 | 267 | * Return entity mock |
268 | 268 | * |
269 | - * @return AbstractEntity |
|
269 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
270 | 270 | */ |
271 | 271 | public function getEntity() |
272 | 272 | { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | - * @param mixed $node |
|
29 | + * @param \Kunstmaan\NodeBundle\Entity\Node $node |
|
30 | 30 | */ |
31 | 31 | public function setNode($node) |
32 | 32 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param mixed $nodeTranslation |
|
47 | + * @param \Kunstmaan\NodeBundle\Entity\NodeTranslation $nodeTranslation |
|
48 | 48 | */ |
49 | 49 | public function setNodeTranslation($nodeTranslation) |
50 | 50 | { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | - * @param mixed $request |
|
83 | + * @param \Symfony\Component\HttpFoundation\Request $request |
|
84 | 84 | */ |
85 | 85 | public function setRequest($request) |
86 | 86 | { |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | class MediaTokenTransformer implements DataTransformerInterface |
12 | 12 | { |
13 | 13 | /** |
14 | - * @param mixed $content |
|
14 | + * @param string $content |
|
15 | 15 | * |
16 | 16 | * @return string |
17 | 17 | */ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param mixed $content |
|
47 | + * @param string $content |
|
48 | 48 | * |
49 | 49 | * @return string |
50 | 50 | */ |
@@ -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()); |