@@ -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(); |
@@ -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 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | throw new LogicException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.'); |
22 | 22 | } |
23 | 23 | |
24 | -(new Dotenv())->bootEnv(dirname(__DIR__). '/.env'); |
|
24 | +(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env'); |
|
25 | 25 | |
26 | 26 | // on install or upgrade, check if system requirements are met. |
27 | 27 | (new RequirementChecker($_ENV['ZIKULA_INSTALLED']))->verify(); |