Merge "Fix phpcs errors and warnings in includes/filerepo"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 15 Mar 2015 02:42:13 +0000 (02:42 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 15 Mar 2015 02:42:13 +0000 (02:42 +0000)
includes/filerepo/FileRepoStatus.php
includes/filerepo/file/LocalFile.php

index daf26ba..67080b6 100644 (file)
@@ -26,4 +26,5 @@
  * @ingroup FileRepo
  * @deprecated 1.25
  */
-class FileRepoStatus extends Status {}
+class FileRepoStatus extends Status {
+}
index e5ce220..be5ca7f 100644 (file)
@@ -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;
                }