mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Update core-code-style.md (#19008)
Changed Section 4 from CamelCase to StudlyCase to match the overview and Section 3.
This commit is contained in:
@ -46,7 +46,7 @@ Class names MUST be declared in `StudlyCaps`. For example, `Controller`, `Model`
|
||||
|
||||
The term "class" refers to all classes and interfaces here.
|
||||
|
||||
- Classes should be named using `CamelCase`.
|
||||
- Classes should be named using `StudlyCase`.
|
||||
- The brace should always be written on the line underneath the class name.
|
||||
- Every class must have a documentation block that conforms to the PHPDoc.
|
||||
- All code in a class must be indented with 4 spaces.
|
||||
|
Reference in New Issue
Block a user