Completed
Pull Request — feature-responsive-images (#625)
by Arnaud
12:14 queued 06:18
created
Category
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/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/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/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/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.
src/Command/ShowContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $dataDir = (string) $this->getBuilder($output)->getConfig()->get('data.dir');
48 48
 
49 49
         // format output
50
-        $unicodeTreePrefix = function (RecursiveTreeIterator $tree) {
50
+        $unicodeTreePrefix = function(RecursiveTreeIterator $tree) {
51 51
             $prefixParts = [
52 52
                 RecursiveTreeIterator::PREFIX_LEFT         => ' ',
53 53
                 RecursiveTreeIterator::PREFIX_MID_HAS_NEXT => '│ ',
Please login to merge, or discard this patch.
src/Step/PagesGenerate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             call_user_func_array($this->builder->getMessageCb(), ['GENERATE', 'Generating pages']);
37 37
 
38 38
             $generators = (array) $this->builder->getConfig()->get('generators');
39
-            array_walk($generators, function ($generator, $priority) use ($generatorManager) {
39
+            array_walk($generators, function($generator, $priority) use ($generatorManager) {
40 40
                 if (!class_exists($generator)) {
41 41
                     $message = sprintf('Unable to load generator "%s"', $generator);
42 42
                     call_user_func_array($this->builder->getMessageCb(), ['GENERATE_ERROR', $message]);
Please login to merge, or discard this patch.