Skip to content

Commit

Permalink
Minor updates to php code style
Browse files Browse the repository at this point in the history
Improve changelog for context menu based search
  • Loading branch information
reedy committed Apr 12, 2014
1 parent 45c2614 commit 3fb11cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<p>
<strong>Version 0.2</strong>
<ul>
<li>Search on MediaWiki.org on context menu with selected text</li>
<li>Search MediaWiki.org via right click menus with selected text</li>
<li>Minor improvements in PHP Code Style</li>
</ul>
<strong>Version 0.1</strong>
Expand Down
5 changes: 3 additions & 2 deletions src/org/mediawiki/MediaWikiPhpPredefinedCodeStyle.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public void apply(CodeStyleSettings settings) {
commonSettings.CLASS_BRACE_STYLE = 1;
commonSettings.METHOD_BRACE_STYLE = 1;

commonSettings.CATCH_ON_NEW_LINE = true;
commonSettings.CATCH_ON_NEW_LINE = false;
commonSettings.FINALLY_ON_NEW_LINE = false;

commonSettings.ALIGN_MULTILINE_PARAMETERS = false;

Expand Down Expand Up @@ -57,7 +58,7 @@ public void apply(CodeStyleSettings settings) {
indentOptions.SMART_TABS = true;
indentOptions.TAB_SIZE = 4;
indentOptions.INDENT_SIZE = 4;
indentOptions.CONTINUATION_INDENT_SIZE = 8;
indentOptions.CONTINUATION_INDENT_SIZE = 4;
indentOptions.LABEL_INDENT_SIZE = 0;
indentOptions.LABEL_INDENT_ABSOLUTE = false;
indentOptions.USE_RELATIVE_INDENTS = false;
Expand Down

0 comments on commit 3fb11cb

Please sign in to comment.