@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * {@inheritdoc} |
| 28 | 28 | */ |
| 29 | - public function generate(): void |
|
| 29 | + public function generate (): void |
|
| 30 | 30 | { |
| 31 | 31 | $sections = []; |
| 32 | 32 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | /** |
| 126 | 126 | * Adds navigation (next and prev) to section sub pages. |
| 127 | 127 | */ |
| 128 | - protected function addNavigationLinks(PagesCollection $pages, string $sort = null, $circular = false): void |
|
| 128 | + protected function addNavigationLinks (PagesCollection $pages, string $sort = null, $circular = false): void |
|
| 129 | 129 | { |
| 130 | 130 | $pagesAsArray = $pages->toArray(); |
| 131 | 131 | if ($sort === null || $sort == 'date' || $sort == 'updated') { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | /** |
| 28 | 28 | * {@inheritdoc} |
| 29 | 29 | */ |
| 30 | - public function generate(): void |
|
| 30 | + public function generate (): void |
|
| 31 | 31 | { |
| 32 | 32 | $pagesConfig = $this->collectPagesFromConfig($this->configKey); |
| 33 | 33 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * Collects virtual pages configuration. |
| 72 | 72 | */ |
| 73 | - private function collectPagesFromConfig(string $configKey): ?array |
|
| 73 | + private function collectPagesFromConfig (string $configKey): ?array |
|
| 74 | 74 | { |
| 75 | 75 | return $this->config->get($configKey); |
| 76 | 76 | } |
@@ -21,12 +21,12 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Gives the Builder to the object. |
| 23 | 23 | */ |
| 24 | - public function __construct(\Cecil\Builder $builder); |
|
| 24 | + public function __construct (\Cecil\Builder $builder); |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Creates pages and adds it to collection. |
| 28 | 28 | * |
| 29 | 29 | * Use `$this->generatedPages->add($page);` |
| 30 | 30 | */ |
| 31 | - public function generate(): void; |
|
| 31 | + public function generate (): void; |
|
| 32 | 32 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * {@inheritdoc} |
| 27 | 27 | */ |
| 28 | - public function generate(): void |
|
| 28 | + public function generate (): void |
|
| 29 | 29 | { |
| 30 | 30 | if (false === (bool) $this->config->get('pagination.enabled')) { |
| 31 | 31 | return; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * {@inheritdoc} |
| 36 | 36 | */ |
| 37 | - public function __construct(Builder $builder) |
|
| 37 | + public function __construct (Builder $builder) |
|
| 38 | 38 | { |
| 39 | 39 | $this->builder = $builder; |
| 40 | 40 | $this->config = $builder->getConfig(); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * Run the `generate` method of the generator and returns pages. |
| 47 | 47 | */ |
| 48 | - public function runGenerate(): PagesCollection |
|
| 48 | + public function runGenerate (): PagesCollection |
|
| 49 | 49 | { |
| 50 | 50 | $this->generate(); |
| 51 | 51 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | /** |
| 24 | 24 | * {@inheritdoc} |
| 25 | 25 | */ |
| 26 | - public function generate(): void |
|
| 26 | + public function generate (): void |
|
| 27 | 27 | { |
| 28 | 28 | /** @var Page $page */ |
| 29 | 29 | foreach ($this->builder->getPages() as $page) { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * Returns aliases array. |
| 57 | 57 | */ |
| 58 | - protected function getPageAliases(Page $page): array |
|
| 58 | + protected function getPageAliases (Page $page): array |
|
| 59 | 59 | { |
| 60 | 60 | $aliases = []; |
| 61 | 61 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * {@inheritdoc} |
| 28 | 28 | */ |
| 29 | - public function generate(): void |
|
| 29 | + public function generate (): void |
|
| 30 | 30 | { |
| 31 | 31 | $filteredPages = $this->builder->getPages()->filter(function (Page $page) { |
| 32 | 32 | return null !== $page->getVariable('external'); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @return void |
| 29 | 29 | */ |
| 30 | - public function __construct(Builder $builder) |
|
| 30 | + public function __construct (Builder $builder) |
|
| 31 | 31 | { |
| 32 | 32 | $this->builder = $builder; |
| 33 | 33 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * Adds a generator. |
| 37 | 37 | */ |
| 38 | - public function addGenerator(GeneratorInterface $generator, int $priority = 1): self |
|
| 38 | + public function addGenerator (GeneratorInterface $generator, int $priority = 1): self |
|
| 39 | 39 | { |
| 40 | 40 | $this->insert($generator, $priority); |
| 41 | 41 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * {@inheritdoc} |
| 47 | 47 | */ |
| 48 | - public function compare($priority1, $priority2): int |
|
| 48 | + public function compare ($priority1, $priority2): int |
|
| 49 | 49 | { |
| 50 | 50 | if ($priority1 === $priority2) { |
| 51 | 51 | return 0; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * Process each generator. |
| 59 | 59 | */ |
| 60 | - public function process(): PagesCollection |
|
| 60 | + public function process (): PagesCollection |
|
| 61 | 61 | { |
| 62 | 62 | /** @var PagesCollection $pagesCollection */ |
| 63 | 63 | $pagesCollection = $this->builder->getPages(); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * {@inheritdoc} |
| 25 | 25 | */ |
| 26 | - public function generate(): void |
|
| 26 | + public function generate (): void |
|
| 27 | 27 | { |
| 28 | 28 | parent::generate(); |
| 29 | 29 | } |