Completed
Push — master ( 6de68d...83f122 )
by Vladimir
02:45 queued 49s
created
src/CurlFtpAdapter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $connection = $this->getConnection();
134 134
 
135 135
         $result = $connection->exec([
136
-            CURLOPT_URL => $this->getUrl() . '/' . $path,
136
+            CURLOPT_URL => $this->getUrl().'/'.$path,
137 137
             CURLOPT_UPLOAD => 1,
138 138
             CURLOPT_INFILE => $resource,
139 139
         ]);    
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
             return false;
373 373
         }
374 374
 
375
-        $file = array_filter($listing, function ($item) use ($path) {
375
+        $file = array_filter($listing, function($item) use ($path) {
376 376
             return Normalizer::normalize($item['path']) === Normalizer::normalize($path);
377 377
         });
378 378
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      */
407 407
     public function getTimestamp($path)
408 408
     {
409
-        $response = $this->rawCommand('MDTM ' . $path);
409
+        $response = $this->rawCommand('MDTM '.$path);
410 410
         list($code, $time) = explode(' ', end($response), 2);
411 411
         if ($code !== '213') {
412 412
             return false;
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
         }
430 430
 
431 431
         $options = $recursive ? '-alnR' : '-aln';
432
-        $request = rtrim("LIST $options " . $this->normalizePath($directory));
432
+        $request = rtrim("LIST $options ".$this->normalizePath($directory));
433 433
 
434 434
         $connection = $this->getConnection();
435 435
         $result = $connection->exec([CURLOPT_CUSTOMREQUEST => $request]);
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
     protected function rawCommand($command)
514 514
     {
515 515
         $response = '';
516
-        $callback = function ($ch, $string) use (&$response) {
516
+        $callback = function($ch, $string) use (&$response) {
517 517
             $response .= $string;
518 518
             return strlen($string);
519 519
         };
Please login to merge, or discard this patch.