Completed
Push — master ( 84c3a4...ac84ef )
by Stanislav
02:14
created
src/TransmissionClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Command/StatsGet.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Command/TorrentList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.