Completed
Push — master ( 33791f...e2f787 )
by Axel
11:03
created
src/system/RoutesModule/Helper/Base/AbstractCollectionFilterHelper.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -164,17 +164,17 @@  discard block
 block discarded – undo
164 164
                 $v = (string)$v;
165 165
                 if ('workflowState' === $k && 0 === strpos($v, '!')) {
166 166
                     $qb->andWhere('tbl.' . $k . ' != :' . $k)
167
-                       ->setParameter($k, substr($v, 1));
167
+                        ->setParameter($k, substr($v, 1));
168 168
                 } elseif (0 === strpos($v, '%')) {
169 169
                     $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
170
-                       ->setParameter($k, '%' . substr($v, 1) . '%');
170
+                        ->setParameter($k, '%' . substr($v, 1) . '%');
171 171
                 } elseif (in_array($k, ['schemes', 'methods'], true)) {
172 172
                     // multi list filter
173 173
                     $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
174
-                       ->setParameter($k, '%' . $v . '%');
174
+                        ->setParameter($k, '%' . $v . '%');
175 175
                 } else {
176 176
                     $qb->andWhere('tbl.' . $k . ' = :' . $k)
177
-                       ->setParameter($k, $v);
177
+                        ->setParameter($k, $v);
178 178
                 }
179 179
             }
180 180
         }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             // per default we show approved routes only
208 208
             $onlineStates = ['approved'];
209 209
             $qb->andWhere('tbl.workflowState IN (:onlineStates)')
210
-               ->setParameter('onlineStates', $onlineStates);
210
+                ->setParameter('onlineStates', $onlineStates);
211 211
         }
212 212
     
213 213
         return $qb;
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         }
275 275
     
276 276
         $qb->andWhere('tbl.createdBy = :userId')
277
-           ->setParameter('userId', $userId);
277
+            ->setParameter('userId', $userId);
278 278
     
279 279
         return $qb;
280 280
     }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $this->requestStack = $requestStack;
56 56
         $this->permissionHelper = $permissionHelper;
57 57
         $this->currentUserApi = $currentUserApi;
58
-        $this->showOnlyOwnEntries = (bool)$variableApi->get('ZikulaRoutesModule', 'showOnlyOwnEntries');
58
+        $this->showOnlyOwnEntries = (bool) $variableApi->get('ZikulaRoutesModule', 'showOnlyOwnEntries');
59 59
     }
60 60
     
