@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function __invoke(callable $handler): Closure |
| 37 | 37 | { |
| 38 | - return function ( |
|
| 38 | + return function( |
|
| 39 | 39 | RequestInterface $request, |
| 40 | 40 | array $options |
| 41 | 41 | ) use ($handler) { |
@@ -53,11 +53,11 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | protected function sortChannels(array $channels) |
| 55 | 55 | { |
| 56 | - array_map(function ($channel) { |
|
| 56 | + array_map(function($channel) { |
|
| 57 | 57 | $channel->setChildren($this->sortChannels($channel->getChildren())); |
| 58 | 58 | }, $channels); |
| 59 | 59 | |
| 60 | - uasort($channels, function ($a, $b) { |
|
| 60 | + uasort($channels, function($a, $b) { |
|
| 61 | 61 | return $a->getName() > $b->getName(); |
| 62 | 62 | }); |
| 63 | 63 | |
@@ -298,7 +298,7 @@ |
||
| 298 | 298 | public function getStills(): array |
| 299 | 299 | { |
| 300 | 300 | //sorting preview's images from smallest to biggest |
| 301 | - usort($this->stills, function (array $item1, array $item2) { |
|
| 301 | + usort($this->stills, function(array $item1, array $item2) { |
|
| 302 | 302 | if (isset($item1['dimension']['height'], $item2['dimension']['height']) && $item1['dimension']['height'] != $item2['dimension']['height']) { |
| 303 | 303 | return ($item1['dimension']['height'] > $item2['dimension']['height']) ? 1 : -1; |
| 304 | 304 | } |