* Utility function: Get a new file object for a file on disk but not actually in db.
*
* File must be in the path returned by getFilePath()
- * @param $name String File name
- * @param $type String MIME type [optional]
+ * @param string $name File name
+ * @param string $type MIME type [optional]
* @return UnregisteredLocalFile
*/
protected function dataFile( $name, $type = null ) {
// Autodetect by file extension for the lazy.
$magic = MimeMagic::singleton();
$parts = explode( $name, '.' );
- $type = $magic->guessTypesForExtension( $parts[count( $parts ) - 1] );
+ $type = $magic->guessTypesForExtension( $parts[count( $parts ) - 1] );
}
return new UnregisteredLocalFile( false, $this->repo,
"mwstore://localtesting/data/$name", $type );