Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
[CS] update README and prepare for split
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 18, 2020
1 parent d39c27c commit 018d5aa
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
Empty file.
36 changes: 36 additions & 0 deletions packages/coding-standard/docs/phpcs_fixer_fixers.md
Original file line number Diff line number Diff line change
@@ -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
<?php

// ecs.php

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->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
{
}
```

<br>
Empty file.

0 comments on commit 018d5aa

Please sign in to comment.