@@ -63,6 +63,10 @@ discard block |
||
63 | 63 | $this->logger = $logger; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $level |
|
68 | + * @param string|null $message |
|
69 | + */ |
|
66 | 70 | private function log($level, $message, $context = []) |
67 | 71 | { |
68 | 72 | if (!is_null($this->logger)) { |
@@ -129,6 +133,9 @@ discard block |
||
129 | 133 | ); |
130 | 134 | } |
131 | 135 | |
136 | + /** |
|
137 | + * @param string $transmissionHost |
|
138 | + */ |
|
132 | 139 | public function getLastPoint(array $torrent, $transmissionHost) |
133 | 140 | { |
134 | 141 | $torrentName = $torrent[Torrent\Get::NAME]; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | } |
66 | 66 | |
67 | - $this->dryRun($input, $output, function () use ($influxDbClient, $points) { |
|
67 | + $this->dryRun($input, $output, function() use ($influxDbClient, $points) { |
|
68 | 68 | $influxDbClient->writePoints($points); |
69 | 69 | }, 'dry-run, don\'t really send points'); |
70 | 70 | } catch (\Exception $e) { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | } |
57 | 57 | } |
58 | 58 | |
59 | - $this->dryRun($input, $output, function () use ($config, $torrentList, $client, $input, $output) { |
|
59 | + $this->dryRun($input, $output, function() use ($config, $torrentList, $client, $input, $output) { |
|
60 | 60 | $influxDbClient = $this->getApplication()->getInfluxDbClient( |
61 | 61 | $config->get('influxdb-host'), |
62 | 62 | $config->get('influxdb-port'), |
@@ -34,7 +34,7 @@ |
||
34 | 34 | return 0; |
35 | 35 | } |
36 | 36 | |
37 | - $this->dryRun($input, $output, function () use ($client, $obsoleteList, $config, $input, $output) { |
|
37 | + $this->dryRun($input, $output, function() use ($client, $obsoleteList, $config, $input, $output) { |
|
38 | 38 | $influxDbClient = $this->getApplication()->getInfluxDbClient( |
39 | 39 | $config->get('influxdb-host'), |
40 | 40 | $config->get('influxdb-port'), |