Completed
Branch master (e187cb)
by Vladimir
05:35
created
src/CurlFtpAdapter.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * @param string $dirname directory name
257 257
      * @param Config $config
258 258
      *
259
-     * @return array|false
259
+     * @return boolean
260 260
      */
261 261
     public function createDir($dirname, Config $config)
262 262
     {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      *
299 299
      * @param string $path
300 300
      *
301
-     * @return array|false
301
+     * @return string
302 302
      */
303 303
     public function read($path)
304 304
     {
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
      *
347 347
      * @param string $path
348 348
      *
349
-     * @return array|false
349
+     * @return string
350 350
      */
351 351
     public function getMetadata($path)
352 352
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
             return false;
369 369
         }
370 370
 
371
-        $file = array_filter($listing, function ($item) use ($path) {
371
+        $file = array_filter($listing, function($item) use ($path) {
372 372
             return Normalizer::normalize($item['path']) === Normalizer::normalize($path);
373 373
         });
374 374
 
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
         curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'MDTM '.$path);
406 406
 
407 407
         $response = '';
408
-        curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function ($ch, $string) use (&$response) {
408
+        curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function($ch, $string) use (&$response) {
409 409
             $length = strlen($string);
410 410
             $response .= $string;
411 411
 
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
         curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'HELP');
529 529
 
530 530
         $response = '';
531
-        curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function ($ch, $string) use (&$response) {
531
+        curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function($ch, $string) use (&$response) {
532 532
             $length = strlen($string);
533 533
             $response .= $string;
534 534
 
Please login to merge, or discard this patch.