Movatterモバイル変換


[0]ホーム

URL:


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

Commit66a1237

Browse files
author
DKravtsov
committed
Updated docs.
1 parent7d17e04 commit66a1237

File tree

3 files changed

+64
-4
lines changed

3 files changed

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp