Completed
Push — master ( fe527d...66e716 )
by Craig
48:47 queued 39:29
created
src/system/CategoriesModule/Entity/CategoryEntity.php 2 patches
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.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 
12 12
 namespace Zikula\CategoriesModule\Entity;
13 13
 
14
-use Zikula\Core\Doctrine\EntityAccess;
15
-use Doctrine\ORM\Mapping as ORM;
16 14
 use Doctrine\Common\Collections\ArrayCollection;
15
+use Doctrine\ORM\Mapping as ORM;
17 16
 use Gedmo\Mapping\Annotation as Gedmo;
17
+use Zikula\Core\Doctrine\EntityAccess;
18 18
 
19 19
 /**
20 20
  * Category entity.
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 2 patches
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.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
 use Zikula\Core\Doctrine\EntityAccess;
28 28
 use Zikula\PageLockModule\Api\ApiInterface\LockingApiInterface;
29 29
 use Zikula\PermissionsModule\Api\ApiInterface\PermissionApiInterface;
30
-use Zikula\UsersModule\Api\ApiInterface\CurrentUserApiInterface;
31 30
 use Zikula\RoutesModule\Entity\Factory\EntityFactory;
32 31
 use Zikula\RoutesModule\Helper\ControllerHelper;
33 32
 use Zikula\RoutesModule\Helper\ModelHelper;
34 33
 use Zikula\RoutesModule\Helper\WorkflowHelper;
34
+use Zikula\UsersModule\Api\ApiInterface\CurrentUserApiInterface;
35 35
 
36 36
 /**
37 37
  * This handler class handles the page events of editing forms.
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/ZAuthModule/Form/Type/LostPasswordType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $resolver->setDefaults([
85 85
             'translator' => null,
86 86
             'includeReset' => false,
87
-            'constraints' => new Callback(['callback' => function ($data, ExecutionContextInterface $context) use ($resolver) {
87
+            'constraints' => new Callback(['callback' => function($data, ExecutionContextInterface $context) use ($resolver) {
88 88
                 if (!isset($data['pass']) && empty($data['uname']) && empty($data['email'])) {
89 89
                     $context->buildViolation('Error! You must enter either your username or email address.')
90 90
                         ->addViolation();
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.
src/system/CategoriesModule/Form/Type/CategoryRegistryType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             ])
75 75
         ;
76 76
 
77
-        $formModifier = function (FormInterface $form, $modName = null) use ($options) {
77
+        $formModifier = function(FormInterface $form, $modName = null) use ($options) {
78 78
             $entities = null === $modName ? [] : $this->entitySelectionBuilder->buildFor($modName);
79 79
             $form->add('entityname', ChoiceType::class, [
80 80
                 'label' => $options['translator']->__('Entity'),
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
         $builder->addEventListener(
87 87
             FormEvents::PRE_SET_DATA,
88
-            function (FormEvent $event) use ($formModifier) {
88
+            function(FormEvent $event) use ($formModifier) {
89 89
                 /** @var CategoryRegistryEntity $data */
90 90
                 $data = $event->getData();
91 91
                 $formModifier($event->getForm(), $data->getModname());
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         $builder->get('modname')->addEventListener(
96 96
             FormEvents::POST_SUBMIT,
97
-            function (FormEvent $event) use ($formModifier) {
97
+            function(FormEvent $event) use ($formModifier) {
98 98
                 $modName = $event->getForm()->getData();
99 99
                 $formModifier($event->getForm()->getParent(), $modName);
100 100
             }
Please login to merge, or discard this patch.
src/system/RoutesModule/Helper/Base/AbstractViewHelper.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -243,10 +243,10 @@
 block discarded – undo
243 243
         $siteName = $this->variableApi->getSystemVar('sitename');
244 244
         $pageTitle = iconv('UTF-8', 'ASCII//TRANSLIT', $this->pageVars->get('title', ''));
245 245
         $fileTitle = iconv('UTF-8', 'ASCII//TRANSLIT', $siteName)
246
-                   . '-'
247
-                   . ($pageTitle != '' ? $pageTitle . '-' : '')
248
-                   . date('Ymd') . '.pdf';
249
-       $fileTitle = str_replace(' ', '_', $fileTitle);
246
+                    . '-'
247
+                    . ($pageTitle != '' ? $pageTitle . '-' : '')
248
+                    . date('Ymd') . '.pdf';
249
+        $fileTitle = str_replace(' ', '_', $fileTitle);
250 250
     
251 251
         /*
252 252
         if (true === $this->request->query->getBoolean('dbg', false)) {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
 use Zikula\Core\Response\PlainResponse;
21 21
 use Zikula\ExtensionsModule\Api\ApiInterface\VariableApiInterface;
22 22
 use Zikula\PermissionsModule\Api\ApiInterface\PermissionApiInterface;
23
-use Zikula\ThemeModule\Engine\ParameterBag;
24 23
 use Zikula\RoutesModule\Helper\ControllerHelper;
24
+use Zikula\ThemeModule\Engine\ParameterBag;
25 25
 
26 26
 /**
27 27
  * Helper base class for view layer methods.
Please login to merge, or discard this patch.
src/system/UsersModule/Twig/Extension/ProfileExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     /**
67 67
      * Displays the avatar of a given user.
68 68
      *
69
-     * @param int|string $uid        The user's id or name
69
+     * @param integer $uid        The user's id or name
70 70
      * @param array      $parameters Any additional arguments (e.g. width, height, size, rating)
71 71
      *
72 72
      * @return string
Please login to merge, or discard this patch.