Completed
Push — master ( 07e153...ca5d76 )
by Stanislav
02:20
created
src/Command/StatsGet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Helpers/TorrentListUtils.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.