Completed
Pull Request — master (#4319)
by Axel
04:56
created
src/Zikula/CoreBundle/Helper/LocalDotEnvHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/system/GroupsModule/GroupsModuleInstaller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.
src/system/SettingsModule/SettingsModuleInstaller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Zikula/CoreInstallerBundle/Command/UpgradeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/system/ThemeModule/Engine/Asset/Merger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Helper/PersistedBundleHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,8 +111,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/system/SearchModule/Entity/Repository/SearchResultRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Helper/BundlesSchemaHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
config/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.