Passed
Push — master ( a30b85...c1874d )
by Arnaud
05:16
created
src/Generator/Section.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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') {
Please login to merge, or discard this patch.
src/Generator/VirtualPages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Generator/GeneratorInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Generator/Pagination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Generator/AbstractGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Generator/Alias.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Generator/ExternalBody.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Generator/GeneratorManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Generator/DefaultPages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.