@@ -47,8 +47,8 @@ |
||
47 | 47 | ]; |
48 | 48 | } |
49 | 49 | |
50 | - $cleanedIds = array_map(function ($torrentId) { |
|
51 | - return (int)$torrentId; |
|
50 | + $cleanedIds = array_map(function($torrentId) { |
|
51 | + return (int) $torrentId; |
|
52 | 52 | }, $ids); |
53 | 53 | |
54 | 54 | $this->createSession(); |
@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | $config->get('influxdb-database') |
53 | 53 | ); |
54 | 54 | |
55 | - $lastDays = (int)$input->getOption('days') ? (int)$input->getOption('days') : 0; |
|
56 | - $limit = (int)$input->getOption('limit') ? (int)$input->getOption('limit') : 0; |
|
55 | + $lastDays = (int) $input->getOption('days') ? (int) $input->getOption('days') : 0; |
|
56 | + $limit = (int) $input->getOption('limit') ? (int) $input->getOption('limit') : 0; |
|
57 | 57 | |
58 | 58 | $torrentList = $client->getTorrentData(); |
59 | 59 | |
60 | - $torrentList = array_map(function ($torrent) { |
|
60 | + $torrentList = array_map(function($torrent) { |
|
61 | 61 | $torrent['age'] = TorrentUtils::getTorrentAgeInDays($torrent); |
62 | 62 | return $torrent; |
63 | 63 | }, $torrentList); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | $transmissionHost = $config->overrideConfig($input, 'transmission-host'); |
71 | 71 | |
72 | - $torrentList = array_map(function ($torrent) use ($influxDbClient, $transmissionHost, $lastDays) { |
|
72 | + $torrentList = array_map(function($torrent) use ($influxDbClient, $transmissionHost, $lastDays) { |
|
73 | 73 | $torrent['uploaded'] = $influxDbClient->getTorrentSum( |
74 | 74 | $torrent, |
75 | 75 | 'uploaded_last', |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | private function removeTorrents(InputInterface $input, OutputInterface $output, array $rows) |
135 | 135 | { |
136 | - $limit = (int)$input->getOption('limit') ? (int)$input->getOption('limit') : 0; |
|
136 | + $limit = (int) $input->getOption('limit') ? (int) $input->getOption('limit') : 0; |
|
137 | 137 | |
138 | 138 | $rows = TableUtils::sortRowsByColumnNumber($rows, $input->getOption('sort')); |
139 | 139 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | $torrentList = $client->getTorrentData(); |
36 | 36 | |
37 | - $torrentList = array_map(function ($torrent) { |
|
37 | + $torrentList = array_map(function($torrent) { |
|
38 | 38 | $torrent['age'] = TorrentUtils::getTorrentAgeInDays($torrent); |
39 | 39 | return $torrent; |
40 | 40 | }, $torrentList); |