@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Popstas\Transmission\Console\Command; |
| 4 | 4 | |
| 5 | -use Martial\Transmission\API\Argument\Torrent; |
|
| 6 | 5 | use Popstas\Transmission\Console\TransmissionClient; |
| 7 | 6 | use Symfony\Component\Console\Input\InputArgument; |
| 8 | 7 | use Symfony\Component\Console\Input\InputInterface; |
@@ -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', |