apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -22,7 +22,7 @@ class Version20160318111334 extends AbstractMigration
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
$this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.');
$this->addSql('ALTER TABLE chill_event_role DROP CONSTRAINT FK_AA714E54C54C8C93');
$this->addSql('ALTER TABLE chill_event_status DROP CONSTRAINT FK_A6CC85D0C54C8C93');
@@ -51,7 +51,7 @@ class Version20160318111334 extends AbstractMigration
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
$this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.');
$this->addSql('CREATE SEQUENCE chill_event_event_type_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE chill_event_role_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
@@ -59,37 +59,37 @@ class Version20160318111334 extends AbstractMigration
$this->addSql('CREATE SEQUENCE chill_event_event_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE chill_event_participation_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE TABLE chill_event_event_type ('
. 'id INT NOT NULL, name JSON NOT NULL, '
. 'active BOOLEAN NOT NULL, PRIMARY KEY(id))');
.'id INT NOT NULL, name JSON NOT NULL, '
.'active BOOLEAN NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE TABLE chill_event_role ('
. 'id INT NOT NULL, '
. 'type_id INT DEFAULT NULL, '
. 'name JSON NOT NULL, '
. 'active BOOLEAN NOT NULL, '
. 'PRIMARY KEY(id))');
.'id INT NOT NULL, '
.'type_id INT DEFAULT NULL, '
.'name JSON NOT NULL, '
.'active BOOLEAN NOT NULL, '
.'PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_AA714E54C54C8C93 ON chill_event_role (type_id)');
$this->addSql('CREATE TABLE chill_event_status (id INT NOT NULL, '
. 'type_id INT DEFAULT NULL, '
. 'name JSON NOT NULL, '
. 'active BOOLEAN NOT NULL, '
. 'PRIMARY KEY(id))');
.'type_id INT DEFAULT NULL, '
.'name JSON NOT NULL, '
.'active BOOLEAN NOT NULL, '
.'PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_A6CC85D0C54C8C93 ON chill_event_status (type_id)');
$this->addSql('CREATE TABLE chill_event_event ('
. 'id INT NOT NULL, '
. 'name VARCHAR(150) NOT NULL, '
. 'date DATE NOT NULL, '
. 'center_id INT DEFAULT NULL, '
. 'type_id INT DEFAULT NULL, '
. 'circle_id INT DEFAULT NULL, '
. 'PRIMARY KEY(id))');
.'id INT NOT NULL, '
.'name VARCHAR(150) NOT NULL, '
.'date DATE NOT NULL, '
.'center_id INT DEFAULT NULL, '
.'type_id INT DEFAULT NULL, '
.'circle_id INT DEFAULT NULL, '
.'PRIMARY KEY(id))');
$this->addSql('CREATE TABLE chill_event_participation ('
. 'id INT NOT NULL, '
. 'event_id INT DEFAULT NULL, '
. 'person_id INT DEFAULT NULL, '
. 'role_id INT DEFAULT NULL, '
. 'status_id INT DEFAULT NULL, '
. 'lastUpdate TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, '
. 'PRIMARY KEY(id))');
.'id INT NOT NULL, '
.'event_id INT DEFAULT NULL, '
.'person_id INT DEFAULT NULL, '
.'role_id INT DEFAULT NULL, '
.'status_id INT DEFAULT NULL, '
.'lastUpdate TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, '
.'PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_4E7768AC71F7E88B ON chill_event_participation (event_id)');
$this->addSql('CREATE INDEX IDX_4E7768AC217BBB47 ON chill_event_participation (person_id)');
$this->addSql('CREATE INDEX IDX_4E7768ACD60322AC ON chill_event_participation (role_id)');
@@ -99,44 +99,44 @@ class Version20160318111334 extends AbstractMigration
$this->addSql('CREATE INDEX IDX_FA320FC870EE2FF6 ON chill_event_event (circle_id)');
$this->addSql('ALTER TABLE chill_event_event '
. 'ADD CONSTRAINT FK_FA320FC85932F377 FOREIGN KEY (center_id) '
. 'REFERENCES centers (id) '
. 'NOT DEFERRABLE INITIALLY IMMEDIATE');
.'ADD CONSTRAINT FK_FA320FC85932F377 FOREIGN KEY (center_id) '
.'REFERENCES centers (id) '
.'NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chill_event_event '
. 'ADD CONSTRAINT FK_FA320FC870EE2FF6 FOREIGN KEY (circle_id) '
. 'REFERENCES scopes (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
.'ADD CONSTRAINT FK_FA320FC870EE2FF6 FOREIGN KEY (circle_id) '
.'REFERENCES scopes (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chill_event_event '
. 'ADD CONSTRAINT FK_FA320FC8C54C8C93 FOREIGN KEY (type_id) '
. 'REFERENCES chill_event_event_type (id) '
. 'NOT DEFERRABLE INITIALLY IMMEDIATE');
.'ADD CONSTRAINT FK_FA320FC8C54C8C93 FOREIGN KEY (type_id) '
.'REFERENCES chill_event_event_type (id) '
.'NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chill_event_role '
. 'ADD CONSTRAINT FK_AA714E54C54C8C93 FOREIGN KEY (type_id) '
. 'REFERENCES chill_event_event_type (id) '
. 'NOT DEFERRABLE INITIALLY IMMEDIATE');
.'ADD CONSTRAINT FK_AA714E54C54C8C93 FOREIGN KEY (type_id) '
.'REFERENCES chill_event_event_type (id) '
.'NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chill_event_status '
. 'ADD CONSTRAINT FK_A6CC85D0C54C8C93 '
. 'FOREIGN KEY (type_id) '
. 'REFERENCES chill_event_event_type (id) '
. 'NOT DEFERRABLE INITIALLY IMMEDIATE');
.'ADD CONSTRAINT FK_A6CC85D0C54C8C93 '
.'FOREIGN KEY (type_id) '
.'REFERENCES chill_event_event_type (id) '
.'NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chill_event_participation '
. 'ADD CONSTRAINT FK_4E7768AC71F7E88B '
. 'FOREIGN KEY (event_id) '
. 'REFERENCES chill_event_event (id) '
. 'NOT DEFERRABLE INITIALLY IMMEDIATE');
.'ADD CONSTRAINT FK_4E7768AC71F7E88B '
.'FOREIGN KEY (event_id) '
.'REFERENCES chill_event_event (id) '
.'NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chill_event_participation '
. 'ADD CONSTRAINT FK_4E7768AC217BBB47 '
. 'FOREIGN KEY (person_id) '
. 'REFERENCES Person (id) '
. 'NOT DEFERRABLE INITIALLY IMMEDIATE');
.'ADD CONSTRAINT FK_4E7768AC217BBB47 '
.'FOREIGN KEY (person_id) '
.'REFERENCES Person (id) '
.'NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chill_event_participation '
. 'ADD CONSTRAINT FK_4E7768ACD60322AC '
. 'FOREIGN KEY (role_id) '
. 'REFERENCES chill_event_role (id) '
. 'NOT DEFERRABLE INITIALLY IMMEDIATE');
.'ADD CONSTRAINT FK_4E7768ACD60322AC '
.'FOREIGN KEY (role_id) '
.'REFERENCES chill_event_role (id) '
.'NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chill_event_participation '
. 'ADD CONSTRAINT FK_4E7768AC6BF700BD '
. 'FOREIGN KEY (status_id) '
. 'REFERENCES chill_event_status (id) '
. 'NOT DEFERRABLE INITIALLY IMMEDIATE');
.'ADD CONSTRAINT FK_4E7768AC6BF700BD '
.'FOREIGN KEY (status_id) '
.'REFERENCES chill_event_status (id) '
.'NOT DEFERRABLE INITIALLY IMMEDIATE');
}
}