Break long lines and remove some spaces in QueryPage.php
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 8 Dec 2013 09:48:36 +0000 (10:48 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 8 Dec 2013 09:48:36 +0000 (10:48 +0100)
Change-Id: Ia4840580ada4b42bb70d38965f7955d175db9247

includes/QueryPage.php

index 51b5706..b8e4e60 100644 (file)
  */
 global $wgQueryPages; // not redundant
 $wgQueryPages = array(
-//         QueryPage subclass           Special page name         Limit (false for none, none for the default)
+//         QueryPage subclass, Special page name, Limit (false for none, none for the default)
 // ----------------------------------------------------------------------------
-       array( 'AncientPagesPage',              'Ancientpages'                  ),
-       array( 'BrokenRedirectsPage',           'BrokenRedirects'               ),
-       array( 'DeadendPagesPage',              'Deadendpages'                  ),
-       array( 'DoubleRedirectsPage',           'DoubleRedirects'               ),
-       array( 'FileDuplicateSearchPage',       'FileDuplicateSearch'           ),
-       array( 'LinkSearchPage',                'LinkSearch'                    ),
-       array( 'ListredirectsPage',             'Listredirects'                 ),
-       array( 'LonelyPagesPage',               'Lonelypages'                   ),
-       array( 'LongPagesPage',                 'Longpages'                     ),
-       array( 'MIMEsearchPage',                'MIMEsearch'                    ),
-       array( 'MostcategoriesPage',            'Mostcategories'                ),
-       array( 'MostimagesPage',                'Mostimages'                    ),
-       array( 'MostinterwikisPage',            'Mostinterwikis'                ),
-       array( 'MostlinkedCategoriesPage',      'Mostlinkedcategories'          ),
-       array( 'MostlinkedtemplatesPage',       'Mostlinkedtemplates'           ),
-       array( 'MostlinkedPage',                'Mostlinked'                    ),
-       array( 'MostrevisionsPage',             'Mostrevisions'                 ),
-       array( 'FewestrevisionsPage',           'Fewestrevisions'               ),
-       array( 'ShortPagesPage',                'Shortpages'                    ),
-       array( 'UncategorizedCategoriesPage',   'Uncategorizedcategories'       ),
-       array( 'UncategorizedPagesPage',        'Uncategorizedpages'            ),
-       array( 'UncategorizedImagesPage',       'Uncategorizedimages'           ),
-       array( 'UncategorizedTemplatesPage',    'Uncategorizedtemplates'        ),
-       array( 'UnusedCategoriesPage',          'Unusedcategories'              ),
-       array( 'UnusedimagesPage',              'Unusedimages'                  ),
-       array( 'WantedCategoriesPage',          'Wantedcategories'              ),
-       array( 'WantedFilesPage',               'Wantedfiles'                   ),
-       array( 'WantedPagesPage',               'Wantedpages'                   ),
-       array( 'WantedTemplatesPage',           'Wantedtemplates'               ),
-       array( 'UnwatchedPagesPage',            'Unwatchedpages'                ),
-       array( 'UnusedtemplatesPage',           'Unusedtemplates'               ),
-       array( 'WithoutInterwikiPage',          'Withoutinterwiki'              ),
+       array( 'AncientPagesPage', 'Ancientpages' ),
+       array( 'BrokenRedirectsPage', 'BrokenRedirects' ),
+       array( 'DeadendPagesPage', 'Deadendpages' ),
+       array( 'DoubleRedirectsPage', 'DoubleRedirects' ),
+       array( 'FileDuplicateSearchPage', 'FileDuplicateSearch' ),
+       array( 'LinkSearchPage', 'LinkSearch' ),
+       array( 'ListredirectsPage', 'Listredirects' ),
+       array( 'LonelyPagesPage', 'Lonelypages' ),
+       array( 'LongPagesPage', 'Longpages' ),
+       array( 'MIMEsearchPage', 'MIMEsearch' ),
+       array( 'MostcategoriesPage', 'Mostcategories' ),
+       array( 'MostimagesPage', 'Mostimages' ),
+       array( 'MostinterwikisPage', 'Mostinterwikis' ),
+       array( 'MostlinkedCategoriesPage', 'Mostlinkedcategories' ),
+       array( 'MostlinkedtemplatesPage', 'Mostlinkedtemplates' ),
+       array( 'MostlinkedPage', 'Mostlinked' ),
+       array( 'MostrevisionsPage', 'Mostrevisions' ),
+       array( 'FewestrevisionsPage', 'Fewestrevisions' ),
+       array( 'ShortPagesPage', 'Shortpages' ),
+       array( 'UncategorizedCategoriesPage', 'Uncategorizedcategories' ),
+       array( 'UncategorizedPagesPage', 'Uncategorizedpages' ),
+       array( 'UncategorizedImagesPage', 'Uncategorizedimages' ),
+       array( 'UncategorizedTemplatesPage', 'Uncategorizedtemplates' ),
+       array( 'UnusedCategoriesPage', 'Unusedcategories' ),
+       array( 'UnusedimagesPage', 'Unusedimages' ),
+       array( 'WantedCategoriesPage', 'Wantedcategories' ),
+       array( 'WantedFilesPage', 'Wantedfiles' ),
+       array( 'WantedPagesPage', 'Wantedpages' ),
+       array( 'WantedTemplatesPage', 'Wantedtemplates' ),
+       array( 'UnwatchedPagesPage', 'Unwatchedpages' ),
+       array( 'UnusedtemplatesPage', 'Unusedtemplates' ),
+       array( 'WithoutInterwikiPage', 'Withoutinterwiki' ),
 );
 wfRunHooks( 'wgQueryPages', array( &$wgQueryPages ) );
 
@@ -155,7 +155,8 @@ abstract class QueryPage extends SpecialPage {
         */
        function getSQL() {
                /* Implement getQueryInfo() instead */
-               throw new MWException( "Bug in a QueryPage: doesn't implement getQueryInfo() nor getQuery() properly" );
+               throw new MWException( "Bug in a QueryPage: doesn't implement getQueryInfo() nor "
+                       . "getQuery() properly" );
        }
 
        /**
@@ -512,8 +513,13 @@ abstract class QueryPage extends SpecialPage {
 
                                # If updates on this page have been disabled, let the user know
                                # that the data set won't be refreshed for now
-                               if ( is_array( $wgDisableQueryPageUpdate ) && in_array( $this->getName(), $wgDisableQueryPageUpdate ) ) {
-                                       $out->wrapWikiMsg( "<div class=\"mw-querypage-no-updates\">\n$1\n</div>", 'querypage-no-updates' );
+                               if ( is_array( $wgDisableQueryPageUpdate )
+                                       && in_array( $this->getName(), $wgDisableQueryPageUpdate )
+                               ) {
+                                       $out->wrapWikiMsg(
+                                               "<div class=\"mw-querypage-no-updates\">\n$1\n</div>",
+                                               'querypage-no-updates'
+                                       );
                                }
                        }
                }