Passed
Push — master ( 623f1c...608aef )
by Craig
06:30
created
src/system/RoutesModule/Helper/Base/AbstractCollectionFilterHelper.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -171,14 +171,14 @@  discard block
 block discarded – undo
171 171
                 if ((!is_numeric($v) && $v != '') || (is_numeric($v) && $v > 0)) {
172 172
                     if ($k == 'workflowState' && substr($v, 0, 1) == '!') {
173 173
                         $qb->andWhere('tbl.' . $k . ' != :' . $k)
174
-                           ->setParameter($k, substr($v, 1, strlen($v)-1));
174
+                            ->setParameter($k, substr($v, 1, strlen($v)-1));
175 175
                     } elseif (substr($v, 0, 1) == '%') {
176 176
                         $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
177
-                           ->setParameter($k, '%' . $v . '%');
177
+                            ->setParameter($k, '%' . $v . '%');
178 178
                     } else {
179 179
                         $qb->andWhere('tbl.' . $k . ' = :' . $k)
180
-                           ->setParameter($k, $v);
181
-                   }
180
+                            ->setParameter($k, $v);
181
+                    }
182 182
                 }
183 183
             }
184 184
         }
@@ -282,10 +282,10 @@  discard block
 block discarded – undo
282 282
     
283 283
         if (is_array($userId)) {
284 284
             $qb->andWhere('tbl.createdBy IN (:userIds)')
285
-               ->setParameter('userIds', $userId);
285
+                ->setParameter('userIds', $userId);
286 286
         } else {
287 287
             $qb->andWhere('tbl.createdBy = :userId')
288
-               ->setParameter('userId', $userId);
288
+                ->setParameter('userId', $userId);
289 289
         }
290 290
     
