Fix 3 PHPCS warnings in includes/filerepo/
authorSiebrand Mazeland <siebrand@kitano.nl>
Mon, 28 Sep 2015 11:29:33 +0000 (13:29 +0200)
committerSiebrand Mazeland <siebrand@kitano.nl>
Mon, 28 Sep 2015 11:29:33 +0000 (13:29 +0200)
Change-Id: I00ea32f3a0666d225096d6c45710d0de67e2fe14

includes/filerepo/FileRepo.php
includes/filerepo/file/LocalFile.php

index 7370c5c..25e46d8 100644 (file)
@@ -753,7 +753,6 @@ class FileRepo {
                }
                if ( !is_null( $this->articleUrl ) ) {
                        # "http://example.com/wiki/$1"
-                       #
                        # We use "Image:" as the canonical namespace for
                        # compatibility across all MediaWiki versions.
                        return str_replace( '$1',
@@ -761,7 +760,6 @@ class FileRepo {
                }
                if ( !is_null( $this->scriptDirUrl ) ) {
                        # "http://example.com/w"
-                       #
                        # We use "Image:" as the canonical namespace for
                        # compatibility across all MediaWiki versions,
                        # and just sort of hope index.php is right. ;)
index 3225d78..6745f18 100644 (file)
@@ -2214,7 +2214,6 @@ class LocalFileDeleteBatch {
 
                // Lock the filearchive rows so that the files don't get deleted by a cleanup operation
                // We acquire this lock by running the inserts now, before the file operations.
-               //
                // This potentially has poor lock contention characteristics -- an alternative
                // scheme would be to insert stub filearchive entries with no fa_name and commit
                // them in a separate transaction, then run the file ops, then update the fa_name fields.