X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilebackend%2FFSFileBackend.php;h=b99ffb62e9e25a9a6ba79e7eb5a90fda215d02f3;hb=a15fe7dd93cfcd9510b54b8481b4c3aa891ac380;hp=3f81a944b3d3646132c3907ae2caec87d9cef203;hpb=da7df94b4c2293df5e9abce5634046a3622463df;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filebackend/FSFileBackend.php b/includes/filebackend/FSFileBackend.php index 3f81a944b3..b99ffb62e9 100644 --- a/includes/filebackend/FSFileBackend.php +++ b/includes/filebackend/FSFileBackend.php @@ -213,7 +213,7 @@ class FSFileBackend extends FileBackendStore { wfEscapeShellArg( $this->cleanPathSlashes( $tempFile->getPath() ) ), wfEscapeShellArg( $this->cleanPathSlashes( $dest ) ) ) ); - $handler = function( $errors, Status $status, array $params, $cmd ) { + $handler = function ( $errors, Status $status, array $params, $cmd ) { if ( $errors !== '' && !( wfIsWindows() && $errors[0] === " " ) ) { $status->fatal( 'backend-fail-create', $params['dst'] ); trigger_error( "$cmd\n$errors", E_USER_WARNING ); // command output @@ -252,7 +252,7 @@ class FSFileBackend extends FileBackendStore { wfEscapeShellArg( $this->cleanPathSlashes( $params['src'] ) ), wfEscapeShellArg( $this->cleanPathSlashes( $dest ) ) ) ); - $handler = function( $errors, Status $status, array $params, $cmd ) { + $handler = function ( $errors, Status $status, array $params, $cmd ) { if ( $errors !== '' && !( wfIsWindows() && $errors[0] === " " ) ) { $status->fatal( 'backend-fail-store', $params['src'], $params['dst'] ); trigger_error( "$cmd\n$errors", E_USER_WARNING ); // command output @@ -310,7 +310,7 @@ class FSFileBackend extends FileBackendStore { wfEscapeShellArg( $this->cleanPathSlashes( $source ) ), wfEscapeShellArg( $this->cleanPathSlashes( $dest ) ) ) ); - $handler = function( $errors, Status $status, array $params, $cmd ) { + $handler = function ( $errors, Status $status, array $params, $cmd ) { if ( $errors !== '' && !( wfIsWindows() && $errors[0] === " " ) ) { $status->fatal( 'backend-fail-copy', $params['src'], $params['dst'] ); trigger_error( "$cmd\n$errors", E_USER_WARNING ); // command output @@ -370,7 +370,7 @@ class FSFileBackend extends FileBackendStore { wfEscapeShellArg( $this->cleanPathSlashes( $source ) ), wfEscapeShellArg( $this->cleanPathSlashes( $dest ) ) ) ); - $handler = function( $errors, Status $status, array $params, $cmd ) { + $handler = function ( $errors, Status $status, array $params, $cmd ) { if ( $errors !== '' && !( wfIsWindows() && $errors[0] === " " ) ) { $status->fatal( 'backend-fail-move', $params['src'], $params['dst'] ); trigger_error( "$cmd\n$errors", E_USER_WARNING ); // command output @@ -415,7 +415,7 @@ class FSFileBackend extends FileBackendStore { wfIsWindows() ? 'DEL' : 'unlink', wfEscapeShellArg( $this->cleanPathSlashes( $source ) ) ) ); - $handler = function( $errors, Status $status, array $params, $cmd ) { + $handler = function ( $errors, Status $status, array $params, $cmd ) { if ( $errors !== '' && !( wfIsWindows() && $errors[0] === " " ) ) { $status->fatal( 'backend-fail-delete', $params['src'] ); trigger_error( "$cmd\n$errors", E_USER_WARNING ); // command output @@ -792,7 +792,7 @@ class FSFileOpHandle extends FileBackendStoreOpHandle { /** * @param FSFileBackend $backend * @param array $params - * @param callback $call + * @param callable $call * @param string $cmd * @param int|null $chmodPath */ @@ -828,7 +828,7 @@ abstract class FSFileBackendList implements Iterator { protected $params = array(); /** - * @param string $dir file system directory + * @param string $dir File system directory * @param array $params */ public function __construct( $dir, array $params ) { @@ -849,7 +849,7 @@ abstract class FSFileBackendList implements Iterator { /** * Return an appropriate iterator object to wrap * - * @param string $dir file system directory + * @param string $dir File system directory * @return Iterator */ protected function initIterator( $dir ) {