Skip to content

Commit

Permalink
headline
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 16, 2024
1 parent 0ffb1c0 commit 016d134
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Pick from 25+ rules:

<br>

## CheckRequiredInterfaceInContractNamespaceRule
### CheckRequiredInterfaceInContractNamespaceRule

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

Expand Down Expand Up @@ -55,7 +55,7 @@ interface ProductRepositoryInterface

<br>

## ClassNameRespectsParentSuffixRule
### ClassNameRespectsParentSuffixRule

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

Expand Down Expand Up @@ -93,7 +93,7 @@ class SomeCommand extends Command

<br>

## ExplicitClassPrefixSuffixRule
### ExplicitClassPrefixSuffixRule

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

Expand Down Expand Up @@ -142,7 +142,7 @@ abstract class AbstractClass

<br>

## ForbiddenArrayMethodCallRule
### ForbiddenArrayMethodCallRule

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

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

<br>

## ForbiddenExtendOfNonAbstractClassRule
### ForbiddenExtendOfNonAbstractClassRule

Only abstract classes can be extended

Expand Down Expand Up @@ -206,7 +206,7 @@ abstract class ParentClass

<br>

## ForbiddenFuncCallRule
### ForbiddenFuncCallRule

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

Expand Down Expand Up @@ -269,7 +269,7 @@ echo $value;

<br>

## ForbiddenMultipleClassLikeInOneFileRule
### ForbiddenMultipleClassLikeInOneFileRule

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

Expand Down Expand Up @@ -309,7 +309,7 @@ interface SomeInterface

<br>

## ForbiddenNodeRule
### ForbiddenNodeRule

"%s" is forbidden to use

Expand Down Expand Up @@ -343,7 +343,7 @@ return strlen('...');

<br>

## ForbiddenStaticClassConstFetchRule
### ForbiddenStaticClassConstFetchRule

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

Expand Down Expand Up @@ -380,7 +380,7 @@ class SomeClass

<br>

## NoDynamicNameRule
### NoDynamicNameRule

Use explicit names over dynamic ones

Expand Down Expand Up @@ -417,7 +417,7 @@ class SomeClass

<br>

## NoEntityOutsideEntityNamespaceRule
### NoEntityOutsideEntityNamespaceRule

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

Expand Down Expand Up @@ -456,7 +456,7 @@ class Product

<br>

## NoGlobalConstRule
### NoGlobalConstRule

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

Expand Down Expand Up @@ -487,7 +487,7 @@ class SomeClass

<br>

## NoReferenceRule
### NoReferenceRule

Use explicit return value over magic &reference

Expand Down Expand Up @@ -523,7 +523,7 @@ class SomeClass

<br>

## NoReturnArrayVariableListRule
### NoReturnArrayVariableListRule

Use value object over return of values

Expand Down Expand Up @@ -560,7 +560,7 @@ final class ReturnVariables

<br>

## NoReturnSetterMethodRule
### NoReturnSetterMethodRule

Setter method cannot return anything, only set value

Expand Down Expand Up @@ -601,7 +601,7 @@ final class SomeClass

<br>

## NoSingleInterfaceImplementerRule
### NoSingleInterfaceImplementerRule

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

Expand Down Expand Up @@ -642,7 +642,7 @@ interface SomeInterface

<br>

## NoTestMocksRule
### NoTestMocksRule

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

Expand Down Expand Up @@ -683,7 +683,7 @@ final class SkipApiMock extends TestCase

<br>

## PreferredClassRule
### PreferredClassRule

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

Expand Down Expand Up @@ -729,7 +729,7 @@ class SomeClass

<br>

## PreventParentMethodVisibilityOverrideRule
### PreventParentMethodVisibilityOverrideRule

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

Expand Down Expand Up @@ -778,7 +778,7 @@ class SomeClass extends SomeParentClass

<br>

## RequireAttributeNameRule
### RequireAttributeNameRule

Attribute must have all names explicitly defined

Expand Down Expand Up @@ -819,7 +819,7 @@ class SomeController

<br>

## RequireAttributeNamespaceRule
### RequireAttributeNamespaceRule

Attribute must be located in "Attribute" namespace

Expand Down Expand Up @@ -856,7 +856,7 @@ final class SomeAttribute

<br>

## RequireExceptionNamespaceRule
### RequireExceptionNamespaceRule

`Exception` must be located in "Exception" namespace

Expand Down Expand Up @@ -892,7 +892,7 @@ final class SomeException extends Exception

<br>

## RequireInvokableControllerRule
### RequireInvokableControllerRule

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

Expand Down Expand Up @@ -935,7 +935,7 @@ final class SomeController extends AbstractController

<br>

## RequireUniqueEnumConstantRule
### RequireUniqueEnumConstantRule

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

Expand Down Expand Up @@ -974,7 +974,7 @@ class SomeClass extends Enum

<br>

## SeeAnnotationToTestRule
### SeeAnnotationToTestRule

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

Expand Down Expand Up @@ -1015,7 +1015,7 @@ class SomeClass extends Rule

<br>

## UppercaseConstantRule
### UppercaseConstantRule

Constant "%s" must be uppercase

Expand Down

0 comments on commit 016d134

Please sign in to comment.