Skip to content

Commit

Permalink
phpcs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
shahariaazam committed May 28, 2020
1 parent d5c49d8 commit 72e72bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/Controller/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public function verifyEmail(Request $request, UserRepository $repository): Respo
$entityManager->flush();

$this->addFlash('success', 'Email address verification successful');

return $this->redirectToRoute('app_login');
}

Expand Down
10 changes: 5 additions & 5 deletions src/Migrations/Version20200528100238.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@
*/
final class Version20200528100238 extends AbstractMigration
{
public function getDescription() : string
public function getDescription(): string
{
return '';
}

public function up(Schema $schema) : void
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE user ADD is_email_verified TINYINT(1) NOT NULL, ADD email_verification_token VARCHAR(36) DEFAULT NULL, ADD email_verification_token_expired_at DATETIME DEFAULT NULL');
}

public function down(Schema $schema) : void
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE user DROP is_email_verified, DROP email_verification_token, DROP email_verification_token_expired_at');
}
Expand Down

0 comments on commit 72e72bf

Please sign in to comment.