Passed
Push — code-style-bis ( fa521b...34c958 )
by Arnaud
14:13 queued 11:26
created
src/Renderer/Twig/Extension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     public function filterBy(PagesCollection $pages, string $variable, string $value): CollectionInterface
137 137
     {
138
-        $filteredPages = $pages->filter(function (Page $page) use ($variable, $value) {
138
+        $filteredPages = $pages->filter(function(Page $page) use ($variable, $value) {
139 139
             $notVirtual = false;
140 140
             // not virtual only
141 141
             if (!$page->isVirtual()) {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function sortByWeight($collection): array
184 184
     {
185
-        $callback = function ($a, $b) {
185
+        $callback = function($a, $b) {
186 186
             if (!isset($a['weight'])) {
187 187
                 return 1;
188 188
             }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      */
216 216
     public function sortByDate($collection): array
217 217
     {
218
-        $callback = function ($a, $b) {
218
+        $callback = function($a, $b) {
219 219
             if (!isset($a['date'])) {
220 220
                 return -1;
221 221
             }
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
         }
575 575
         // save thumb file
576 576
         $img = Image::make($this->config->getStaticPath().'/'.$path);
577
-        $img->resize($size, null, function (\Intervention\Image\Constraint $constraint) {
577
+        $img->resize($size, null, function(\Intervention\Image\Constraint $constraint) {
578 578
             $constraint->aspectRatio();
579 579
             $constraint->upsize();
580 580
         });
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.