Skip to content

Commit 016d134

Browse files
committed
headline
1 parent 0ffb1c0 commit 016d134

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Pick from 25+ rules:
2222

2323
<br>
2424

25-
## CheckRequiredInterfaceInContractNamespaceRule
25+
### CheckRequiredInterfaceInContractNamespaceRule
2626

2727
Interface must be located in "Contract" or "Contracts" namespace
2828

@@ -55,7 +55,7 @@ interface ProductRepositoryInterface
5555

5656
<br>
5757

58-
## ClassNameRespectsParentSuffixRule
58+
### ClassNameRespectsParentSuffixRule
5959

6060
Class should have suffix "%s" to respect parent type
6161

@@ -93,7 +93,7 @@ class SomeCommand extends Command
9393

9494
<br>
9595

96-
## ExplicitClassPrefixSuffixRule
96+
### ExplicitClassPrefixSuffixRule
9797

9898
Interface have suffix of "Interface", trait have "Trait" suffix exclusively
9999

@@ -142,7 +142,7 @@ abstract class AbstractClass
142142

143143
<br>
144144

145-
## ForbiddenArrayMethodCallRule
145+
### ForbiddenArrayMethodCallRule
146146

147147
Array method calls [$this, "method"] are not allowed. Use explicit method instead to help PhpStorm, PHPStan and Rector understand your code
148148

@@ -169,7 +169,7 @@ usort($items, function (array $apples) {
169169

170170
<br>
171171

172-
## ForbiddenExtendOfNonAbstractClassRule
172+
### ForbiddenExtendOfNonAbstractClassRule
173173

174174
Only abstract classes can be extended
175175

@@ -206,7 +206,7 @@ abstract class ParentClass
206206

207207
<br>
208208

209-
## ForbiddenFuncCallRule
209+
### ForbiddenFuncCallRule
210210

211211
Function `"%s()"` cannot be used/left in the code
212212

@@ -269,7 +269,7 @@ echo $value;
269269

270270
<br>
271271

272-
## ForbiddenMultipleClassLikeInOneFileRule
272+
### ForbiddenMultipleClassLikeInOneFileRule
273273

274274
Multiple class/interface/trait is not allowed in single file
275275

@@ -309,7 +309,7 @@ interface SomeInterface
309309

310310
<br>
311311

312-
## ForbiddenNodeRule
312+
### ForbiddenNodeRule
313313

314314
"%s" is forbidden to use
315315

@@ -343,7 +343,7 @@ return strlen('...');
343343

344344
<br>
345345

346-
## ForbiddenStaticClassConstFetchRule
346+
### ForbiddenStaticClassConstFetchRule
347347

348348
Avoid static access of constants, as they can change value. Use interface and contract method instead
349349

@@ -380,7 +380,7 @@ class SomeClass
380380

381381
<br>
382382

383-
## NoDynamicNameRule
383+
### NoDynamicNameRule
384384

385385
Use explicit names over dynamic ones
386386

@@ -417,7 +417,7 @@ class SomeClass
417417

418418
<br>
419419

420-
## NoEntityOutsideEntityNamespaceRule
420+
### NoEntityOutsideEntityNamespaceRule
421421

422422
Class with #[Entity] attribute must be located in "Entity" namespace to be loaded by Doctrine
423423

@@ -456,7 +456,7 @@ class Product
456456

457457
<br>
458458

459-
## NoGlobalConstRule
459+
### NoGlobalConstRule
460460

461461
Global constants are forbidden. Use enum-like class list instead
462462

@@ -487,7 +487,7 @@ class SomeClass
487487

488488
<br>
489489

490-
## NoReferenceRule
490+
### NoReferenceRule
491491

492492
Use explicit return value over magic &reference
493493

@@ -523,7 +523,7 @@ class SomeClass
523523

524524
<br>
525525

526-
## NoReturnArrayVariableListRule
526+
### NoReturnArrayVariableListRule
527527

528528
Use value object over return of values
529529

@@ -560,7 +560,7 @@ final class ReturnVariables
560560

561561
<br>
562562

563-
## NoReturnSetterMethodRule
563+
### NoReturnSetterMethodRule
564564

565565
Setter method cannot return anything, only set value
566566

@@ -601,7 +601,7 @@ final class SomeClass
601601

602602
<br>
603603

604-
## NoSingleInterfaceImplementerRule
604+
### NoSingleInterfaceImplementerRule
605605

606606
Interface "%s" has only single implementer. Consider using the class directly as there is no point in using the interface.
607607

@@ -642,7 +642,7 @@ interface SomeInterface
642642

643643
<br>
644644

645-
## NoTestMocksRule
645+
### NoTestMocksRule
646646

647647
Mocking "%s" class is forbidden. Use direct/anonymous class instead for better static analysis
648648

@@ -683,7 +683,7 @@ final class SkipApiMock extends TestCase
683683

684684
<br>
685685

686-
## PreferredClassRule
686+
### PreferredClassRule
687687

688688
Instead of "%s" class/interface use "%s"
689689

@@ -729,7 +729,7 @@ class SomeClass
729729

730730
<br>
731731

732-
## PreventParentMethodVisibilityOverrideRule
732+
### PreventParentMethodVisibilityOverrideRule
733733

734734
Change `"%s()"` method visibility to "%s" to respect parent method visibility.
735735

@@ -778,7 +778,7 @@ class SomeClass extends SomeParentClass
778778

779779
<br>
780780

781-
## RequireAttributeNameRule
781+
### RequireAttributeNameRule
782782

783783
Attribute must have all names explicitly defined
784784

@@ -819,7 +819,7 @@ class SomeController
819819

820820
<br>
821821

822-
## RequireAttributeNamespaceRule
822+
### RequireAttributeNamespaceRule
823823

824824
Attribute must be located in "Attribute" namespace
825825

@@ -856,7 +856,7 @@ final class SomeAttribute
856856

857857
<br>
858858

859-
## RequireExceptionNamespaceRule
859+
### RequireExceptionNamespaceRule
860860

861861
`Exception` must be located in "Exception" namespace
862862

@@ -892,7 +892,7 @@ final class SomeException extends Exception
892892

893893
<br>
894894

895-
## RequireInvokableControllerRule
895+
### RequireInvokableControllerRule
896896

897897
Use invokable controller with `__invoke()` method instead of named action method
898898

@@ -935,7 +935,7 @@ final class SomeController extends AbstractController
935935

936936
<br>
937937

938-
## RequireUniqueEnumConstantRule
938+
### RequireUniqueEnumConstantRule
939939

940940
Enum constants "%s" are duplicated. Make them unique instead
941941

@@ -974,7 +974,7 @@ class SomeClass extends Enum
974974

975975
<br>
976976

977-
## SeeAnnotationToTestRule
977+
### SeeAnnotationToTestRule
978978

979979
Class "%s" is missing `@see` annotation with test case class reference
980980

@@ -1015,7 +1015,7 @@ class SomeClass extends Rule
10151015

10161016
<br>
10171017

1018-
## UppercaseConstantRule
1018+
### UppercaseConstantRule
10191019

10201020
Constant "%s" must be uppercase
10211021

0 commit comments

Comments
 (0)