* @ingroup FileBackend
*/
+use Wikimedia\AtEase\AtEase;
+
/**
* Class representing a non-directory file on the file system
*
* @return string|bool TS_MW timestamp or false on failure
*/
public function getTimestamp() {
- Wikimedia\suppressWarnings();
+ AtEase::suppressWarnings();
$timestamp = filemtime( $this->path );
- Wikimedia\restoreWarnings();
+ AtEase::restoreWarnings();
if ( $timestamp !== false ) {
$timestamp = wfTimestamp( TS_MW, $timestamp );
}
return $this->sha1Base36;
}
- Wikimedia\suppressWarnings();
+ AtEase::suppressWarnings();
$this->sha1Base36 = sha1_file( $this->path );
- Wikimedia\restoreWarnings();
+ AtEase::restoreWarnings();
if ( $this->sha1Base36 !== false ) {
$this->sha1Base36 = Wikimedia\base_convert( $this->sha1Base36, 16, 36, 31 );