@@ -7,13 +7,14 @@ WEBT-VT | ADV | 03 - Coding Standards
77* File -> Settings -> PHP
88* Auf ` ... ` neben ** CLI Interpreter** klicken
99* ` + ` -> ** From Docker** -> ** Docker Composer**
10+
1011- ** Server:** Docker
1112- ** Configuration file:** ` ./WEBT_25-26_03-ADV/docker-compose.yaml `
1213- ** Service:** ` web `
13- - ** PHP executable:** ` /usr/local/bin/ php`
14+ - ** PHP executable:** ` php `
1415
15- ** Lifecycle:** Connect to existing container ('docker-compose exec')
16- ** CLI Interpreter:** ` web `
16+ * * * Lifecycle:** Connect to existing container ('docker-compose exec')
17+ * * * CLI Interpreter:** ` web `
1718
1819### PHP CS Fixer in PhpStorm konfigurieren
1920
@@ -24,26 +25,32 @@ WEBT-VT | ADV | 03 - Coding Standards
2425* ** Path mappings:** Map ADV3 Folder to ` /var/www/html `
2526
2627### Reformat specific File with PhpStorm
28+
2729` Ctrl + Shift + A -> "Fix CS" `
2830
2931### Reformat at File save
32+
3033* File -> Settings -> PHP -> Quality Tools -> ** External Formatters:** ` PHP CS Fixer `
3134* ` Settings -> Tools -> Action on Save `
35+
3236- Select ` Reformat code ` & ` Rearrange code `
3337
3438### PHP Coding Standards
3539
3640#### Standard
37- - PSR-12
41+
42+ * PSR-12
3843
3944#### Tooling
40- - PHP CS Fixer
41- - Configuration: .php-cs-fixer.php
45+
46+ * PHP CS Fixer
47+ * Configuration: .php-cs-fixer.php
4248
4349#### Rules
44- - 4-space indentation
45- - One class per file
46- - Strict type declarations
50+
51+ * 4-space indentation
52+ * One class per file
53+ * Strict type declarations
4754
4855## Composer Infos
4956
0 commit comments