@@ -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 | } |
@@ -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 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | if ('' !== $sessionId) { |
| 46 | 46 | $qb->orWhere('tbl.sesid = :sid') |
| 47 | - ->setParameter('sid', $sessionId); |
|
| 47 | + ->setParameter('sid', $sessionId); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | $query = $qb->getQuery(); |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | $res = $qb->execute(); |
| 107 | 107 | foreach ($res->fetchAll() as $row) { |
| 108 | 108 | if (!array_key_exists($row['bundlename'], $fileExtensions)) { |
| 109 | - $this->removeById((int)$row['id']); |
|
| 109 | + $this->removeById((int) $row['id']); |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | $query->getResult(); |
| 92 | 92 | |
| 93 | 93 | // add new block positions |
| 94 | - foreach ((array)$blockOrder as $order => $bid) { |
|
| 94 | + foreach ((array) $blockOrder as $order => $bid) { |
|
| 95 | 95 | $placement = new BlockPlacementEntity(); |
| 96 | 96 | $placement->setPosition($em->getReference('ZikulaBlocksModule:BlockPositionEntity', $position)); |
| 97 | 97 | $placement->setBlock($em->getReference('ZikulaBlocksModule:BlockEntity', $bid)); |