Fix phpcs errors and warnings in includes/filerepo
authorKunal Mehta <legoktm@gmail.com>
Sun, 15 Mar 2015 02:04:52 +0000 (19:04 -0700)
committerKrinkle <krinklemail@gmail.com>
Sun, 15 Mar 2015 02:34:41 +0000 (02:34 +0000)
Change-Id: I8a2b437f9f393baf4ee6546d654d56845fcdd1b6

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;
                }