@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | public function __construct() |
22 | 22 | { |
23 | 23 | $dotenv = new Dotenv(); |
24 | - $dotenv->load(__DIR__.'/.env'); |
|
24 | + $dotenv->load(__DIR__ . '/.env'); |
|
25 | 25 | $dir = getenv('CACHEDIR'); |
26 | 26 | |
27 | 27 | $this->cacheFile = $dir . '/cacheChannels.txt'; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function addChannel(string $url): bool |
39 | 39 | { |
40 | 40 | if (!in_array($url, file($this->cacheFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES), true)) { |
41 | - return (bool)$this->cache->fwrite($url . PHP_EOL); |
|
41 | + return (bool) $this->cache->fwrite($url . PHP_EOL); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | return false; |