@@ -20,7 +20,6 @@ interpreted as described in [RFC 2119].
20
20
[ PSR-0 ] : https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
21
21
[ PSR-1 ] : https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
22
22
23
-
24
23
## 1. Overview
25
24
26
25
- Code MUST follow a "coding style guide" PSR [[ PSR-1]] .
@@ -132,8 +131,6 @@ The PHP constants `true`, `false`, and `null` MUST be in lower case.
132
131
133
132
[ keywords ] : http://php.net/manual/en/reserved.keywords.php
134
133
135
-
136
-
137
134
## 3. Namespace and Use Declarations
138
135
139
136
When present, there MUST be one blank line after the ` namespace ` declaration.
@@ -159,7 +156,6 @@ use OtherVendor\OtherPackage\BazClass;
159
156
160
157
~~~
161
158
162
-
163
159
## 4. Classes, Properties, and Methods
164
160
165
161
The term "class" refers to all classes, interfaces, and traits.
@@ -372,7 +368,6 @@ The body of each structure MUST be enclosed by braces. This standardizes how
372
368
the structures look, and reduces the likelihood of introducing errors as new
373
369
lines get added to the body.
374
370
375
-
376
371
### 5.1. ` if ` , ` elseif ` , ` else `
377
372
378
373
An ` if ` structure looks like the following. Note the placement of parentheses,
@@ -393,7 +388,6 @@ if ($expr1) {
393
388
The keyword ` elseif ` SHOULD be used instead of ` else if ` so that all control
394
389
keywords look like single words.
395
390
396
-
397
391
### 5.2. ` switch ` , ` case `
398
392
399
393
A ` switch ` structure looks like the following. Note the placement of
@@ -422,7 +416,6 @@ switch ($expr) {
422
416
}
423
417
~~~
424
418
425
-
426
419
### 5.3. ` while ` , ` do while `
427
420
428
421
A ` while ` statement looks like the following. Note the placement of
@@ -590,7 +583,6 @@ $foo->bar(
590
583
);
591
584
~~~
592
585
593
-
594
586
## 7. Conclusion
595
587
596
588
There are many elements of style and practice intentionally omitted by this
@@ -613,7 +605,6 @@ guide. These include but are not limited to:
613
605
Future recommendations MAY revise and extend this guide to address those or
614
606
other elements of style and practice.
615
607
616
-
617
608
## Appendix A. Survey
618
609
619
610
In writing this style guide, the group took a survey of member projects to
0 commit comments