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: README.md
+35
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ For loops that have only a second expression (the condition) should be converted
23
23
</td>
24
24
</tr>
25
25
</table>
26
+
26
27
## Jumbled Incrementers
27
28
Incrementers in nested loops should use different variable names.
28
29
<table>
@@ -49,6 +50,7 @@ Incrementers in nested loops should use different variable names.
49
50
</td>
50
51
</tr>
51
52
</table>
53
+
52
54
## Unnecessary Final Modifiers
53
55
Methods should not be declared final inside of classes that are declared final.
54
56
<table>
@@ -79,6 +81,7 @@ Methods should not be declared final inside of classes that are declared final.
79
81
</td>
80
82
</tr>
81
83
</table>
84
+
82
85
## Useless Overriding Methods
83
86
Methods should not be defined that only call the parent method.
84
87
<table>
@@ -112,6 +115,7 @@ Methods should not be defined that only call the parent method.
112
115
</td>
113
116
</tr>
114
117
</table>
118
+
115
119
## Todo Comments
116
120
FIXME Statements should be taken care of.
117
121
<table>
@@ -138,6 +142,7 @@ FIXME Statements should be taken care of.
138
142
</td>
139
143
</tr>
140
144
</table>
145
+
141
146
## Todo Comments
142
147
TODO Statements should be taken care of.
143
148
<table>
@@ -164,6 +169,7 @@ TODO Statements should be taken care of.
164
169
</td>
165
170
</tr>
166
171
</table>
172
+
167
173
## Inline Control Structures
168
174
Control Structures should use braces.
169
175
<table>
@@ -187,6 +193,7 @@ Control Structures should use braces.
187
193
</td>
188
194
</tr>
189
195
</table>
196
+
190
197
## Byte Order Marks
191
198
Byte Order Marks that may corrupt your application should not be used. These include 0xefbbbf (UTF-8), 0xfeff (UTF-16 BE) and 0xfffe (UTF-16 LE).
192
199
## Inline HTML
@@ -214,6 +221,7 @@ Files that contain php code should only have php code and should not have any &q
214
221
</td>
215
222
</tr>
216
223
</table>
224
+
217
225
## Line Endings
218
226
Unix-style line endings are preferred ("\n" instead of "\r\n").
219
227
## One Class Per File
@@ -246,6 +254,7 @@ There should only be one class defined in a file.
246
254
</td>
247
255
</tr>
248
256
</table>
257
+
249
258
## One Interface Per File
250
259
There should only be one interface defined in a file.
251
260
<table>
@@ -276,6 +285,7 @@ There should only be one interface defined in a file.
276
285
</td>
277
286
</tr>
278
287
</table>
288
+
279
289
## Multiple Statements On a Single Line
280
290
Multiple statements are not allowed on a single line.
281
291
<table>
@@ -297,6 +307,7 @@ Multiple statements are not allowed on a single line.
297
307
</td>
298
308
</tr>
299
309
</table>
310
+
300
311
## Space After Casts
301
312
Spaces are not allowed after casting operators.
302
313
<table>
@@ -317,6 +328,7 @@ Spaces are not allowed after casting operators.
317
328
</td>
318
329
</tr>
319
330
</table>
331
+
320
332
## Call-Time Pass-By-Reference
321
333
Call-time pass-by-reference is not allowed. It should be declared in the function definition.
322
334
<table>
@@ -349,6 +361,7 @@ Call-time pass-by-reference is not allowed. It should be declared in the functio
349
361
</td>
350
362
</tr>
351
363
</table>
364
+
352
365
## Function Argument Spacing
353
366
Function arguments should have one space after a comma, and single spaces surrounding the equals sign for default values.
354
367
<table>
@@ -395,6 +408,7 @@ Function arguments should have one space after a comma, and single spaces surrou
395
408
</td>
396
409
</tr>
397
410
</table>
411
+
398
412
## Opening Brace in Function Declarations
399
413
Function declarations follow the "Kernighan/Ritchie style". The function brace is on the same line as the function declaration. One space is required between the closing parenthesis and the brace.
400
414
<table>
@@ -420,6 +434,7 @@ Function declarations follow the "Kernighan/Ritchie style". The functi
420
434
</td>
421
435
</tr>
422
436
</table>
437
+
423
438
## Constructor name
424
439
Constructors should be named __construct, not after the class.
425
440
<table>
@@ -450,6 +465,7 @@ Constructors should be named __construct, not after the class.
450
465
</td>
451
466
</tr>
452
467
</table>
468
+
453
469
## Constant Names
454
470
Constants should always be all-uppercase, with underscores to separate words.
455
471
<table>
@@ -480,6 +496,7 @@ Constants should always be all-uppercase, with underscores to separate words.
480
496
</td>
481
497
</tr>
482
498
</table>
499
+
483
500
## Opening Tag at Start of File
484
501
The opening php tag should be the first item in the file.
485
502
<table>
@@ -503,6 +520,7 @@ The opening php tag should be the first item in the file.
503
520
</td>
504
521
</tr>
505
522
</table>
523
+
506
524
## Deprecated Functions
507
525
Deprecated functions should not be used.
508
526
<table>
@@ -523,6 +541,7 @@ Deprecated functions should not be used.
523
541
</td>
524
542
</tr>
525
543
</table>
544
+
526
545
## PHP Code Tags
527
546
Always use <?php ?> to delimit PHP code, not the <? ?> shorthand. This is the most portable way to include PHP code on differing operating systems and setups.
528
547
## Forbidden Functions
@@ -545,6 +564,7 @@ The forbidden functions sizeof() and delete() should not be used.
545
564
</td>
546
565
</tr>
547
566
</table>
567
+
548
568
## Lowercase Keywords
549
569
All PHP keywords should be lowercase.
550
570
<table>
@@ -565,6 +585,7 @@ All PHP keywords should be lowercase.
565
585
</td>
566
586
</tr>
567
587
</table>
588
+
568
589
## No Space Indentation
569
590
Tabs should be used for indentation instead of spaces.
570
591
## Control Structure Signatures
@@ -610,6 +631,7 @@ Control structures should use one space around the parentheses in conditions. T
610
631
</td>
611
632
</tr>
612
633
</table>
634
+
613
635
## Default Values in Function Declarations
614
636
Arguments with default values go at the end of the argument list.
615
637
<table>
@@ -636,6 +658,7 @@ Arguments with default values go at the end of the argument list.
636
658
</td>
637
659
</tr>
638
660
</table>
661
+
639
662
## Class Declaration
640
663
Each class must be in a file by itself and must be under a namespace (a top-level vendor name).
641
664
<table>
@@ -691,6 +714,7 @@ Each class must be in a file by itself and must be under a namespace (a top-leve
691
714
</td>
692
715
</tr>
693
716
</table>
717
+
694
718
## Namespace Declarations
695
719
There must be one blank line after the namespace declaration.
696
720
<table>
@@ -714,6 +738,7 @@ There must be one blank line after the namespace declaration.
714
738
</td>
715
739
</tr>
716
740
</table>
741
+
717
742
## Namespace Declarations
718
743
Each use declaration must contain only one namespace and must come after the first namespace declaration. There should be one blank line after the final use statement.
719
744
<table>
@@ -784,6 +809,7 @@ Each use declaration must contain only one namespace and must come after the fir
784
809
</td>
785
810
</tr>
786
811
</table>
812
+
787
813
## Closing PHP Tags
788
814
Files should not have closing php tags.
789
815
<table>
@@ -807,6 +833,7 @@ Files should not have closing php tags.
807
833
</td>
808
834
</tr>
809
835
</table>
836
+
810
837
## Array Bracket Spacing
811
838
When referencing arrays you should not put whitespace around the opening bracket or before the closing bracket.
812
839
<table>
@@ -827,6 +854,7 @@ When referencing arrays you should not put whitespace around the opening bracket
827
854
</td>
828
855
</tr>
829
856
</table>
857
+
830
858
## Lowercase Class Keywords
831
859
The php keywords class, interface, trait, extends, implements, abstract, final, var, and const should be lowercase.
0 commit comments