@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @return \Doctrine\ORM\EntityManager |
|
| 42 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 43 | 43 | */ |
| 44 | 44 | protected function getMockedEntityManager() |
| 45 | 45 | { |
@@ -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'); |
@@ -146,6 +146,9 @@ discard block |
||
| 146 | 146 | $listener = 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); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | private $shouldStop = false; |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * @param string $rootDir |
|
| 39 | + * @param string $projectDir |
|
| 40 | 40 | */ |
| 41 | 41 | public function __construct(string $projectDir) |
| 42 | 42 | { |
@@ -63,6 +63,10 @@ discard block |
||
| 63 | 63 | ); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param InputInterface $input |
|
| 68 | + * @param OutputInterface $output |
|
| 69 | + */ |
|
| 66 | 70 | private function initAssistant($input, $output) |
| 67 | 71 | { |
| 68 | 72 | if (is_null($this->assistant)) { |
@@ -161,6 +165,9 @@ discard block |
||
| 161 | 165 | $this->assistant->writeSection('PRO TIP: If you like to use the default frontend setup, run the buildUI.sh script or run the commands separate to compile the frontend assets. ', 'bg=blue;fg=white'); |
| 162 | 166 | } |
| 163 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $command |
|
| 170 | + */ |
|
| 164 | 171 | protected function executeCommand(OutputInterface $output, $command, array $options = []) |
| 165 | 172 | { |
| 166 | 173 | $options = array_merge( |
@@ -380,6 +380,9 @@ |
||
| 380 | 380 | return $request; |
| 381 | 381 | } |
| 382 | 382 | |
| 383 | + /** |
|
| 384 | + * @param string $uri |
|
| 385 | + */ |
|
| 383 | 386 | private function getRequestWithOverride($uri) |
| 384 | 387 | { |
| 385 | 388 | $session = new Session(new MockArraySessionStorage()); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * @param $request |
| 182 | - * @param null $nodeTranslation |
|
| 182 | + * @param NodeTranslation $nodeTranslation |
|
| 183 | 183 | * |
| 184 | 184 | * @return Container |
| 185 | 185 | */ |
@@ -243,6 +243,9 @@ discard block |
||
| 243 | 243 | return $request; |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | + /** |
|
| 247 | + * @param NodeTranslation $nodeTranslation |
|
| 248 | + */ |
|
| 246 | 249 | private function getEntityManager($nodeTranslation = null) |
| 247 | 250 | { |
| 248 | 251 | $em = $this->createMock('Doctrine\ORM\EntityManagerInterface'); |
@@ -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'); |
@@ -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 | */ |