From b1d1a7f51a693aa1b066694698354b0601619107 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 14 Mar 2015 19:04:52 -0700 Subject: [PATCH] Fix phpcs errors and warnings in includes/filerepo Change-Id: I8a2b437f9f393baf4ee6546d654d56845fcdd1b6 --- includes/filerepo/FileRepoStatus.php | 3 ++- includes/filerepo/file/LocalFile.php | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/FileRepoStatus.php b/includes/filerepo/FileRepoStatus.php index daf26ba969..67080b6f83 100644 --- a/includes/filerepo/FileRepoStatus.php +++ b/includes/filerepo/FileRepoStatus.php @@ -26,4 +26,5 @@ * @ingroup FileRepo * @deprecated 1.25 */ -class FileRepoStatus extends Status {} +class FileRepoStatus extends Status { +} diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index e5ce22006b..be5ca7f954 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -1784,7 +1784,10 @@ class LocalFile extends File { // itself gets it from elsewhere. To avoid repeating the DB lookups in such a case, we // need to differentiate between null (uninitialized) and false (failed to load). if ( $this->descriptionTouched === null ) { - $cond = array( 'page_namespace' => $this->title->getNamespace(), 'page_title' => $this->title->getDBkey() ); + $cond = array( + 'page_namespace' => $this->title->getNamespace(), + 'page_title' => $this->title->getDBkey() + ); $touched = $this->repo->getSlaveDB()->selectField( 'page', 'page_touched', $cond, __METHOD__ ); $this->descriptionTouched = $touched ? wfTimestamp( TS_MW, $touched ) : false; } -- 2.20.1