Completed
Push — symfony-console ( 4c1503...bab453 )
by Arnaud
08:10 queued 06:10
created
src/Collection/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected function searchItem(string $id): ?array
68 68
     {
69
-        return array_filter($this->items, function (ItemInterface $item) use ($id) {
69
+        return array_filter($this->items, function(ItemInterface $item) use ($id) {
70 70
             return $item->getId() == $id;
71 71
         });
72 72
     }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function usort(\Closure $callback = null): CollectionInterface
242 242
     {
243
-        $callback ? usort($this->items, $callback) : usort($this->items, function ($a, $b) {
243
+        $callback ? usort($this->items, $callback) : usort($this->items, function($a, $b) {
244 244
             if ($a == $b) {
245 245
                 return 0;
246 246
             }
Please login to merge, or discard this patch.
src/Step/MenusCreate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         $count = 0;
107 107
 
108 108
         $filteredPages = $this->builder->getPages()
109
-            ->filter(function (Page $page) {
109
+            ->filter(function(Page $page) {
110 110
                 if ($page->getVariable('menu')) {
111 111
                     return true;
112 112
                 }
Please login to merge, or discard this patch.
src/Step/ConfigImport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $themeConfigFile = $this->config->getThemesPath().'/'.$theme.'/'.self::THEME_CONFIG_FILE;
44 44
             if (Util::getFS()->exists($themeConfigFile)) {
45 45
                 set_error_handler(
46
-                    function ($severity, $message, $file, $line) {
46
+                    function($severity, $message, $file, $line) {
47 47
                         throw new \ErrorException($message, 0, $severity, $file, $line, null);
48 48
                     }
49 49
                 );
Please login to merge, or discard this patch.
src/Generator/GeneratorInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
      * Give Builder to object.
18 18
      *
19 19
      * @param \Cecil\Builder $builder
20
+     * @return void
20 21
      */
21 22
     public function __construct(\Cecil\Builder $builder);
22 23
 
Please login to merge, or discard this patch.
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.
config/routes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     [
75 75
         'name'    => 'serve',
76 76
         'route'   => '[<path>] [--drafts|-d] [--verbose|-v] [--quiet|-q]'
77
-                   .' [--open|-o] [--no-watcher|-nw] [--host=] [--port=]',
77
+                    .' [--open|-o] [--no-watcher|-nw] [--host=] [--port=]',
78 78
         'aliases' => [
79 79
             'd'  => 'drafts',
80 80
             'v'  => 'verbose',
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.