Skip to content

Commit 547f87f

Browse files
committed
Replace phpSettings.BLANK_LINE_BEFORE_RETURN_STATEMENT with phpSettings.BLANK_LINES_BEFORE_RETURN_STATEMENT to fix deprecated warning
1 parent 9bca179 commit 547f87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/mediawiki/MediaWikiPhpPredefinedCodeStyle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void apply(CodeStyleSettings settings) {
5050
PhpCodeStyleSettings phpSettings = settings.getCustomSettings(PhpCodeStyleSettings.class);
5151
phpSettings.LOWER_CASE_BOOLEAN_CONST = true;
5252
phpSettings.LOWER_CASE_NULL_CONST = true;
53-
phpSettings.BLANK_LINE_BEFORE_RETURN_STATEMENT = true;
53+
phpSettings.BLANK_LINES_BEFORE_RETURN_STATEMENT = 1;
5454
phpSettings.KEEP_RPAREN_AND_LBRACE_ON_ONE_LINE = true;
5555

5656
CodeStyleSettings.IndentOptions indentOptions = settings.getIndentOptions(PhpFileType.INSTANCE);

0 commit comments

Comments
 (0)