Completed
Pull Request — master (#4514)
by Axel
06:43 queued 01:55
created
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.
CategoriesModule/Form/DataTransformer/CategoriesCollectionTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             throw new InvalidConfigurationException("Option 'entityCategoryClass' must extend Zikula\\CategoriesModule\\Entity\\AbstractCategoryAssignment");
48 48
         }
49 49
         $this->entityCategoryClass = (string) $options['entityCategoryClass'];
50
-        $this->multiple = (bool)($options['multiple'] ?? false);
50
+        $this->multiple = (bool) ($options['multiple'] ?? false);
51 51
         $this->entityManager = $options['em'];
52 52
     }
53 53
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $class = $this->entityCategoryClass;
58 58
 
59 59
         foreach ($value as $regId => $categories) {
60
-            $regId = (int)mb_substr($regId, mb_strpos($regId, '_') + 1);
60
+            $regId = (int) mb_substr($regId, mb_strpos($regId, '_') + 1);
61 61
             $subCollection = new ArrayCollection();
62 62
             if (!is_array($categories) && $categories instanceof CategoryEntity) {
63 63
                 $categories = [$categories];
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Controller/HelpController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         // rewrite local links
77 77
         $content = preg_replace_callback(
78 78
             '/\[(.*?)\]\((.*?)\)/',
79
-            function ($match) use ($router, $moduleName, $raw) {
79
+            function($match) use ($router, $moduleName, $raw) {
80 80
                 $pageName = s($match[2]);
81 81
                 if (false === mb_strpos($match[2], '.md')) {
82 82
                     return $match[0];
Please login to merge, or discard this patch.
src/system/AdminModule/Helper/AdminLinksHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     public function sortAdminModsByOrder(array $adminLinks = []): array
22 22
     {
23
-        usort($adminLinks, function (array $a, array $b) {
23
+        usort($adminLinks, function(array $a, array $b) {
24 24
             if ((int) $a['order'] === (int) $b['order']) {
25 25
                 return strcmp($a['moduleName'], $b['moduleName']);
26 26
             }
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
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
         while (!feof($source)) {
167 167
             if ('css' === $ext) {
168 168
                 $line = fgets($source, 4096);
169
-                $lineParse = (string)s(false !== $line ? trim($line) : '');
169
+                $lineParse = (string) s(false !== $line ? trim($line) : '');
170 170
                 $lineParseLength = mb_strlen($lineParse, 'UTF-8');
171 171
                 $newLine = '';
172 172
                 // parse line char by char
Please login to merge, or discard this patch.
src/system/RoutesModule/Helper/Base/AbstractCollectionFilterHelper.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -160,17 +160,17 @@  discard block
 block discarded – undo
160 160
                 $v = (string) $v;
161 161
                 if ('workflowState' === $k && 0 === strpos($v, '!')) {
162 162
                     $qb->andWhere('tbl.' . $k . ' != :' . $k)
163
-                       ->setParameter($k, substr($v, 1));
163
+                        ->setParameter($k, substr($v, 1));
164 164
                 } elseif (0 === strpos($v, '%')) {
165 165
                     $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
166
-                       ->setParameter($k, '%' . substr($v, 1) . '%');
166
+                        ->setParameter($k, '%' . substr($v, 1) . '%');
167 167
                 } elseif (in_array($k, ['schemes', 'methods'], true)) {
168 168
                     // multi list filter
169 169
                     $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
170
-                       ->setParameter($k, '%' . $v . '%');
170
+                        ->setParameter($k, '%' . $v . '%');
171 171
                 } else {
172 172
                     $qb->andWhere('tbl.' . $k . ' = :' . $k)
173
-                       ->setParameter($k, $v);
173
+                        ->setParameter($k, $v);
174 174
                 }
175 175
             }
176 176
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
             // per default we show approved routes only
204 204
             $onlineStates = ['approved'];
205 205
             $qb->andWhere('tbl.workflowState IN (:onlineStates)')
206
-               ->setParameter('onlineStates', $onlineStates);
206
+                ->setParameter('onlineStates', $onlineStates);
207 207
         }
208 208
     
209 209
         return $qb;
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         }
271 271
     
272 272
         $qb->andWhere('tbl.createdBy = :userId')
273
-           ->setParameter('userId', $userId);
273
+            ->setParameter('userId', $userId);
274 274
     
275 275
         return $qb;
276 276
     }
Please login to merge, or discard this patch.