Completed
Push — dependabot/composer/twig/twig-... ( 7413b6 )
by
unknown
02:46
created
src/Step/CopyStatic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $staticDir = $this->builder->getConfig()->getStaticPath();
62 62
         if (Util::getFS()->exists($staticDir)) {
63 63
             $finder = new Finder();
64
-            $finder->files()->filter(function (\SplFileInfo $file) {
64
+            $finder->files()->filter(function(\SplFileInfo $file) {
65 65
                 return !(is_array($this->builder->getConfig()->get('static.exclude'))
66 66
                     && in_array($file->getBasename(), $this->builder->getConfig()->get('static.exclude')));
67 67
             })->in($staticDir);
Please login to merge, or discard this patch.
src/Collection/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      */
170 170
     public function usort(\Closure $callback = null): CollectionInterface
171 171
     {
172
-        $callback ? uasort($this->items, $callback) : uasort($this->items, function ($a, $b) {
172
+        $callback ? uasort($this->items, $callback) : uasort($this->items, function($a, $b) {
173 173
             if ($a == $b) {
174 174
                 return 0;
175 175
             }
Please login to merge, or discard this patch.
src/Collection/Taxonomy/Term.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
     public function sortByDate(): self
25 25
     {
26
-        return $this->usort(function ($a, $b) {
26
+        return $this->usort(function($a, $b) {
27 27
             if (!isset($a['date'])) {
28 28
                 return -1;
29 29
             }
Please login to merge, or discard this patch.
src/Collection/Page/Collection.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
     public function sortByDate(): self
25 25
     {
26
-        return $this->usort(function ($a, $b) {
26
+        return $this->usort(function($a, $b) {
27 27
             if (!isset($a['date'])) {
28 28
                 return -1;
29 29
             }
Please login to merge, or discard this patch.
src/Renderer/Twig/Extension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function filterBy(PageCollection $pages, string $variable, string $value): CollectionInterface
118 118
     {
119
-        $filteredPages = $pages->filter(function (Page $page) use ($variable, $value) {
119
+        $filteredPages = $pages->filter(function(Page $page) use ($variable, $value) {
120 120
             // dedicated getter?
121 121
             $method = 'get'.ucfirst($variable);
122 122
             if (method_exists($page, $method) && $page->$method() == $value) {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function sortByWeight($array)
160 160
     {
161
-        $callback = function ($a, $b) {
161
+        $callback = function($a, $b) {
162 162
             if (!isset($a['weight'])) {
163 163
                 return 1;
164 164
             }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function sortByDate($array)
193 193
     {
194
-        $callback = function ($a, $b) {
194
+        $callback = function($a, $b) {
195 195
             if (!isset($a['date'])) {
196 196
                 return -1;
197 197
             }
Please login to merge, or discard this patch.