@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * Returns a list of functions to add to the existing list. |
| 52 | 52 | * |
| 53 | - * @return array An array of functions |
|
| 53 | + * @return \Twig_SimpleFunction[] An array of functions |
|
| 54 | 54 | */ |
| 55 | 55 | public function getFunctions() |
| 56 | 56 | { |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | /** |
| 237 | - * @param $src |
|
| 237 | + * @param string $src |
|
| 238 | 238 | * |
| 239 | 239 | * @return array |
| 240 | 240 | */ |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | private $entityChangeSet; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @param ContainerInterface $container |
|
| 28 | + * @param \PHPUnit\Framework\MockObject\MockObject $nodePagesConfiguration |
|
| 29 | 29 | */ |
| 30 | 30 | public function __construct(/* NodePagesConfiguration */ $nodePagesConfiguration) |
| 31 | 31 | { |
@@ -127,6 +127,9 @@ discard block |
||
| 127 | 127 | $listener = new NodeIndexUpdateEventListener($this->getContainer($this->getSearchConfiguration(false))); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | + /** |
|
| 131 | + * @param \PHPUnit\Framework\MockObject\MockObject $searchConfigMock |
|
| 132 | + */ |
|
| 130 | 133 | private function getContainer($searchConfigMock) |
| 131 | 134 | { |
| 132 | 135 | $container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -141,6 +144,9 @@ discard block |
||
| 141 | 144 | return $container; |
| 142 | 145 | } |
| 143 | 146 | |
| 147 | + /** |
|
| 148 | + * @param boolean $expectCall |
|
| 149 | + */ |
|
| 144 | 150 | private function getSearchConfiguration($expectCall) |
| 145 | 151 | { |
| 146 | 152 | $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 | */ |
@@ -154,13 +157,16 @@ discard block |
||
| 154 | 157 | return $this->configurator->getEditUrlFor($item); |
| 155 | 158 | } |
| 156 | 159 | |
| 160 | + /** |
|
| 161 | + * @param \stdClass $item |
|
| 162 | + */ |
|
| 157 | 163 | public function getViewUrlFor($item) |
| 158 | 164 | { |
| 159 | 165 | return $this->configurator->getViewUrlFor($item); |
| 160 | 166 | } |
| 161 | 167 | |
| 162 | 168 | /** |
| 163 | - * @param mixed $item |
|
| 169 | + * @param \stdClass $item |
|
| 164 | 170 | * |
| 165 | 171 | * @return array |
| 166 | 172 | */ |
@@ -180,7 +186,7 @@ discard block |
||
| 180 | 186 | } |
| 181 | 187 | |
| 182 | 188 | /** |
| 183 | - * @param mixed $item |
|
| 189 | + * @param \stdClass $item |
|
| 184 | 190 | * |
| 185 | 191 | * @return bool |
| 186 | 192 | */ |
@@ -206,7 +212,7 @@ discard block |
||
| 206 | 212 | } |
| 207 | 213 | |
| 208 | 214 | /** |
| 209 | - * @param object|array $object The object |
|
| 215 | + * @param \stdClass $object The object |
|
| 210 | 216 | * @param string $attribute The attribute |
| 211 | 217 | * |
| 212 | 218 | * @return mixed |
@@ -217,7 +223,7 @@ discard block |
||
| 217 | 223 | } |
| 218 | 224 | |
| 219 | 225 | /** |
| 220 | - * @param object|array $object The object |
|
| 226 | + * @param \stdClass $object The object |
|
| 221 | 227 | * @param string $attribute The attribute |
| 222 | 228 | * |
| 223 | 229 | * @return string |
@@ -244,7 +250,7 @@ discard block |
||
| 244 | 250 | } |
| 245 | 251 | |
| 246 | 252 | /** |
| 247 | - * @return array |
|
| 253 | + * @return ItemAction\ItemActionInterface[] |
|
| 248 | 254 | */ |
| 249 | 255 | public function getItemActions() |
| 250 | 256 | { |
@@ -268,7 +274,7 @@ discard block |
||
| 268 | 274 | } |
| 269 | 275 | |
| 270 | 276 | /** |
| 271 | - * @return array |
|
| 277 | + * @return ListAction\ListActionInterface[] |
|
| 272 | 278 | */ |
| 273 | 279 | public function getListActions() |
| 274 | 280 | { |
@@ -276,7 +282,7 @@ discard block |
||
| 276 | 282 | } |
| 277 | 283 | |
| 278 | 284 | /** |
| 279 | - * @return array |
|
| 285 | + * @return BulkAction\BulkActionInterface[] |
|
| 280 | 286 | */ |
| 281 | 287 | public function getBulkActions() |
| 282 | 288 | { |
@@ -258,6 +258,9 @@ |
||
| 258 | 258 | $this->importer = $importer; |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | + /** |
|
| 262 | + * @param ImportCommand $importCommand |
|
| 263 | + */ |
|
| 261 | 264 | private function importSf4TranslationFiles($importCommand) |
| 262 | 265 | { |
| 263 | 266 | $finder = $this->translationFileExplorer->find($this->kernel->getProjectDir(), $this->determineLocalesToImport($importCommand), 'translations'); |