@@ -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 = [ |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * @param $filePath |
|
| 64 | + * @param string $filePath |
|
| 65 | 65 | * |
| 66 | 66 | * @return Response |
| 67 | 67 | */ |
@@ -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 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @param UserInterface $user |
| 39 | 39 | * @param string|null $apiKeyValue |
| 40 | 40 | * |
| 41 | - * @return mixed |
|
| 41 | + * @return ApiKeyInterface |
|
| 42 | 42 | */ |
| 43 | 43 | public function create($user, $apiKeyValue = null) |
| 44 | 44 | { |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | /** |
| 78 | 78 | * @param array $containerData |
| 79 | 79 | * |
| 80 | - * @return mixed |
|
| 80 | + * @return null|\SWP\Component\TemplatesSystem\Gimme\Model\ContainerInterface |
|
| 81 | 81 | * |
| 82 | 82 | * @throws \Exception |
| 83 | 83 | */ |
@@ -21,6 +21,7 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @param string $name |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function setName($name); |
| 26 | 27 | |
@@ -61,6 +62,7 @@ discard block |
||
| 61 | 62 | |
| 62 | 63 | /** |
| 63 | 64 | * @param array $settings |
| 65 | + * @return void |
|
| 64 | 66 | */ |
| 65 | 67 | public function setSettings(array $settings): void; |
| 66 | 68 | |
@@ -71,6 +73,7 @@ discard block |
||
| 71 | 73 | |
| 72 | 74 | /** |
| 73 | 75 | * @param \SplFileInfo|null $file |
| 76 | + * @return void |
|
| 74 | 77 | */ |
| 75 | 78 | public function setLogo(?\SplFileInfo $file): void; |
| 76 | 79 | |
@@ -86,6 +89,7 @@ discard block |
||
| 86 | 89 | |
| 87 | 90 | /** |
| 88 | 91 | * @param string|null $path |
| 92 | + * @return void |
|
| 89 | 93 | */ |
| 90 | 94 | public function setLogoPath(?string $path): void; |
| 91 | 95 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public const TEMPLATE_NAME = 'template_name'; |
| 24 | 24 | |
| 25 | 25 | protected static $expectedParameters = [ |
| 26 | - self::TEMPLATE_NAME => [ |
|
| 26 | + self::TEMPLATE_NAME => [ |
|
| 27 | 27 | 'type' => 'string', |
| 28 | 28 | ], |
| 29 | 29 | ]; |
@@ -129,7 +129,6 @@ |
||
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | 131 | * @param string $name |
| 132 | - * @param bool $disabled |
|
| 133 | 132 | * |
| 134 | 133 | * @return OrganizationInterface |
| 135 | 134 | */ |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | * @param TenantContextInterface $tenantContext |
| 77 | 77 | * @param ReloadableThemeRepositoryInterface $themeRepository |
| 78 | 78 | * @param TenantAwareThemeContextInterface $themeContext |
| 79 | - * @param TenantRepositoryInterface $tenantRepositorys |
|
| 79 | + * @param TenantRepositoryInterface $tenantRepository |
|
| 80 | 80 | */ |
| 81 | 81 | public function __construct( |
| 82 | 82 | ThemeInstallerInterface $themeInstaller, |