<?xml version="1.0"?>
<ruleset>
	<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
		<exclude name="Generic.Files.LineLength.TooLong" />
		<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamName" />
		<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
		<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
		<exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" />
		<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
		<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
		<exclude name="MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix" />
		<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
		<exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing" />
		<exclude name="Squiz.Scope.MemberVarScope.Missing" />
		<exclude name="Squiz.Scope.MethodScope.Missing" />
		<properties>
			<property name="allowedPrefixes" type="array" value="eg,wg" />
		</properties>
	</rule>
	<file>.</file>
	<arg name="extensions" value="php,php5,inc"/>
	<arg name="encoding" value="UTF-8"/>
</ruleset>

<?xml version="1.0"?>
<ruleset>
	<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
		<exclude name="Generic.Files.LineLength.TooLong" />
		<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamName" />
		<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
		<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
		<exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" />
		<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
		<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
		<exclude name="MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix" />
		<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
		<exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing" />
		<exclude name="Squiz.Scope.MemberVarScope.Missing" />
		<exclude name="Squiz.Scope.MethodScope.Missing" />
	</rule>
	<rule ref="MediaWiki.NamingConventions.ValidGlobalName">
		<properties>
			<property name="allowedPrefixes" type="array" value="eg,wg" />
		</properties>
	</rule>
	<file>.</file>
	<arg name="extensions" value="php,php5,inc"/>
	<arg name="encoding" value="UTF-8"/>
</ruleset>

Set allowedPrefixes PHPCS property only where needed
Set allowedPrefixes PHPCS property only where needed

Minor issue introduced via I8a1c12e. Before, the property was set on
the entire MediaWiki rule set, but it is only effective on a single
sniff.

Change-Id: I90b85ead8cef8478832c35fb00fd0d0f000060e9
