X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilebackend%2FFileOp.php;h=66d879433a7738afaadc1eafbaec909da82dadbf;hb=a0dcdb49aad85293b0dc737b4e10b08b46ae415d;hp=538d9b471b3d05a1982fd178629996c23bbb464b;hpb=4856e2cba138d14a4354f95b5fcff05d63b00228;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filebackend/FileOp.php b/includes/filebackend/FileOp.php index 538d9b471b..66d879433a 100644 --- a/includes/filebackend/FileOp.php +++ b/includes/filebackend/FileOp.php @@ -74,7 +74,7 @@ abstract class FileOp { * * @param FileBackendStore $backend * @param array $params - * @throws MWException + * @throws FileBackendError */ final public function __construct( FileBackendStore $backend, array $params ) { $this->backend = $backend; @@ -83,7 +83,7 @@ abstract class FileOp { if ( isset( $params[$name] ) ) { $this->params[$name] = $params[$name]; } else { - throw new MWException( "File operation missing parameter '$name'." ); + throw new FileBackendError( "File operation missing parameter '$name'." ); } } foreach ( $optional as $name ) { @@ -178,7 +178,7 @@ abstract class FileOp { * Check if this operation changes files listed in $paths * * @param array $deps Prior path reads/writes; format of FileOp::newPredicates() - * @return boolean + * @return bool */ final public function dependsOn( array $deps ) { foreach ( $this->storagePathsChanged() as $path ) { @@ -645,7 +645,7 @@ class CopyFileOp extends FileOp { $status = Status::newGood(); // nothing to do } elseif ( $this->params['src'] === $this->params['dst'] ) { // Just update the destination file headers - $headers = $this->getParam( 'headers' ) ? : array(); + $headers = $this->getParam( 'headers' ) ?: array(); $status = $this->backend->describeInternal( $this->setFlags( array( 'src' => $this->params['dst'], 'headers' => $headers ) ) );