X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilebackend%2FFileBackendStore.php;h=631d9498fb4340c58f085201a81f4bdc14067e5b;hb=abfa0d7854db8d785afaedd5d3a64d89b78f3cf3;hp=ee9a49d382fcba190452a8893cba92534fdab370;hpb=109c37fd4afd411c627b44fd949da9d2712047a0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php index ee9a49d382..631d9498fb 100644 --- a/includes/filebackend/FileBackendStore.php +++ b/includes/filebackend/FileBackendStore.php @@ -69,7 +69,7 @@ abstract class FileBackendStore extends FileBackend { $this->mimeCallback = isset( $config['mimeCallback'] ) ? $config['mimeCallback'] : function ( $storagePath, $content, $fsPath ) { - // @TODO: handle the case of extension-less files using the contents + // @todo handle the case of extension-less files using the contents return StreamFile::contentTypeFromPath( $storagePath ) ?: 'unknown/unknown'; }; $this->memCache = new EmptyBagOStuff(); // disabled by default @@ -1696,7 +1696,7 @@ abstract class FileBackendStore extends FileBackend { if ( !$this->memCache->add( $key, $val, $ttl ) && !empty( $val['latest'] ) ) { $this->memCache->merge( $key, - function( BagOStuff $cache, $key, $cValue ) use ( $val ) { + function ( BagOStuff $cache, $key, $cValue ) use ( $val ) { return ( is_array( $cValue ) && empty( $cValue['latest'] ) ) ? $val // update the stat cache with the lastest info : false; // do nothing (cache is salted or some error happened)