@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * @param string $domain |
| 65 | 65 | * @return Page[] |
| 66 | 66 | */ |
| 67 | - public function findPagesByTag(string $tag, ?string $domain): array |
|
| 67 | + public function findPagesByTag(string $tag, ?string $domain) : array |
|
| 68 | 68 | { |
| 69 | 69 | $pages = $this->getImportedPagesFromCache(); |
| 70 | 70 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | /** |
| 58 | 58 | * @return Page[] |
| 59 | 59 | */ |
| 60 | - public function getCmsPagesByTag(string $tag, ?string $domain = null, string $orderBy = 'date', string $direction = 'desc', int $limit = null, int $page = null): array |
|
| 60 | + public function getCmsPagesByTag(string $tag, ?string $domain = null, string $orderBy = 'date', string $direction = 'desc', int $limit = null, int $page = null) : array |
|
| 61 | 61 | { |
| 62 | 62 | if (!in_array($direction, ['asc', 'desc'])) { |
| 63 | 63 | return ["Error while using getCmsPagesByTag. The third parameter (direction) must be either 'asc' or 'desc'."]; |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * @param CmsPageExtension $cmsPageExtension |
| 111 | 111 | * @return \Twig_ExtensionInterface[] |
| 112 | 112 | */ |
| 113 | - public static function twig_extensions(?array $extensions, CmsPageExtension $cmsPageExtension): array |
|
| 113 | + public static function twig_extensions(? array $extensions, CmsPageExtension $cmsPageExtension) : array |
|
| 114 | 114 | { |
| 115 | 115 | $extensions[] = $cmsPageExtension; |
| 116 | 116 | return $extensions; |