Completed
Push — feature-static-exclude-pattern ( c3cffe...3a2bf6 )
by Arnaud
05:38 queued 03:35
created
src/Step/PagesRender.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
         // collect published pages
55 55
         /* @var $page Page */
56
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
56
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
57 57
             return !empty($page->getVariable('published'));
58 58
         });
59 59
         $max = count($filteredPages);
Please login to merge, or discard this patch.
src/Renderer/Site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      */
91 91
     public function getPages()
92 92
     {
93
-        return $this->builder->getPages()->filter(function (Page $page) {
93
+        return $this->builder->getPages()->filter(function(Page $page) {
94 94
             return $page->getVariable('published');
95 95
         });
96 96
     }
Please login to merge, or discard this patch.
src/Collection/Page/PrefixSuffix.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param string $string
70 70
      * @param string $type
71 71
      *
72
-     * @return string[]|null
72
+     * @return string|null
73 73
      */
74 74
     protected static function get(string $string, string $type): ?string
75 75
     {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      *
93 93
      * @param string $string
94 94
      *
95
-     * @return string[]|null
95
+     * @return string|null
96 96
      */
97 97
     public static function getPrefix(string $string): ?string
98 98
     {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      *
105 105
      * @param string $string
106 106
      *
107
-     * @return string[]|null
107
+     * @return string|null
108 108
      */
109 109
     public static function getSuffix(string $string): ?string
110 110
     {
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
          * Apply environment variables.
79 79
          */
80 80
         $data = $this->getData();
81
-        $applyEnv = function ($array) use ($data) {
81
+        $applyEnv = function($array) use ($data) {
82 82
             $iterator = new \RecursiveIteratorIterator(
83 83
                 new \RecursiveArrayIterator($array),
84 84
                 \RecursiveIteratorIterator::SELF_FIRST
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
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         }
28 28
 
29 29
         // filter pages: home, sections and terms
30
-        $filteredPages = $this->pagesCollection->filter(function (Page $page) {
30
+        $filteredPages = $this->pagesCollection->filter(function(Page $page) {
31 31
             return in_array($page->getType(), [Type::HOMEPAGE, Type::SECTION, Type::TERM]);
32 32
         });
33 33
         /* @var $page Page */
Please login to merge, or discard this patch.
src/Command/ShowContent/FilenameRecursiveTreeIterator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 class FilenameRecursiveTreeIterator extends RecursiveTreeIterator
21 21
 {
22 22
     /**
23
-     * @return mixed
23
+     * @return string
24 24
      */
25 25
     public function current()
26 26
     {
Please login to merge, or discard this patch.
src/Command/Command.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
      */
180 180
     public function messageCallback(OutputInterface $output)
181 181
     {
182
-        return function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) {
182
+        return function($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) {
183 183
             if (strpos($code, '_PROGRESS') !== false) {
184 184
                 if ($output->isVerbose()) {
185 185
                     if ($itemsCount > 0) {
Please login to merge, or discard this patch.
src/Command/ShowContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $output->writeln(sprintf('<info>%s/</info>', $contentDir));
50 50
             $pages = $this->getPagesTree($output, $contentDir);
51 51
             if (!Plateform::isWindows()) {
52
-                $unicodeTreePrefix = function (RecursiveTreeIterator $tree) {
52
+                $unicodeTreePrefix = function(RecursiveTreeIterator $tree) {
53 53
                     $prefixParts = [
54 54
                         RecursiveTreeIterator::PREFIX_LEFT         => ' ',
55 55
                         RecursiveTreeIterator::PREFIX_MID_HAS_NEXT => '│ ',
Please login to merge, or discard this patch.
src/Step/DataLoad.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         foreach ($files as $file) {
68 68
             $count++;
69 69
             set_error_handler(
70
-                function ($severity, $message, $file, $line) {
70
+                function($severity, $message, $file, $line) {
71 71
                     throw new \ErrorException($message, 0, $severity, $file, $line, null);
72 72
                 }
73 73
             );
Please login to merge, or discard this patch.