Completed
Push — master ( 6bc272...387eb9 )
by Craig
07:54
created
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 1 patch
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.
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.
src/system/ThemeModule/Entity/Repository/ThemeEntityRepository.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -115,6 +115,9 @@
 block discarded – undo
115 115
         $this->_em->flush();
116 116
     }
117 117
 
118
+    /**
119
+     * @param ThemeEntity $entity
120
+     */
118 121
     public function persistAndFlush($entity)
119 122
     {
120 123
         $this->_em->persist($entity);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
         $result = $query->getResult();
92 92
         $themesArray = [];
93 93
         foreach ($result as $theme) {
94
-            $themesArray[$theme->getName()]= $theme->toArray();
94
+            $themesArray[$theme->getName()] = $theme->toArray();
95 95
             $kernel = $this->getKernel(); // allow to throw exception outside the try/catch block
96 96
             try {
97 97
                 $themeBundle = $kernel->getTheme($theme['name']);
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/HookBundle/Controller/HookController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
                 }
203 203
 
204 204
                 // does the user have admin permissions on the provider module?
205
-                if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($hookproviders[$i]['name']."::", '::', ACCESS_ADMIN)) {
205
+                if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($hookproviders[$i]['name'] . "::", '::', ACCESS_ADMIN)) {
206 206
                     unset($hookproviders[$i]);
207 207
                     continue;
208 208
                 }
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Controller/ModuleController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,8 @@
 block discarded – undo
278 278
             throw new AccessDeniedException();
279 279
         }
280 280
         $extensionHelper = $this->get('zikula_extensions_module.extension_helper');
281
-        if (!$this->get('kernel')->isBundle($extension->getName()) && !$extensionHelper->isLegacyModuleType($extension)) { // @deprecated method call
281
+        if (!$this->get('kernel')->isBundle($extension->getName()) && !$extensionHelper->isLegacyModuleType($extension)) {
282
+// @deprecated method call
282 283
             $this->get('zikula_extensions_module.extension_state_helper')->updateState($extension->getId(), Constant::STATE_TRANSITIONAL);
283 284
             $this->get('zikula.cache_clearer')->clear('symfony');
284 285
 
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreInstallerBundle/Helper/MigrationHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * @param $uid
97
-     * @param $limit
97
+     * @param integer $limit
98 98
      * @return array
99 99
      */
100 100
     private function getUnMigratedUsers($uid, $limit)
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreInstallerBundle/Controller/UpgraderController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $request->getSession()->getFlashBag()->add('warning', implode('<hr>', $ini_warnings));
50 50
         }
51 51
 
52
-        $yamlDumper = new YamlDumper($this->container->get('kernel')->getRootDir() .'/config', 'custom_parameters.yml');
52
+        $yamlDumper = new YamlDumper($this->container->get('kernel')->getRootDir() . '/config', 'custom_parameters.yml');
53 53
         $yamlDumper->setParameter('upgrading', true);
54 54
         $request->setLocale($this->container->getParameter('locale'));
55 55
 
Please login to merge, or discard this patch.