Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule single_trait_insert_per_statementΒΆ

Each trait use must be done as single statement.

ExamplesΒΆ

Example #1ΒΆ

--- Original
+++ New
 <?php
 final class Example
 {
-    use Foo, Bar;
+    use Foo;use Bar;
 }

Rule setsΒΆ

The rule is part of the following rule sets:

Source classΒΆ

PhpCsFixer\Fixer\ClassNotation\SingleTraitInsertPerStatementFixer