@@ -20,6 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $name |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function setName($name); |
| 25 | 26 | |
@@ -46,6 +46,9 @@ discard block |
||
| 46 | 46 | $manager->flush(); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $env |
|
| 51 | + */ |
|
| 49 | 52 | public function loadRoutes($env, ObjectManager $manager) |
| 50 | 53 | { |
| 51 | 54 | $routes = [ |
@@ -95,6 +98,10 @@ discard block |
||
| 95 | 98 | $manager->flush(); |
| 96 | 99 | } |
| 97 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string $env |
|
| 103 | + * @param ObjectManager $manager |
|
| 104 | + */ |
|
| 98 | 105 | public function setRoutesContent($env, $manager) |
| 99 | 106 | { |
| 100 | 107 | $routes = [ |
@@ -118,6 +125,10 @@ discard block |
||
| 118 | 125 | } |
| 119 | 126 | } |
| 120 | 127 | |
| 128 | + /** |
|
| 129 | + * @param string $env |
|
| 130 | + * @param ObjectManager $manager |
|
| 131 | + */ |
|
| 121 | 132 | public function loadArticles($env, $manager) |
| 122 | 133 | { |
| 123 | 134 | $articles = [ |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @param $filePath |
|
| 66 | + * @param string $filePath |
|
| 67 | 67 | * |
| 68 | 68 | * @return Response |
| 69 | 69 | */ |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | } |
| 296 | 296 | |
| 297 | 297 | /** |
| 298 | - * @param array $keys |
|
| 298 | + * @param string[] $keys |
|
| 299 | 299 | * |
| 300 | 300 | * @return string |
| 301 | 301 | */ |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | /** |
| 328 | 328 | * @param string $id |
| 329 | 329 | * |
| 330 | - * @return null|true |
|
| 330 | + * @return null|boolean |
|
| 331 | 331 | */ |
| 332 | 332 | public function restoreTemporaryUnset($id) |
| 333 | 333 | { |
@@ -90,6 +90,9 @@ |
||
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | + /** |
|
| 94 | + * @param ContainerInterface $container |
|
| 95 | + */ |
|
| 93 | 96 | private function handleForking($container) |
| 94 | 97 | { |
| 95 | 98 | if ($container instanceof RevisionAwareInterface && |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @param $queryBuilder |
|
| 77 | + * @param QueryBuilder $queryBuilder |
|
| 78 | 78 | * @param PaginationData $paginationData |
| 79 | 79 | * |
| 80 | 80 | * @return PaginationInterface |
@@ -41,6 +41,10 @@ discard block |
||
| 41 | 41 | $manager->flush(); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $env |
|
| 46 | + * @param ObjectManager $manager |
|
| 47 | + */ |
|
| 44 | 48 | public function loadRoutes($env, $manager) |
| 45 | 49 | { |
| 46 | 50 | $routes = [ |
@@ -195,6 +199,7 @@ discard block |
||
| 195 | 199 | /** |
| 196 | 200 | * Sets articles manually (not via Alice) for test env due to fatal error: |
| 197 | 201 | * Method PHPCRProxies\__CG__\Doctrine\ODM\PHPCR\Document\Generic::__toString() must not throw an exception. |
| 202 | + * @param string $env |
|
| 198 | 203 | */ |
| 199 | 204 | public function loadArticles($env, ObjectManager $manager) |
| 200 | 205 | { |
@@ -446,6 +451,10 @@ discard block |
||
| 446 | 451 | ]; |
| 447 | 452 | } |
| 448 | 453 | |
| 454 | + /** |
|
| 455 | + * @param string $fakeImage |
|
| 456 | + * @param string $targetFile |
|
| 457 | + */ |
|
| 449 | 458 | private function cropAndResizeImage($fakeImage, array $rendition, $targetFile) |
| 450 | 459 | { |
| 451 | 460 | $image = imagecreatefromjpeg($fakeImage); |
@@ -74,17 +74,17 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | return [ |
| 77 | - 'id' => $tenant->getId(), |
|
| 78 | - 'subdomain' => $tenant->getSubdomain(), |
|
| 79 | - 'domainName' => $tenant->getDomainName(), |
|
| 80 | - 'code' => $tenantCode, |
|
| 81 | - 'name' => $tenant->getName(), |
|
| 82 | - 'ampEnabled' => $tenant->isAmpEnabled(), |
|
| 77 | + 'id' => $tenant->getId(), |
|
| 78 | + 'subdomain' => $tenant->getSubdomain(), |
|
| 79 | + 'domainName' => $tenant->getDomainName(), |
|
| 80 | + 'code' => $tenantCode, |
|
| 81 | + 'name' => $tenant->getName(), |
|
| 82 | + 'ampEnabled' => $tenant->isAmpEnabled(), |
|
| 83 | 83 | '_links' => [ |
| 84 | 84 | 'self' => [ |
| 85 | 85 | 'href' => $this->router->generate('swp_api_core_get_tenant', ['code' => $tenantCode]), |
| 86 | 86 | ], |
| 87 | 87 | ], |
| 88 | - ]; |
|
| 88 | + ]; |
|
| 89 | 89 | } |
| 90 | 90 | } |