@@ -66,7 +66,7 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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 | }  | 
                                                        
@@ -67,7 +67,7 @@  | 
                                                    ||
| 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 | );  | 
                                                        
@@ -56,7 +56,7 @@  | 
                                                    ||
| 56 | 56 | * Overrides configuration with environment variables.  | 
                                                        
| 57 | 57 | */  | 
                                                        
| 58 | 58 | $data = $this->getData();  | 
                                                        
| 59 | -        $applyEnv = function ($array) use ($data) { | 
                                                        |
| 59 | +        $applyEnv = function($array) use ($data) { | 
                                                        |
| 60 | 60 | $iterator = new \RecursiveIteratorIterator(  | 
                                                        
| 61 | 61 | new \RecursiveArrayIterator($array),  | 
                                                        
| 62 | 62 | \RecursiveIteratorIterator::SELF_FIRST  | 
                                                        
@@ -51,7 +51,7 @@  | 
                                                    ||
| 51 | 51 |          $dataDir = (string) $this->getBuilder()->getConfig()->get('data.dir'); | 
                                                        
| 52 | 52 | |
| 53 | 53 | // formating output  | 
                                                        
| 54 | -        $unicodeTreePrefix = function (RecursiveTreeIterator $tree) { | 
                                                        |
| 54 | +        $unicodeTreePrefix = function(RecursiveTreeIterator $tree) { | 
                                                        |
| 55 | 55 | $prefixParts = [  | 
                                                        
| 56 | 56 | RecursiveTreeIterator::PREFIX_LEFT => ' ',  | 
                                                        
| 57 | 57 | RecursiveTreeIterator::PREFIX_MID_HAS_NEXT => '│ ',  | 
                                                        
@@ -25,7 +25,7 @@  | 
                                                    ||
| 25 | 25 | */  | 
                                                        
| 26 | 26 | public function generate(): void  | 
                                                        
| 27 | 27 |      { | 
                                                        
| 28 | -        $filteredPages = $this->builder->getPages()->filter(function (Page $page) { | 
                                                        |
| 28 | +        $filteredPages = $this->builder->getPages()->filter(function(Page $page) { | 
                                                        |
| 29 | 29 |              return null !== $page->getVariable('external'); | 
                                                        
| 30 | 30 | });  | 
                                                        
| 31 | 31 | |
@@ -22,7 +22,7 @@  | 
                                                    ||
| 22 | 22 | */  | 
                                                        
| 23 | 23 | public function generate(): void  | 
                                                        
| 24 | 24 |      { | 
                                                        
| 25 | -        $filteredPages = $this->builder->getPages()->filter(function (Page $page) { | 
                                                        |
| 25 | +        $filteredPages = $this->builder->getPages()->filter(function(Page $page) { | 
                                                        |
| 26 | 26 |              return null !== $page->getVariable('redirect') | 
                                                        
| 27 | 27 |                  && $page->getVariable('layout') != 'redirect'; | 
                                                        
| 28 | 28 | });  | 
                                                        
@@ -53,7 +53,7 @@  | 
                                                    ||
| 53 | 53 | public function process()  | 
                                                        
| 54 | 54 |      { | 
                                                        
| 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('rendered')); | 
                                                        
| 58 | 58 | });  | 
                                                        
| 59 | 59 | $max = count($filteredPages);  | 
                                                        
@@ -83,7 +83,7 @@  | 
                                                    ||
| 83 | 83 | // creates an image object  | 
                                                        
| 84 | 84 |              try { | 
                                                        
| 85 | 85 | $img = ImageManager::make($source);  | 
                                                        
| 86 | -                $img->resize($this->size, null, function (\Intervention\Image\Constraint $constraint) { | 
                                                        |
| 86 | +                $img->resize($this->size, null, function(\Intervention\Image\Constraint $constraint) { | 
                                                        |
| 87 | 87 | $constraint->aspectRatio();  | 
                                                        
| 88 | 88 | $constraint->upsize();  | 
                                                        
| 89 | 89 | });  | 
                                                        
@@ -105,8 +105,7 @@  | 
                                                    ||
| 105 | 105 | $this->url = $value;  | 
                                                        
| 106 | 106 | break;  | 
                                                        
| 107 | 107 | // asset as string  | 
                                                        
| 108 | - case false !== strpos($value, '.') ? true : false:  | 
                                                        |
| 109 | - $this->url = $base.'/'.ltrim($value, '/');  | 
                                                        |
| 108 | + case false !== strpos($value, '.') ? true : false : $this->url = $base.'/'.ltrim($value, '/');  | 
                                                        |
| 110 | 109 | break;  | 
                                                        
| 111 | 110 | // Page ID as string  | 
                                                        
| 112 | 111 | case $this->builder->getPages()->has($pageId):  |