@@ -86,7 +86,7 @@ |
||
86 | 86 | ); |
87 | 87 | } |
88 | 88 | |
89 | - $this->dryRun($input, $output, function () use ( |
|
89 | + $this->dryRun($input, $output, function() use ( |
|
90 | 90 | $input, |
91 | 91 | $output, |
92 | 92 | $weburgClient, |
@@ -85,12 +85,12 @@ discard block |
||
85 | 85 | $config->get('influxdb-database') |
86 | 86 | ); |
87 | 87 | |
88 | - $lastDays = (int)$input->getOption('days') ? (int)$input->getOption('days') : 0; |
|
89 | - $limit = (int)$input->getOption('limit') ? (int)$input->getOption('limit') : 0; |
|
88 | + $lastDays = (int) $input->getOption('days') ? (int) $input->getOption('days') : 0; |
|
89 | + $limit = (int) $input->getOption('limit') ? (int) $input->getOption('limit') : 0; |
|
90 | 90 | |
91 | 91 | $torrentList = $client->getTorrentData(); |
92 | 92 | |
93 | - $torrentList = array_map(function ($torrent) { |
|
93 | + $torrentList = array_map(function($torrent) { |
|
94 | 94 | $torrent['age'] = TorrentUtils::getTorrentAgeInDays($torrent); |
95 | 95 | return $torrent; |
96 | 96 | }, $torrentList); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | $transmissionHost = $config->get('transmission-host'); |
104 | 104 | |
105 | - $torrentList = array_map(function ($torrent) use ($influxDbClient, $transmissionHost, $lastDays) { |
|
105 | + $torrentList = array_map(function($torrent) use ($influxDbClient, $transmissionHost, $lastDays) { |
|
106 | 106 | $torrent['uploaded'] = $influxDbClient->getTorrentSum( |
107 | 107 | $torrent, |
108 | 108 | 'uploaded_last', |