This repository has been archived by the owner on Dec 3, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CS] update README and prepare for split
- Loading branch information
1 parent
d39c27c
commit 018d5aa
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.