@@ -46,8 +46,8 @@ |
||
46 | 46 | $config->get('influxdb-database') |
47 | 47 | ); |
48 | 48 | |
49 | - $lastDays = (int)$input->getOption('days') ? (int)$input->getOption('days') : 0; |
|
50 | - $limit = (int)$input->getOption('limit') ? (int)$input->getOption('limit') : 0; |
|
49 | + $lastDays = (int) $input->getOption('days') ? (int) $input->getOption('days') : 0; |
|
50 | + $limit = (int) $input->getOption('limit') ? (int) $input->getOption('limit') : 0; |
|
51 | 51 | |
52 | 52 | $torrentList = $client->getTorrentData(); |
53 | 53 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | if (isset($filters['age'])) { |
48 | 48 | $filters['age'] = ['type' => 'numeric', 'value' => $filters['age']]; |
49 | 49 | // TODO: move to getTorrentData() |
50 | - $torrentList = array_map(function ($torrent) { |
|
50 | + $torrentList = array_map(function($torrent) { |
|
51 | 51 | $torrent['age'] = TorrentUtils::getTorrentAgeInDays($torrent); |
52 | 52 | return $torrent; |
53 | 53 | }, $torrentList); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | { |
115 | 115 | $filters = self::parseFilters($filters); |
116 | 116 | |
117 | - return array_filter($rows, function ($row) use ($filters) { |
|
117 | + return array_filter($rows, function($row) use ($filters) { |
|
118 | 118 | foreach ($filters as $columnKey => $filter) { |
119 | 119 | if (!isset($row[$columnKey])) { |
120 | 120 | continue; |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | abs($columnNumber) |
152 | 152 | )) - 1; |
153 | 153 | |
154 | - usort($rowsSorted, function ($first, $second) use ($columnIndex, $sortOrder) { |
|
154 | + usort($rowsSorted, function($first, $second) use ($columnIndex, $sortOrder) { |
|
155 | 155 | return $first[$columnIndex] > $second[$columnIndex] ? $sortOrder : $sortOrder * -1; |
156 | 156 | }); |
157 | 157 |