@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | { |
| 65 | 65 | $filters = self::parseFilters($filters); |
| 66 | 66 | |
| 67 | - return array_filter($rows, function ($row) use ($filters) { |
|
| 67 | + return array_filter($rows, function($row) use ($filters) { |
|
| 68 | 68 | foreach ($filters as $columnKey => $filter) { |
| 69 | 69 | if (!isset($row[$columnKey])) { |
| 70 | 70 | continue; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | abs($columnNumber) |
| 111 | 111 | )) - 1; |
| 112 | 112 | |
| 113 | - usort($rowsSorted, function ($first, $second) use ($columnIndex, $sortOrder) { |
|
| 113 | + usort($rowsSorted, function($first, $second) use ($columnIndex, $sortOrder) { |
|
| 114 | 114 | return $first[$columnIndex] > $second[$columnIndex] ? $sortOrder : $sortOrder * -1; |
| 115 | 115 | }); |
| 116 | 116 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | if (isset($filters['age'])) { |
| 46 | 46 | $filters['age'] = ['type' => 'numeric', 'value' => $filters['age']]; |
| 47 | 47 | // TODO: move to getTorrentData() |
| 48 | - $torrentList = array_map(function ($torrent) { |
|
| 48 | + $torrentList = array_map(function($torrent) { |
|
| 49 | 49 | $torrent['age'] = TorrentUtils::getTorrentAgeInDays($torrent); |
| 50 | 50 | return $torrent; |
| 51 | 51 | }, $torrentList); |