diff --git a/packages/coding-standard/docs/php_code_sniffer_sniffs.md b/packages/coding-standard/docs/php_code_sniffer_sniffs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/packages/coding-standard/docs/phpcs_fixer_fixers.md b/packages/coding-standard/docs/phpcs_fixer_fixers.md new file mode 100644 index 00000000000..7e99ddf135b --- /dev/null +++ b/packages/coding-standard/docs/phpcs_fixer_fixers.md @@ -0,0 +1,36 @@ +# PHP CS Fixer - Fixers + +### Indent nested Annotations to Newline + +- class: [`Symplify\CodingStandard\Fixer\Annotation\NewlineInNestedAnnotationFixer`](packages/coding-standard/src/Fixer/Annotation/NewlineInNestedAnnotationFixer.php) + +```php +services(); + $services->set(Symplify\CodingStandard\Fixer\Annotation\NewlineInNestedAnnotationFixer::class); +}; +``` + +```diff + use Doctrine\ORM\Mapping as ORM; + + /** +- * @ORM\Table(name="user", indexes={@ORM\Index(name="user_id", columns={"another_id"})}) ++ * @ORM\Table(name="user", indexes={ ++ * @ORM\Index(name="user_id", columns={"another_id"}) ++ * }) + */ + class SomeEntity + { + } +``` + +
diff --git a/packages/coding-standard/docs/phpstan_rules.md b/packages/coding-standard/docs/phpstan_rules.md new file mode 100644 index 00000000000..e69de29bb2d