291 291
         return $qb;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
                 if ((!is_numeric($v) && $v != '') || (is_numeric($v) && $v > 0)) {
172 172
                     if ($k == 'workflowState' && substr($v, 0, 1) == '!') {
173 173
                         $qb->andWhere('tbl.' . $k . ' != :' . $k)
174
-                           ->setParameter($k, substr($v, 1, strlen($v)-1));
174
+                           ->setParameter($k, substr($v, 1, strlen($v) - 1));
175 175
                     } elseif (substr($v, 0, 1) == '%') {
176 176
                         $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
177 177
                            ->setParameter($k, '%' . $v . '%');
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,6 @@
 block discarded – undo
17 17
 use Symfony\Component\HttpFoundation\RequestStack;
18 18
 use Zikula\UsersModule\Api\ApiInterface\CurrentUserApiInterface;
19 19
 use Zikula\UsersModule\Constant as UsersConstant;
20
-use Zikula\RoutesModule\Entity\RouteEntity;
21
-use Zikula\RoutesModule\Entity\Factory\RoutesFactory;
22 20
 
23 21
 /**
24 22
  * Entity collection filter helper base class.
Please login to merge, or discard this patch.
src/system/PermissionsModule/Tests/Api/PermissionApiTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $this->userRepo
56 56
             ->method('findByUids')
57 57
             ->with($this->anything())
58
-            ->will($this->returnCallback(function (array $uids) {
58
+            ->will($this->returnCallback(function(array $uids) {
59 59
                 $groups = [];
60 60
                 // getGroups returns [gid => $group, gid => $group, ...]
61 61
                 if (in_array(self::RANDOM_USER_ID, $uids)) {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         $this->currentUserApi
126 126
             ->method('get')
127 127
             ->with($this->equalTo('uid'))
128
-            ->will($this->returnCallback(function () use ($uid) {
128
+            ->will($this->returnCallback(function() use ($uid) {
129 129
                 return isset($uid) ? $uid : Constant::USER_ID_ANONYMOUS;
130 130
             }));
131 131
         $api = new PermissionApi($this->permRepo, $this->userRepo, $this->currentUserApi, $this->translator);
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
@@ -70,8 +70,8 @@
 block discarded – undo
70 70
         switch ($oldVersion) {
71 71
             case '2.3.2':
72 72
             case '2.4.0':
73
-                $this->setVar('mailwarning', (bool) $this->getVar('mailwarning'));
74
-                $this->setVar('hideclosed', (bool) $this->getVar('hideclosed'));
73
+                $this->setVar('mailwarning', (bool)$this->getVar('mailwarning'));
74
+                $this->setVar('hideclosed', (bool)$this->getVar('hideclosed'));
75 75
                 $this->setVar('hidePrivate', false);
76 76
             case '2.4.1':
77 77
                 /** @var UserEntity $anonymousUser */
Please login to merge, or discard this patch.
src/system/CategoriesModule/Entity/CategoryEntity.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -383,7 +383,7 @@
 block discarded – undo
383 383
 
384 384
     /**
385 385
      * get the category display name
386
-     * @param $lang
386
+     * @param string $lang
387 387
      *
388 388
      * @return array|string the category display name(s)
389 389
      */
Please login to merge, or discard this patch.
src/system/UsersModule/Twig/Extension/OnlineExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,6 +69,6 @@
 block discarded – undo
69 69
             ->andWhere(Criteria::expr()->gt('lastused', $since));
70 70
         $online = $this->sessionRepository->matching($c)->count();
71 71
 
72
-        return (bool) $online;
72
+        return (bool)$online;
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
src/system/RoutesModule/Form/Handler/Common/Base/AbstractEditHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@
 block discarded – undo
292 292
         $routeParams = $this->request->get('_route_params', []);
293 293
         if (empty($this->idValue)) {
294 294
             if (array_key_exists($this->idField, $routeParams)) {
295
-                $this->idValue = (int) !empty($routeParams[$this->idField]) ? $routeParams[$this->idField] : 0;
295
+                $this->idValue = (int)!empty($routeParams[$this->idField]) ? $routeParams[$this->idField] : 0;
296 296
             }
297 297
             if (0 === $this->idValue) {
298 298
                 $this->idValue = $this->request->query->getInt($this->idField, 0);
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Console/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         parent::__construct($kernel);
35 35
 
36 36
         $this->setName('Zikula');
37
-        $this->setVersion(ZikulaKernel::VERSION.' - '.$kernel->getName().'/'.$kernel->getEnvironment().($kernel->isDebug() ? '/debug' : ''));
37
+        $this->setVersion(ZikulaKernel::VERSION . ' - ' . $kernel->getName() . '/' . $kernel->getEnvironment() . ($kernel->isDebug() ? '/debug' : ''));
38 38
     }
39 39
 
40 40
     protected function registerCommands()
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
@@ -91,7 +91,8 @@
 block discarded – undo
91 91
                 $form = $this->createForm(DefaultLoginType::class, ['uid' => $uid]);
92 92
                 $loginFormEvent = new UserFormAwareEvent($form);
93 93
                 $dispatcher->dispatch(AccessEvents::AUTHENTICATION_FORM, $loginFormEvent);
94
-                if ($form->count() > 3) { // count > 3 means that the AUTHENTICATION_FORM event added some form children
94
+                if ($form->count() > 3) {
95
+// count > 3 means that the AUTHENTICATION_FORM event added some form children
95 96
                     $form->handleRequest($request);
96 97
                     if ($form->isValid() && $form->isSubmitted()) {
97 98
                         $uid = $form->get('uid')->getData();
Please login to merge, or discard this patch.
src/system/ZAuthModule/Form/Type/ConfigType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             /**
133 133
              * Form Listeners
134 134
              */
135
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
135
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
136 136
                 $data = $event->getData();
137 137
                 // clear anti-spam answer if there is no question
138 138
                 if (empty($data[ZAuthConstant::MODVAR_REGISTRATION_ANTISPAM_QUESTION])) {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             'translator' => null,
161 161
             'constraints' => [
162 162
                 new Callback([
163
-                    'callback' => function ($data, ExecutionContextInterface $context) {
163
+                    'callback' => function($data, ExecutionContextInterface $context) {
164 164
                         if (!empty($data[ZAuthConstant::MODVAR_REGISTRATION_ANTISPAM_QUESTION]) && empty($data[ZAuthConstant::MODVAR_REGISTRATION_ANTISPAM_ANSWER])) {
165 165
                             $context->buildViolation('If a spam protection question is provided, then a spam protection answer must also be provided.')
166 166
                                 ->atPath(ZAuthConstant::MODVAR_REGISTRATION_ANTISPAM_ANSWER)
Please login to merge, or discard this patch.