Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 69f8116

Browse files
author
DKravtsov
committed
Updated docs.
1 parent 5323eae commit 69f8116

File tree

3 files changed

+64
-4
lines changed

3 files changed

+64
-4
lines changed

‎docs/images/phpstorm_code_style.png

57.1 KB
Loading[フレーム]

‎docs/phpstorm.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ This document describing how you can configure your IDE [PhpStorm](https://www.j
66
* Go to `Settings -> Plugins` and install next plugins:
77
- .env files support
88
- .ignore
9-
- Makefile support
9+
- Makefile Language
1010
- Php Annotations
11-
- Php Inspections (EA Extended)
11+
- Php Inspections (EA Extended)
1212
- Php Toolbox
13-
- Symfony support​
13+
- Symfony support (Has some paid functions, [homepage](https://espend.de/phpstorm/plugin/symfony))
14+
- Rainbow brackets
15+
- String Manipulation
16+
- Extra ToolWindow Colorful Icons
1417
* Go to `Settings -> Php -> Symfony` and check `Enable plugin for this project` and set Web Directory value as `public`.
1518
* Go to `Settings -> Php -> Composer` and set path to composer.json, check other settings:
1619

@@ -40,6 +43,11 @@ Next you need to add Run/Debug configuration for PHP Remote Debug. It needs to b
4043
### Debugging
4144
In order to use Xdebug as debugging tool please follow [Using Xdebug](xdebug.md) documentation.
4245

46+
### Code Style
47+
* Go to `Settings -> Editor -> Code Style` and import scheme `Systemsdk` (CodeStyle.xml) from [docs/phpstorm](phpstorm):
48+
49+
![Path mappings](images/phpstorm_code_style.png)
50+
4351
### PHP Inspections and code quality tools
4452
* Go to `Settings -> PHP -> Quality tools` and configure next:
4553

@@ -49,7 +57,7 @@ In order to use Xdebug as debugging tool please follow [Using Xdebug](xdebug.md)
4957
![Path mappings](images/phpstorm_09.png)
5058
![Path mappings](images/phpstorm_10.png)
5159

52-
* Go to `Settings -> Editor -> Inspections` and import profile Systemsdk from [docs/phpstorm](phpstorm) and make sure that you have proper path to `phpmd_ruleset.xml`:
60+
* Go to `Settings -> Editor -> Inspections` and import profile `Systemsdk` (Inspections.xml) from [docs/phpstorm](phpstorm) and make sure that you have proper path to `phpmd_ruleset.xml`:
5361

5462
![Path mappings](images/phpstorm_11.png)
5563

‎docs/phpstorm/CodeStyle.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<code_scheme name="Systemsdk" version="173">
2+
<PHPCodeStyleSettings>
3+
<option name="ALIGN_KEY_VALUE_PAIRS" value="true" />
4+
<option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" />
5+
<option name="ALIGN_PHPDOC_COMMENTS" value="true" />
6+
<option name="COMMA_AFTER_LAST_ARRAY_ELEMENT" value="true" />
7+
<option name="PHPDOC_BLANK_LINE_BEFORE_TAGS" value="true" />
8+
<option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value="true" />
9+
<option name="LOWER_CASE_BOOLEAN_CONST" value="true" />
10+
<option name="LOWER_CASE_NULL_CONST" value="true" />
11+
<option name="BLANK_LINES_BEFORE_RETURN_STATEMENT" value="1" />
12+
<option name="KEEP_RPAREN_AND_LBRACE_ON_ONE_LINE" value="true" />
13+
<option name="SPACE_BETWEEN_TERNARY_QUEST_AND_COLON" value="true" />
14+
<option name="SPACE_BEFORE_SHORT_CLOSURE_LEFT_PARENTHESIS" value="true" />
15+
<option name="FORCE_SHORT_DECLARATION_ARRAY_STYLE" value="true" />
16+
<option name="PHPDOC_USE_FQCN" value="true" />
17+
</PHPCodeStyleSettings>
18+
<codeStyleSettings language="PHP">
19+
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" />
20+
<option name="BLANK_LINES_AFTER_PACKAGE" value="1" />
21+
<option name="ALIGN_MULTILINE_CHAINED_METHODS" value="true" />
22+
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
23+
<option name="ALIGN_MULTILINE_FOR" value="false" />
24+
<option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" />
25+
<option name="ALIGN_MULTILINE_EXTENDS_LIST" value="true" />
26+
<option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" />
27+
<option name="CALL_PARAMETERS_WRAP" value="1" />
28+
<option name="CALL_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
29+
<option name="CALL_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
30+
<option name="METHOD_PARAMETERS_WRAP" value="5" />
31+
<option name="METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
32+
<option name="METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
33+
<option name="EXTENDS_LIST_WRAP" value="1" />
34+
<option name="EXTENDS_KEYWORD_WRAP" value="1" />
35+
<option name="METHOD_CALL_CHAIN_WRAP" value="1" />
36+
<option name="BINARY_OPERATION_WRAP" value="1" />
37+
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" />
38+
<option name="TERNARY_OPERATION_WRAP" value="1" />
39+
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
40+
<option name="FOR_STATEMENT_WRAP" value="1" />
41+
<option name="FOR_STATEMENT_LPAREN_ON_NEXT_LINE" value="true" />
42+
<option name="FOR_STATEMENT_RPAREN_ON_NEXT_LINE" value="true" />
43+
<option name="ARRAY_INITIALIZER_WRAP" value="5" />
44+
<option name="ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE" value="true" />
45+
<option name="ARRAY_INITIALIZER_RBRACE_ON_NEXT_LINE" value="true" />
46+
<option name="ASSIGNMENT_WRAP" value="1" />
47+
<option name="IF_BRACE_FORCE" value="3" />
48+
<option name="DOWHILE_BRACE_FORCE" value="3" />
49+
<option name="WHILE_BRACE_FORCE" value="3" />
50+
<option name="FOR_BRACE_FORCE" value="3" />
51+
</codeStyleSettings>
52+
</code_scheme>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /