Test Setup Failed
Pull Request — master (#4514)
by Axel
05:14
created
src/system/SecurityCenterModule/Helper/CacheDirHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
                     // this uses always a fixed environment (e.g. "prod") that is serialized
59 59
                     // in purifier configuration
60 60
                     // so ensure the main directory exists even if another environment is currently used
61
-                    $parentDirectory = (string)s($cacheDirectory)->slice(0, -9);
61
+                    $parentDirectory = (string) s($cacheDirectory)->slice(0, -9);
62 62
                     if (!$fs->exists($parentDirectory)) {
63 63
                         $fs->mkdir($parentDirectory);
64 64
                     }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Command/GenerateTestUsersCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
         $this->verified = in_array((int) $input->getOption('verified'), [0, 1, 2]) ? (int) $input->getOption('verified') : 1;
134 134
         $regDate = $input->getOption('regdate') ?? $this->nowUTC;
135 135
         $this->range = is_string($regDate) && '>' === $regDate[0];
136
-        $this->regDate = $this->range ? (string)s($regDate)->slice(1) : $regDate;
136
+        $this->regDate = $this->range ? (string) s($regDate)->slice(1) : $regDate;
137 137
 
138 138
         $io->title('User generation utility');
139 139
         $io->text('Generating users...');
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Maker/Validators.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 {
22 22
     public static function validateBundleNamespace(InputInterface $input, $allowSuffix = false): string
23 23
     {
24
-        $namespace = (string)s($input->getArgument('namespace'))->replace('/', '\\')->trim();
24
+        $namespace = (string) s($input->getArgument('namespace'))->replace('/', '\\')->trim();
25 25
         if (!preg_match('/^(?:[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\\\?)+$/', $namespace)) {
26 26
             throw new InvalidArgumentException('The namespace contains invalid characters.');
27 27
         }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         // validate reserved keywords
30 30
         $reserved = self::getReservedWords();
31 31
         foreach (explode('\\', $namespace) as $word) {
32
-            if (in_array((string)s($word)->lower(), $reserved, true)) {
32
+            if (in_array((string) s($word)->lower(), $reserved, true)) {
33 33
                 throw new InvalidArgumentException(sprintf('The namespace cannot contain reserved words ("%s").', $word));
34 34
             }
35 35
         }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Maker/ExtensionMaker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                     'namespace' => $namespace . $type,
166 166
                     'type' => $type,
167 167
                     'name' => $bundleClassNameDetails->getShortName(),
168
-                    'vendor' => (string)s($namespace)->before('\\'),
168
+                    'vendor' => (string) s($namespace)->before('\\'),
169 169
                 ]
170 170
             );
171 171
         }
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
                 [
193 193
                     'namespace' => $namespace . $type,
194 194
                     'type' => $type,
195
-                    'vendor' => (string)s($namespace)->before('\\'),
196
-                    'name' => (string)s($namespace)->after('\\'),
195
+                    'vendor' => (string) s($namespace)->before('\\'),
196
+                    'name' => (string) s($namespace)->after('\\'),
197 197
                     'bundleClass' => $bundleClass,
198 198
                 ]
199 199
             );
Please login to merge, or discard this patch.
src/Zikula/CoreInstallerBundle/Helper/PreCore3UpgradeHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $yamlHelper = new YamlDumper($this->projectDir . '/config', 'services_custom.yaml');
49 49
         $params = $yamlHelper->getParameters();
50 50
         if (isset($params['core_installed_version']) && version_compare($params['core_installed_version'], '3.0.0', '<')) {
51
-            $params['database_driver'] = (string)s($params['database_driver'])->trimStart('pdo_');
51
+            $params['database_driver'] = (string) s($params['database_driver'])->trimStart('pdo_');
52 52
             (new DbCredsHelper($this->projectDir))->writeDatabaseDsn($params);
53 53
             (new LocalDotEnvHelper($this->projectDir))->writeLocalEnvVars(['ZIKULA_INSTALLED' => $params['core_installed_version']]);
54 54
             unset($params['core_installed_version']);
Please login to merge, or discard this patch.
src/Zikula/HookBundle/Collector/HookCollector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         if (self::HOOK_SUBSCRIBE_OWN === $type) {
138 138
             return $this->containsSelfAllowedProvider($moduleName);
139 139
         }
140
-        $variable = (string)s($type)->slice(5)->append('sByOwner');
140
+        $variable = (string) s($type)->slice(5)->append('sByOwner');
141 141
         $array = $this->{$variable};
142 142
 
143 143
         return isset($array[$moduleName]);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         if (!in_array($type, [self::HOOK_SUBSCRIBER, self::HOOK_PROVIDER], true)) {
149 149
             throw new InvalidArgumentException('Only hook_provider and hook_subscriber are valid values.');
150 150
         }
151
-        $variable = (string)s($type)->slice(5)->append('sByOwner');
151
+        $variable = (string) s($type)->slice(5)->append('sByOwner');
152 152
         $array = $this->{$variable};
153 153
 
154 154
         return array_keys($array);
Please login to merge, or discard this patch.
src/system/ThemeModule/Engine/ParameterBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
     private function &resolvePath(string $key, bool $writeContext = false): array
174 174
     {
175 175
         $array = &$this->parameters;
176
-        $key = (string)(s($key)->trimStart($this->ns));
176
+        $key = (string) (s($key)->trimStart($this->ns));
177 177
 
178 178
         // Check if there is anything to do, else return
179 179
         if (!$key) {
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Helper/LocalDotEnvHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@
 block discarded – undo
66 66
             } else {
67 67
                 $quote = $value->startsWith('\'') || $value->startsWith('"') ? '\'' : '';
68 68
                 $value = !empty($quote) ? $value->trim('\'')->trim('"') : $value;
69
-                $value = $quote . urlencode((string)$value) . $quote;
69
+                $value = $quote . urlencode((string) $value) . $quote;
70 70
             }
71
-            $lines[] = $key . '=' . (string)$value;
71
+            $lines[] = $key . '=' . (string) $value;
72 72
         }
73 73
 
74 74
         return trim(implode("\n", $lines));
Please login to merge, or discard this patch.