From b2ce4a9fb29b3c54cffc4820fc7444ffe42c0037 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 8 Feb 2013 02:28:08 -0800 Subject: [PATCH] phpcs: Pass DefaultSettings.php See: mediawiki/tools/codesniffer.git:/MediaWiki/rules.xml Also fixed typo '=>' in comment that should be '='. Change-Id: Icf2579deda0c77a6794a5c40a7200fcc07fb9dab --- includes/DefaultSettings.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 9439df2137..fc8168df83 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -122,8 +122,7 @@ $wgScriptPath = '/wiki'; * you have customized it, having this incorrectly set to true can cause * redirect loops when "pretty URLs" are used. */ -$wgUsePathInfo = - ( strpos( PHP_SAPI, 'cgi' ) === false ) && +$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) && ( strpos( PHP_SAPI, 'apache2filter' ) === false ) && ( strpos( PHP_SAPI, 'isapi' ) === false ); @@ -1003,7 +1002,7 @@ $wgAntivirusSetup = array( #setup for clamav 'clamav' => array( - 'command' => "clamscan --no-summary ", + 'command' => 'clamscan --no-summary ', 'codemap' => array( "0" => AV_NO_VIRUS, # no virus "1" => AV_VIRUS_FOUND, # virus found @@ -1022,13 +1021,13 @@ $wgAntivirusRequired = true; $wgVerifyMimeType = true; /** Sets the mime type definition file to use by MimeMagic.php. */ -$wgMimeTypeFile = "includes/mime.types"; -#$wgMimeTypeFile= "/etc/mime.types"; -#$wgMimeTypeFile= null; #use built-in defaults only. +$wgMimeTypeFile = 'includes/mime.types'; +#$wgMimeTypeFile = '/etc/mime.types'; +#$wgMimeTypeFile = null; #use built-in defaults only. /** Sets the mime type info file to use by MimeMagic.php. */ -$wgMimeInfoFile = "includes/mime.info"; -#$wgMimeInfoFile= null; #use built-in defaults only. +$wgMimeInfoFile = 'includes/mime.info'; +#$wgMimeInfoFile = null; #use built-in defaults only. /** * Switch for loading the FileInfo extension by PECL at runtime. @@ -5662,7 +5661,7 @@ $wgLogRestrictions = array( * * @par Example: * @code - * $wgFilterLogTypes => array( + * $wgFilterLogTypes = array( * 'move' => true, * 'import' => false, * ); -- 2.20.1