Skip to content

Commit 3fb11cb

Browse files
committed
Minor updates to php code style
Improve changelog for context menu based search
1 parent 45c2614 commit 3fb11cb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

META-INF/plugin.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
<p>
1616
<strong>Version 0.2</strong>
1717
<ul>
18-
<li>Search on MediaWiki.org on context menu with selected text</li>
18+
<li>Search MediaWiki.org via right click menus with selected text</li>
19+
<li>Minor improvements in PHP Code Style</li>
1920
</ul>
2021
2122
<strong>Version 0.1</strong>

src/org/mediawiki/MediaWikiPhpPredefinedCodeStyle.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public void apply(CodeStyleSettings settings) {
2626
commonSettings.CLASS_BRACE_STYLE = 1;
2727
commonSettings.METHOD_BRACE_STYLE = 1;
2828

29-
commonSettings.CATCH_ON_NEW_LINE = true;
29+
commonSettings.CATCH_ON_NEW_LINE = false;
30+
commonSettings.FINALLY_ON_NEW_LINE = false;
3031

3132
commonSettings.ALIGN_MULTILINE_PARAMETERS = false;
3233

@@ -57,7 +58,7 @@ public void apply(CodeStyleSettings settings) {
5758
indentOptions.SMART_TABS = true;
5859
indentOptions.TAB_SIZE = 4;
5960
indentOptions.INDENT_SIZE = 4;
60-
indentOptions.CONTINUATION_INDENT_SIZE = 8;
61+
indentOptions.CONTINUATION_INDENT_SIZE = 4;
6162
indentOptions.LABEL_INDENT_SIZE = 0;
6263
indentOptions.LABEL_INDENT_ABSOLUTE = false;
6364
indentOptions.USE_RELATIVE_INDENTS = false;

0 commit comments

Comments
 (0)