@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $l_Handles = []; |
| 35 | 35 | foreach ($p_URLs as $l_URL) |
| 36 | 36 | { |
| 37 | - $l_CURL = curl_init($this->apiUrl.$apiUrlExt.$l_URL); |
|
| 37 | + $l_CURL = curl_init($this->apiUrl . $apiUrlExt . $l_URL); |
|
| 38 | 38 | curl_setopt($l_CURL, CURLOPT_USERAGENT, $this->userAgent); |
| 39 | 39 | curl_setopt($l_CURL, CURLOPT_RETURNTRANSFER, true); |
| 40 | 40 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | mkdir($targetDir, 0777, true); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - if(substr($targetDir, -1) !== "/") |
|
| 90 | + if (substr($targetDir, -1) !== "/") |
|
| 91 | 91 | $targetDir .= "/"; |
| 92 | 92 | |
| 93 | 93 | //The path & filename to save to. |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | $result = curl_exec($ch); |
| 103 | 103 | |
| 104 | - if(curl_errno($ch) === 0) { |
|
| 104 | + if (curl_errno($ch) === 0) { |
|
| 105 | 105 | $response->pushDownloadMapHash($hash); |
| 106 | 106 | echo "Ok "; |
| 107 | 107 | } else { |