@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | if ($logFile && is_writable($logFile)) { |
| 33 | 33 | $message = $message . ($filename ? ' ' . $filename : '') . ($mime ? ' (' . $mime . ')' : ''); |
| 34 | - error_log($message. PHP_EOL, 3, $logFile); |
|
| 34 | + error_log($message . PHP_EOL, 3, $logFile); |
|
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
@@ -43,12 +43,12 @@ discard block |
||
| 43 | 43 | * @param StaticSiteCrawler $crawler (Warning: Pass by reference) |
| 44 | 44 | * @return array Returns an array of the config options in a format consumable by curl. |
| 45 | 45 | */ |
| 46 | - public function defineProxyOpts(bool $set, StaticSiteCrawler &$crawler = null): array |
|
| 46 | + public function defineProxyOpts(bool $set, StaticSiteCrawler & $crawler = null): array |
|
| 47 | 47 | { |
| 48 | 48 | if ($set && is_bool($set) && $set !== false) { |
| 49 | 49 | $proxyOpts = StaticSiteContentExtractor::config()->get('curl_opts_proxy'); |
| 50 | 50 | |
| 51 | - if (!$proxyOpts || !is_array($proxyOpts) || !count($proxyOpts) >0) { |
|
| 51 | + if (!$proxyOpts || !is_array($proxyOpts) || !count($proxyOpts) > 0) { |
|
| 52 | 52 | return []; |
| 53 | 53 | } |
| 54 | 54 | |