X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Ffilebackend%2FFSFileBackend.php;h=b99ffb62e9e25a9a6ba79e7eb5a90fda215d02f3;hb=d98fd55e11dc6ab9f04d4810985b04ca39dfc3dd;hp=e7c1f6f81f27de3a60e1b9be578d6978d19fb02d;hpb=731346a7cb686ffe9a0e2f8a1e1fb3f5e8431a16;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filebackend/FSFileBackend.php b/includes/filebackend/FSFileBackend.php index e7c1f6f81f..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 @@ -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 ) {