Skip to content

Commit 329136f

Browse files
authored
Merge pull request #102 from Crell/class-abbrev
Add section on abbreviation naming
2 parents aad4d72 + 3ed8b01 commit 329136f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ $result = match ($a) {
169169
};
170170
```
171171

172+
### 2.7 Naming
173+
174+
This PSR RECOMMENDS following the [php-src coding standards](https://github.com/php/php-src/blob/master/CODING_STANDARDS.md#user-functionsmethods-naming-conventions) with regard to abbreviations and acronyms.
175+
176+
Specifically:
177+
178+
> Abbreviations and acronyms as well as initialisms SHOULD be avoided wherever possible, unless they are much more widely used than the long form (e.g. HTTP or URL). Abbreviations, acronyms, and initialisms SHOULD be treated like regular words, thus they SHOULD be written with an uppercase first character, followed by lowercase characters.
179+
172180
## 3. Declare Statements, Namespace, and Import Statements
173181

174182
The header of a PHP file may consist of a number of different blocks. If present,

0 commit comments

Comments
 (0)