@@ -108,7 +108,7 @@ |
||
108 | 108 | Your registration at %site% associated with this email (%email%) has been deleted from the site. |
109 | 109 | This could have happened because you have delayed too long in confirming your email address, or because the administrator manually deleted your registration. |
110 | 110 | If you have any questions, please contact the site administrator or re-register. |
111 | -EOT |
|
111 | +eot |
|
112 | 112 | , ['%site%' => $siteName, '%email%' => $event->getUser()->getEmail()])); |
113 | 113 | try { |
114 | 114 | $this->mailer->send($email); |
@@ -260,7 +260,7 @@ |
||
260 | 260 | if ($this->mailLoggingEnabled) { |
261 | 261 | $this->logger->info(sprintf('Email sent to %s', 'multiple users'), [ |
262 | 262 | 'in' => __METHOD__, |
263 | - 'users' => array_reduce($users, function (UserEntity $user) { return $user->getEmail() . ','; }, 'emails: ') |
|
263 | + 'users' => array_reduce($users, function(UserEntity $user) { return $user->getEmail() . ','; }, 'emails: ') |
|
264 | 264 | ]); |
265 | 265 | } |
266 | 266 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } else { |
65 | 65 | $quote = in_array(mb_substr((string) $value, 0, 1), ['\'', '"']) ? '\'' : ''; |
66 | 66 | $value = !empty($quote) ? trim((string) $value, '\'"') : (string) $value; |
67 | - $value = $quote . urlencode($value) . $quote; |
|
67 | + $value = $quote . urlencode($value) . $quote; |
|
68 | 68 | } |
69 | 69 | $lines[] = $key . '=' . $value; |
70 | 70 | } |
@@ -52,8 +52,8 @@ |
||
52 | 52 | { |
53 | 53 | switch ($oldVersion) { |
54 | 54 | case '2.4.0': // shipped with Core-1.4.3 |
55 | - $this->setVar('mailwarning', (bool)$this->getVar('mailwarning')); |
|
56 | - $this->setVar('hideclosed', (bool)$this->getVar('hideclosed')); |
|
55 | + $this->setVar('mailwarning', (bool) $this->getVar('mailwarning')); |
|
56 | + $this->setVar('hideclosed', (bool) $this->getVar('hideclosed')); |
|
57 | 57 | $this->setVar('hidePrivate', false); |
58 | 58 | case '2.4.1': |
59 | 59 | /** @var UserEntity $anonymousUser */ |
@@ -94,7 +94,7 @@ |
||
94 | 94 | { |
95 | 95 | switch ($oldVersion) { |
96 | 96 | case '2.9.11': // shipped with Core-1.4.3 |
97 | - $this->setSystemVar('UseCompression', (bool)$this->getSystemVar('UseCompression')); |
|
97 | + $this->setSystemVar('UseCompression', (bool) $this->getSystemVar('UseCompression')); |
|
98 | 98 | case '2.9.12': // shipped with Core-1.4.4 |
99 | 99 | // reconfigure TZ settings |
100 | 100 | $this->setGuestTimeZone(); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | (new Dotenv(false))->populate($env); |
31 | 31 | } else { |
32 | 32 | // load all the .env files |
33 | - (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env'); |
|
33 | + (new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | $_SERVER += $_ENV; |
@@ -178,7 +178,7 @@ |
||
178 | 178 | if ($input->isInteractive()) { |
179 | 179 | $io->text($this->translator->trans('Beginning user migration...')); |
180 | 180 | } |
181 | - $userMigrationMaxuid = (int)$this->migrationHelper->getMaxUnMigratedUid(); |
|
181 | + $userMigrationMaxuid = (int) $this->migrationHelper->getMaxUnMigratedUid(); |
|
182 | 182 | if ($input->isInteractive()) { |
183 | 183 | $progressBar = new ProgressBar($output, (int) ceil($count / MigrationHelper::BATCH_LIMIT)); |
184 | 184 | $progressBar->start(); |
@@ -113,7 +113,7 @@ |
||
113 | 113 | $this->lifetime, |
114 | 114 | $this->kernel->getCacheDir() . '/assets/' . $type |
115 | 115 | ); |
116 | - $key = md5(serialize($assets)) . (int)$this->minify . (int)$this->compress . $this->lifetime . '.combined.' . $type; |
|
116 | + $key = md5(serialize($assets)) . (int) $this->minify . (int) $this->compress . $this->lifetime . '.combined.' . $type; |
|
117 | 117 | $cacheService->get($key, function() use ($cachedFiles, $type) { |
118 | 118 | $data = []; |
119 | 119 | foreach ($cachedFiles as $k => $file) { |
@@ -111,8 +111,8 @@ |
||
111 | 111 | '); |
112 | 112 | foreach ($rows as $row) { |
113 | 113 | $this->extensionStateMap[$row['name']] = [ |
114 | - 'state' => (int)$row['state'], |
|
115 | - 'id' => (int)$row['id'], |
|
114 | + 'state' => (int) $row['state'], |
|
115 | + 'id' => (int) $row['id'], |
|
116 | 116 | ]; |
117 | 117 | } |
118 | 118 |