You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: developer/standard/coding.md
+29-7
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
1
# Coding Standard
2
2
3
-
The coding standard exists as good practice for keeping the syntax cohesive as possible.
3
+
The coding standard exists as good practice for keeping the syntax cohesive as possible. We have created our own coding standard which can be automatic implemented in your project.
4
4
5
5
## Casing
6
6
7
7
*`PascalCase` for classes and interfaces
8
8
*`SCREAMING_SNAKE_CASE` for constants
9
+
*`snake_case` for HTTP parameters, database columns
9
10
*`camelCase` for everything else
10
11
11
-
## Code Style
12
+
## Code style
12
13
13
14
Code style is provided using [EasyCodingStandard](https://github.com/symplify/easy-coding-standard), defined at the root `ecs.php` file which extends [ecs-chevere.php](https://github.com/chevere/code-style/blob/main/.ecs/ecs-chevere.php).
14
15
@@ -42,7 +43,6 @@ Create your `.ecs/ecs.php` [configuration](https://github.com/symplify/easy-codi
42
43
declare(strict_types=1);
43
44
44
45
use Symplify\EasyCodingStandard\Config\ECSConfig;
45
-
use Symplify\EasyCodingStandard\ValueObject\Option;
46
46
47
47
return static function (ECSConfig $ecsConfig): void {
Copy file name to clipboardExpand all lines: developer/standard/quality.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Our standard requires that code delivered by Chevere **must be**:
13
13
14
14
The code is continuously analyzed by many systems and third-party tools. All our packages will showcase a signature like this on the main `README.md` file:
0 commit comments