@@ -78,7 +78,7 @@ |
||
78 | 78 | * @param string $password The plain password |
79 | 79 | * @param string $email The email of the user |
80 | 80 | * @param string $locale The locale (language) of the user |
81 | - * @param array $roles The roles the user has |
|
81 | + * @param string[] $roles The roles the user has |
|
82 | 82 | * @param array $groups The groups the user belongs to |
83 | 83 | * @param bool $enabled Enable login for the user |
84 | 84 | * @param bool $changed Disable password changed for the user |
@@ -40,6 +40,9 @@ |
||
40 | 40 | unlink(__DIR__ . '/../../_data/' . $basePath . 'TwigBundle/views/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'); |
@@ -35,6 +35,7 @@ |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param ContainerInterface|string $multilanguage |
38 | + * @param \PHPUnit\Framework\MockObject\MockObject $requestStack |
|
38 | 39 | */ |
39 | 40 | public function __construct(/*ContainerInterface|RequestStack*/ $requestStack, $multilanguage = null, $defaultLocale = null, $requiredLocales = null, AdminRouteHelper $adminRouteHelper = null, EntityManagerInterface $em = null, array $hosts = null) |
40 | 41 | { |
@@ -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,10 @@ discard block |
||
172 | 175 | return $listener; |
173 | 176 | } |
174 | 177 | |
178 | + /** |
|
179 | + * @param Request $request |
|
180 | + * @param \PHPUnit\Framework\MockObject\MockObject $response |
|
181 | + */ |
|
175 | 182 | private function getFilterResponseEvent($request, $response, $requestType = HttpKernelInterface::MASTER_REQUEST) |
176 | 183 | { |
177 | 184 | $event = $this->getMockBuilder('Symfony\Component\HttpKernel\Event\FilterResponseEvent') |
@@ -137,6 +137,11 @@ |
||
137 | 137 | $this->assertEquals(10, $this->object->getWeight()); |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param string $lang |
|
142 | + * @param string $title |
|
143 | + * @param string $slug |
|
144 | + */ |
|
140 | 145 | private function getNodeWithTranslation($lang, $title, $slug, $nodeId = null) |
141 | 146 | { |
142 | 147 | $node = new Node(); |
@@ -118,6 +118,9 @@ discard block |
||
118 | 118 | $listener->onPostPersist($nodeEvent); |
119 | 119 | } |
120 | 120 | |
121 | + /** |
|
122 | + * @param \PHPUnit\Framework\MockObject\MockObject $searchConfigMock |
|
123 | + */ |
|
121 | 124 | private function getContainer($searchConfigMock) |
122 | 125 | { |
123 | 126 | $container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -132,6 +135,9 @@ discard block |
||
132 | 135 | return $container; |
133 | 136 | } |
134 | 137 | |
138 | + /** |
|
139 | + * @param boolean $expectCall |
|
140 | + */ |
|
135 | 141 | private function getSearchConfiguration($expectCall) |
136 | 142 | { |
137 | 143 | $searchConfig = $this->createMock(NodePagesConfiguration::class); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
117 | - * @param mixed $item |
|
117 | + * @param \stdClass $item |
|
118 | 118 | * |
119 | 119 | * @return bool |
120 | 120 | */ |
@@ -131,6 +131,9 @@ discard block |
||
131 | 131 | return $this->configurator->canAdd(); |
132 | 132 | } |
133 | 133 | |
134 | + /** |
|
135 | + * @param \stdClass $item |
|
136 | + */ |
|
134 | 137 | public function canView($item) |
135 | 138 | { |
136 | 139 | return $this->configurator->canView($item); |
@@ -145,7 +148,7 @@ discard block |
||
145 | 148 | } |
146 | 149 | |
147 | 150 | /** |
148 | - * @param mixed $item |
|
151 | + * @param \stdClass $item |
|
149 | 152 | * |
150 | 153 | * @return array |
151 | 154 | */ |
@@ -160,7 +163,7 @@ discard block |
||
160 | 163 | } |
161 | 164 | |
162 | 165 | /** |
163 | - * @param mixed $item |
|
166 | + * @param \stdClass $item |
|
164 | 167 | * |
165 | 168 | * @return array |
166 | 169 | */ |
@@ -180,7 +183,7 @@ discard block |
||
180 | 183 | } |
181 | 184 | |
182 | 185 | /** |
183 | - * @param mixed $item |
|
186 | + * @param \stdClass $item |
|
184 | 187 | * |
185 | 188 | * @return bool |
186 | 189 | */ |
@@ -206,7 +209,7 @@ discard block |
||
206 | 209 | } |
207 | 210 | |
208 | 211 | /** |
209 | - * @param object|array $object The object |
|
212 | + * @param \stdClass $object The object |
|
210 | 213 | * @param string $attribute The attribute |
211 | 214 | * |
212 | 215 | * @return mixed |
@@ -217,7 +220,7 @@ discard block |
||
217 | 220 | } |
218 | 221 | |
219 | 222 | /** |
220 | - * @param object|array $object The object |
|
223 | + * @param \stdClass $object The object |
|
221 | 224 | * @param string $attribute The attribute |
222 | 225 | * |
223 | 226 | * @return string |
@@ -244,7 +247,7 @@ discard block |
||
244 | 247 | } |
245 | 248 | |
246 | 249 | /** |
247 | - * @return array |
|
250 | + * @return ItemAction\ItemActionInterface[] |
|
248 | 251 | */ |
249 | 252 | public function getItemActions() |
250 | 253 | { |
@@ -268,7 +271,7 @@ discard block |
||
268 | 271 | } |
269 | 272 | |
270 | 273 | /** |
271 | - * @return array |
|
274 | + * @return ListAction\ListActionInterface[] |
|
272 | 275 | */ |
273 | 276 | public function getListActions() |
274 | 277 | { |
@@ -276,7 +279,7 @@ discard block |
||
276 | 279 | } |
277 | 280 | |
278 | 281 | /** |
279 | - * @return array |
|
282 | + * @return BulkAction\BulkActionInterface[] |
|
280 | 283 | */ |
281 | 284 | public function getBulkActions() |
282 | 285 | { |