@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher ElasticSearch Bundle. |
@@ -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 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Loads Alice fixtures. |
57 | 57 | * |
58 | - * @param array|string $paths Fixtures path(s) |
|
58 | + * @param string[] $paths Fixtures path(s) |
|
59 | 59 | * @param ObjectManager $manager Object manager |
60 | 60 | * @param array $parameters Extra parameters |
61 | 61 | */ |
@@ -112,6 +112,11 @@ discard block |
||
112 | 112 | return $this->getTenantPrefix(self::DEFAULT_TENANT_DOMAIN).'/'.ltrim($id, '/'); |
113 | 113 | } |
114 | 114 | |
115 | + /** |
|
116 | + * @param string $id |
|
117 | + * |
|
118 | + * @return null|\SWP\Bundle\ContentBundle\Model\RouteInterface |
|
119 | + */ |
|
115 | 120 | public function getRouteByName($id) |
116 | 121 | { |
117 | 122 | return $this->container->get('swp.provider.route')->getRouteByName($id); |
@@ -120,7 +125,7 @@ discard block |
||
120 | 125 | /** |
121 | 126 | * Gets current tenant's prefix. |
122 | 127 | * |
123 | - * @param string $subdomain |
|
128 | + * @param string $domain |
|
124 | 129 | * |
125 | 130 | * @return string |
126 | 131 | */ |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Webhook Component. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Common Component. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |