@@ -105,6 +105,9 @@ |
||
| 105 | 105 | return $this->weburgClient; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | + /** |
|
| 109 | + * @param WeburgClient $weburgClient |
|
| 110 | + */ |
|
| 108 | 111 | public function setWeburgClient($weburgClient) |
| 109 | 112 | { |
| 110 | 113 | $this->weburgClient = $weburgClient; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | return 1; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - $blackTorrentList = array_filter($torrentList, function ($torrent) use ($blacklist) { |
|
| 40 | + $blackTorrentList = array_filter($torrentList, function($torrent) use ($blacklist) { |
|
| 41 | 41 | return in_array($torrent[Torrent\Get::NAME], $blacklist); |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | 123 | * @param InputInterface $input |
| 124 | - * @return InfluxDB\Database|bool |
|
| 124 | + * @return InfluxDB\Database |
|
| 125 | 125 | * @throws InfluxDB\Database\Exception |
| 126 | 126 | */ |
| 127 | 127 | private function getDatabase(InputInterface $input) |
@@ -136,7 +136,6 @@ |
||
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | return $torrentInList[Torrent\Get::TOTAL_SIZE] < $torrentNotInList[Torrent\Get::TOTAL_SIZE] ? |
| 139 | - $torrentInList : |
|
| 140 | - $torrentNotInList; |
|
| 139 | + $torrentInList : $torrentNotInList; |
|
| 141 | 140 | } |
| 142 | 141 | } |