@@ -133,7 +133,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | }; |