Skip to content

Commit

Permalink
Fix feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Jul 2, 2024
1 parent 0ddd1ad commit fc3fa75
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions webapp/migrations/Version20240629154640.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ public function getDescription(): string
public function up(Schema $schema): void
{
foreach(self::NEW_ROLES as $role => $description) {

Check failure on line 22 in webapp/migrations/Version20240629154640.php

View workflow job for this annotation

GitHub Actions / phpcs

Expected 1 space(s) after FOREACH keyword; 0 found
$existingRole = $this->connection->fetchAssociative('SELECT * FROM role WHERE role = :role', ['role' => $role]);
if (!$existingRole) {
$this->addSql(
'INSERT INTO role (`role`, `description`) VALUES (:role, :desc)',
['role' => $role, 'desc' => $description]
);
}
$this->addSql(
'INSERT INTO role (`role`, `description`) VALUES (:role, :desc)',
['role' => $role, 'desc' => $description]*
);
}
}

Expand Down

0 comments on commit fc3fa75

Please sign in to comment.