61 61
     /**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     
162 162
             // field filter
163 163
             if ((!is_numeric($v) && '' !== $v) || (is_numeric($v) && 0 < $v)) {
164
-                $v = (string)$v;
164
+                $v = (string) $v;
165 165
                 if ('workflowState' === $k && 0 === strpos($v, '!')) {
166 166
                     $qb->andWhere('tbl.' . $k . ' != :' . $k)
167 167
                        ->setParameter($k, substr($v, 1));
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
             return $qb;
193 193
         }
194 194
     
195
-        $showOnlyOwnEntries = (bool)$request->query->getInt('own', (int) $this->showOnlyOwnEntries);
195
+        $showOnlyOwnEntries = (bool) $request->query->getInt('own', (int) $this->showOnlyOwnEntries);
196 196
         if ($showOnlyOwnEntries) {
197 197
             $qb = $this->addCreatorFilter($qb);
198 198
         }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     {
269 269
         if (null === $userId) {
270 270
             $userId = $this->currentUserApi->isLoggedIn()
271
-                ? (int)$this->currentUserApi->get('uid')
271
+                ? (int) $this->currentUserApi->get('uid')
272 272
                 : UsersConstant::USER_ID_ANONYMOUS
273 273
             ;
274 274
         }
Please login to merge, or discard this patch.
src/system/UsersModule/Controller/AccessController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,8 @@
 block discarded – undo
122 122
                 $form = $this->createForm(DefaultLoginType::class, ['uid' => $uid]);
123 123
                 $loginFormEvent = new LoginFormPostCreatedEvent($form);
124 124
                 $eventDispatcher->dispatch($loginFormEvent);
125
-                if ($form->count() > 3) { // count > 3 means that the LoginFormPostCreatedEvent event added some form children
125
+                if ($form->count() > 3) {
126
+// count > 3 means that the LoginFormPostCreatedEvent event added some form children
126 127
                     $form->handleRequest($request);
127 128
                     if ($form->isSubmitted() && $form->isValid()) {
128 129
                         $uid = $form->get('uid')->getData();
Please login to merge, or discard this patch.
src/system/BlocksModule/Twig/Extension/BlocksExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     public function getTests()
71 71
     {
72 72
         return [
73
-            new TwigTest('pendingContentCollectible', function ($obj) { return $obj instanceof PendingContentCollectible; }),
73
+            new TwigTest('pendingContentCollectible', function($obj) { return $obj instanceof PendingContentCollectible; }),
74 74
         ];
75 75
     }
76 76
 
Please login to merge, or discard this patch.
src/system/RoutesModule/Twig/TwigExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         );
97 97
 
98 98
         $container = $this->container;
99
-        $path = preg_replace_callback('#%(.*?)%#', static function ($matches) use ($container) {
99
+        $path = preg_replace_callback('#%(.*?)%#', static function($matches) use ($container) {
100 100
             return '<abbr title="' . htmlspecialchars($matches[0]) . '">'
101 101
                 . htmlspecialchars($container->getParameter($matches[1]))
102 102
                 . '</abbr>'
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         $defaults = $route->getDefaults();
107 107
         $requirements = $route->getRequirements();
108
-        $path = preg_replace_callback('#{(.*?)}#', function ($matches) use ($defaults, $requirements) {
108
+        $path = preg_replace_callback('#{(.*?)}#', function($matches) use ($defaults, $requirements) {
109 109
             $title = '';
110 110
             if (isset($defaults[$matches[1]])) {
111 111
                 $title .= $this->trans('Default: %value%', ['%value%' => htmlspecialchars($defaults[$matches[1]])]);
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Resources/skeleton/extension/BundleClass.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
 use Zikula\ExtensionsModule\Abstract<?php echo $type; ?>;
17 17
 
18
-class <?php echo $name; ?> extends Abstract<?php echo $type."\n"; ?>
18
+class <?php echo $name; ?> extends Abstract<?php echo $type . "\n"; ?>
19 19
 {
20 20
 }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Resources/skeleton/extension/composer.json.tpl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
             "class": "<?php echo str_replace('\\', '\\\\', $namespace); ?>\\<?php echo $bundleClass; ?>",
23 23
             "displayname": "<?php echo $bundleClass; ?>",
24 24
             "icon": "fas fa-layer-group",
25
-            "url": "<?php echo mb_strtolower($vendor.$name.$type); ?>",
25
+            "url": "<?php echo mb_strtolower($vendor . $name . $type); ?>",
26 26
 <?php if ('Module' === $type) { ?>
27 27
             "securityschema": {
28
-                "<?php echo $vendor.$name.$type; ?>::": "::"
28
+                "<?php echo $vendor . $name . $type; ?>::": "::"
29 29
             },
30 30
 <?php } ?>
31 31
             "capabilities": {
Please login to merge, or discard this patch.
src/system/ThemeModule/Tests/Engine/AssetBagTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         $bag->add(['C' => 2]);
139 139
         $bag->add(['A' => 5]);
140 140
         $bag->add(['A' => 7]);
141
-        $this->assertEquals(3, $bag->allWithWeight()['A']);  // asset listed at lowest weight submitted
141
+        $this->assertEquals(3, $bag->allWithWeight()['A']); // asset listed at lowest weight submitted
142 142
         $expected = [
143 143
             'B' => 1,
144 144
             'C' => 2,
Please login to merge, or discard this patch.
ZAuthModule/AuthenticationMethod/AbstractNativeAuthenticationMethod.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,8 @@
 block discarded – undo
111 111
             return $mapping->getUid();
112 112
         } elseif ($passwordEncoder->isPasswordValid($mapping->getPass(), $data['pass'], null)) {
113 113
             // new way
114
-            if ($passwordEncoder->needsRehash($mapping->getPass())) { // check to update hash to newer algo
114
+            if ($passwordEncoder->needsRehash($mapping->getPass())) {
115
+// check to update hash to newer algo
115 116
                 $this->updatePassword($mapping, $data['pass']);
116 117
             }
117 118
 
Please login to merge, or discard this patch.
src/system/ZAuthModule/Listener/DeletePendingRegistrationsListener.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 Your registration at %site% associated with this email (%email%) has been deleted from the site.
109 109
 This could have happened because you have delayed too long in confirming your email address, or because the administrator manually deleted your registration.
110 110
 If you have any questions, please contact the site administrator or re-register.
111
-EOT
111
+eot
112 112
         , ['%site%' => $siteName, '%email%' => $event->getUser()->getEmail()]));
113 113
         try {
114 114
             $this->mailer->send($email);
Please login to merge, or discard this patch.