mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 13:03:50 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -14,8 +14,6 @@ namespace Chill\Migrations\Person;
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
use function count;
|
||||
|
||||
/**
|
||||
* Check if each person do not have multiple addresses with the same valideFrom.
|
||||
*/
|
||||
@@ -34,11 +32,11 @@ class Version20160422000000 extends AbstractMigration
|
||||
$personWithTwoAddressWithSameValidFrom = $stmt->fetchAll();
|
||||
|
||||
foreach ($personWithTwoAddressWithSameValidFrom as $p) {
|
||||
$this->warnIf(true, 'The person with id ' . $p['id'] . ' has two adresses with the same validFrom date');
|
||||
$this->warnIf(true, 'The person with id '.$p['id'].' has two adresses with the same validFrom date');
|
||||
}
|
||||
|
||||
$this->abortIf(
|
||||
count($personWithTwoAddressWithSameValidFrom) !== 0,
|
||||
0 !== \count($personWithTwoAddressWithSameValidFrom),
|
||||
'There exists some person with multiple adress with the same validFrom'
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user