Completed
Pull Request — master (#32)
by Nikhil
02:28
created
src/CurlRemoteFilesystem.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @return bool true
66 66
      */
67
-    public function copy($origin, $fileUrl, $fileName, $progress=true, $options=array())
67
+    public function copy($origin, $fileUrl, $fileName, $progress = true, $options = array())
68 68
     {
69 69
         $that = $this; // for PHP5.3
70 70
 
71
-        return $this->fetch($origin, $fileUrl, $progress, $options, function ($ch, $request) use ($that, $fileName) {
71
+        return $this->fetch($origin, $fileUrl, $progress, $options, function($ch, $request) use ($that, $fileName) {
72 72
             $outputFile = new OutputFile($fileName);
73 73
             curl_setopt($ch, CURLOPT_RETURNTRANSFER, false);
74 74
             curl_setopt($ch, CURLOPT_FILE, $outputFile->getPointer());
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @return bool|string The content
97 97
      */
98
-    public function getContents($origin, $fileUrl, $progress=true, $options=array())
98
+    public function getContents($origin, $fileUrl, $progress = true, $options = array())
99 99
     {
100 100
         $that = $this; // for PHP5.3
101 101
 
102
-        return $this->fetch($origin, $fileUrl, $progress, $options, function ($ch, $request) use ($that) {
102
+        return $this->fetch($origin, $fileUrl, $progress, $options, function($ch, $request) use ($that) {
103 103
             // This order is important.
104 104
             curl_setopt($ch, CURLOPT_FILE, STDOUT);
105 105
             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@@ -154,16 +154,16 @@  discard block
 block discarded – undo
154 154
             if ($this->pluginConfig['insecure']) {
155 155
                 $opts[CURLOPT_SSL_VERIFYPEER] = false;
156 156
             }
157
-            if (! empty($pluginConfig['userAgent'])) {
157
+            if (!empty($pluginConfig['userAgent'])) {
158 158
                 $opts[CURLOPT_USERAGENT] = $pluginConfig['userAgent'];
159 159
             }
160
-            if (! empty($pluginConfig['capath'])) {
160
+            if (!empty($pluginConfig['capath'])) {
161 161
                 $opts[CURLOPT_CAPATH] = $pluginConfig['capath'];
162 162
             }
163 163
 
164 164
             curl_setopt_array($ch, $opts);
165 165
 
166
-            list($execStatus, ) = $exec($ch, $request);
166
+            list($execStatus,) = $exec($ch, $request);
167 167
         } while ($this->_retry);
168 168
 
169 169
         if ($progress) {
@@ -227,9 +227,9 @@  discard block
 block discarded – undo
227 227
     {
228 228
         // @codeCoverageIgnoreStart
229 229
         if (PHP_VERSION_ID >= 50500) {
230
-            list(, $downBytesMax, $downBytes, , ) = func_get_args();
230
+            list(, $downBytesMax, $downBytes,,) = func_get_args();
231 231
         } else {
232
-            list($downBytesMax, $downBytes, , ) = func_get_args();
232
+            list($downBytesMax, $downBytes,,) = func_get_args();
233 233
         }
234 234
         // @codeCoverageIgnoreEnd
235 235
 
Please login to merge, or discard this patch.
src/ParallelDownloader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,10 +104,10 @@
 block discarded – undo
104 104
                 if ($pluginConfig['insecure']) {
105 105
                     $opts[CURLOPT_SSL_VERIFYPEER] = false;
106 106
                 }
107
-                if (! empty($pluginConfig['userAgent'])) {
107
+                if (!empty($pluginConfig['userAgent'])) {
108 108
                     $opts[CURLOPT_USERAGENT] = $pluginConfig['userAgent'];
109 109
                 }
110
-                if (! empty($pluginConfig['capath'])) {
110
+                if (!empty($pluginConfig['capath'])) {
111 111
                     $opts[CURLOPT_CAPATH] = $pluginConfig['capath'];
112 112
                 }
113 113
                 unset($opts[CURLOPT_ENCODING]);
Please login to merge, or discard this patch.