Add method scope visibility

Change-Id: I116b91653c01ace9fa0d9a49f2fa43375ef2924d
This commit is contained in:
Umherirrender 2018-11-01 19:50:46 +01:00
parent 9f7b99dd98
commit 99659b32c2
2 changed files with 2 additions and 3 deletions

View file

@ -2,7 +2,6 @@
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" />
<exclude name="Squiz.Scope.MethodScope.Missing" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
</rule>

View file

@ -18,14 +18,14 @@ class ExpressionTest extends MediaWikiTestCase {
/**
* @dataProvider provideExpressions
*/
function testExpression( $input, $expected ) {
public function testExpression( $input, $expected ) {
$this->assertEquals(
$expected,
$this->parser->doExpression( $input )
);
}
function provideExpressions() {
public function provideExpressions() {
return [
[ '1 or 0', '1' ],
[ 'not (1 and 0)', '1' ],