Completed
Pull Request — master (#4514)
by Axel
06:46 queued 56s
created
src/system/RoutesModule/Form/Handler/Route/Base/AbstractEditHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
                 return $this->router->generate($routePrefix . 'view');
283 283
             case 'userOwnView':
284 284
             case 'adminOwnView':
285
-                return $this->router->generate($routePrefix . 'view', [ 'own' => 1 ]);
285
+                return $this->router->generate($routePrefix . 'view', ['own' => 1]);
286 286
             case 'userDisplay':
287 287
             case 'adminDisplay':
288 288
                 if (
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/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.