@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | if (!$input->getArgument('username')) { |
| 104 | 104 | $question = new Question('Please choose a username:'); |
| 105 | - $question->setValidator(function ($username) { |
|
| 105 | + $question->setValidator(function($username) { |
|
| 106 | 106 | if (empty($username)) { |
| 107 | 107 | throw new \Exception('Username can not be empty'); |
| 108 | 108 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | if (!$input->getArgument('email')) { |
| 116 | 116 | $question = new Question('Please choose an email:'); |
| 117 | - $question->setValidator(function ($email) { |
|
| 117 | + $question->setValidator(function($email) { |
|
| 118 | 118 | if (empty($email)) { |
| 119 | 119 | throw new \Exception('Email can not be empty'); |
| 120 | 120 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | if (!$input->getArgument('password')) { |
| 128 | 128 | $question = new Question('Please choose a password:'); |
| 129 | - $question->setValidator(function ($password) { |
|
| 129 | + $question->setValidator(function($password) { |
|
| 130 | 130 | if (empty($password)) { |
| 131 | 131 | throw new \Exception('Password can not be empty'); |
| 132 | 132 | } |
@@ -160,9 +160,9 @@ |
||
| 160 | 160 | $resetToken = $this->resetPasswordHelper->generateResetToken($user); |
| 161 | 161 | } catch (ResetPasswordExceptionInterface $e) { |
| 162 | 162 | $this->addFlash('reset_password_error', sprintf( |
| 163 | - 'There was a problem handling your password reset request - %s', |
|
| 164 | - $e->getReason() |
|
| 165 | - )); |
|
| 163 | + 'There was a problem handling your password reset request - %s', |
|
| 164 | + $e->getReason() |
|
| 165 | + )); |
|
| 166 | 166 | |
| 167 | 167 | return $this->redirectToRoute('swp_user_check_email'); |
| 168 | 168 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | AssetsInstaller::class |
| 34 | 34 | ); |
| 35 | 35 | |
| 36 | - if($newDefinition = $this->getDefinitionIfExists($container, AssetsInstallerInterface::class)) { |
|
| 36 | + if ($newDefinition = $this->getDefinitionIfExists($container, AssetsInstallerInterface::class)) { |
|
| 37 | 37 | $newDefinition->setArgument(4, new Reference(ThemeHierarchyProviderInterface::class)); |
| 38 | 38 | } |
| 39 | 39 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | $tenantCode = $tenant->getCode(); |
| 57 | 57 | $themes = array_filter( |
| 58 | 58 | $themeRepository->findAll(), |
| 59 | - static function ($element) use (&$tenantCode) { |
|
| 59 | + static function($element) use (&$tenantCode) { |
|
| 60 | 60 | if (strpos($element->getName(), ThemeHelper::SUFFIX_SEPARATOR.$tenantCode)) { |
| 61 | 61 | return true; |
| 62 | 62 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | $themes[$themeName] = $theme; |
| 144 | 144 | |
| 145 | - if(isset($configuration['generatedData'])) { |
|
| 145 | + if (isset($configuration['generatedData'])) { |
|
| 146 | 146 | $theme->setGeneratedData($configuration['generatedData']); |
| 147 | 147 | } |
| 148 | 148 | } |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | { |
| 176 | 176 | $tenantCode = substr($themeName, strpos($themeName, '@') + 1); |
| 177 | 177 | |
| 178 | - return array_map(function ($parentName) use ($themeName, $existingThemes, $tenantCode) { |
|
| 178 | + return array_map(function($parentName) use ($themeName, $existingThemes, $tenantCode) { |
|
| 179 | 179 | $parentName .= '@'.$tenantCode; |
| 180 | 180 | if (!isset($existingThemes[$parentName])) { |
| 181 | 181 | throw new ThemeLoadingFailedException(sprintf( |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | */ |
| 197 | 197 | private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays) |
| 198 | 198 | { |
| 199 | - return array_map(function (array $authorArray) { |
|
| 199 | + return array_map(function(array $authorArray) { |
|
| 200 | 200 | return $this->themeAuthorFactory->createFromArray($authorArray); |
| 201 | 201 | }, $authorsArrays); |
| 202 | 202 | } |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | */ |
| 209 | 209 | private function convertScreenshotsArraysToScreenshotsObjects(array $screenshotsArrays) |
| 210 | 210 | { |
| 211 | - return array_map(function (array $screenshotArray) { |
|
| 211 | + return array_map(function(array $screenshotArray) { |
|
| 212 | 212 | return $this->themeScreenshotFactory->createFromArray($screenshotArray); |
| 213 | 213 | }, $screenshotsArrays); |
| 214 | 214 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | if (is_array($extraItem)) { |
| 101 | 101 | $extra = ArticleExtraEmbedField::newFromValue($key, $extraItem); |
| 102 | 102 | } else { |
| 103 | - $extra = ArticleExtraTextField::newFromValue($key, (string)$extraItem); |
|
| 103 | + $extra = ArticleExtraTextField::newFromValue($key, (string) $extraItem); |
|
| 104 | 104 | } |
| 105 | 105 | $extra->setArticle($article); |
| 106 | 106 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $this->addSql('ALTER TABLE swp_user DROP salt'); |
| 31 | 31 | $this->addSql('ALTER TABLE swp_user DROP last_login'); |
| 32 | 32 | $this->addSql('ALTER TABLE swp_user DROP password_requested_at'); |
| 33 | - if($schema->getTable('swp_user')->hasColumn('enabled')) { |
|
| 33 | + if ($schema->getTable('swp_user')->hasColumn('enabled')) { |
|
| 34 | 34 | $this->addSql('ALTER TABLE swp_user RENAME COLUMN enabled TO is_verified'); |
| 35 | 35 | } |
| 36 | 36 | $this->addSql('CREATE UNIQUE INDEX UNIQ_7384FB31F85E0677 ON swp_user (username)'); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $this->addSql('ALTER TABLE swp_user ADD salt VARCHAR(255) DEFAULT NULL'); |
| 52 | 52 | $this->addSql('ALTER TABLE swp_user ADD last_login TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL'); |
| 53 | 53 | $this->addSql('ALTER TABLE swp_user ADD password_requested_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL'); |
| 54 | - if($schema->getTable('swp_user')->hasColumn('is_verified')) { |
|
| 54 | + if ($schema->getTable('swp_user')->hasColumn('is_verified')) { |
|
| 55 | 55 | $this->addSql('ALTER TABLE swp_user RENAME COLUMN is_verified TO enabled'); |
| 56 | 56 | } |
| 57 | 57 | $this->addSql('CREATE UNIQUE INDEX uniq_7384fb3192fc23a8 ON swp_user (username_canonical)'); |