Completed
Push — master ( fe527d...66e716 )
by Craig
48:47 queued 39:29
created
src/lib/Zikula/Bundle/CoreBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function __construct($debug)
31 31
     {
32
-        $this->debug = (bool) $debug;
32
+        $this->debug = (bool)$debug;
33 33
     }
34 34
 
35 35
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         ->fixXmlConfig('fallback')
57 57
         ->children()
58 58
         ->arrayNode('fallbacks')
59
-        ->beforeNormalization()->ifString()->then(function ($v) {
59
+        ->beforeNormalization()->ifString()->then(function($v) {
60 60
             return [$v];
61 61
         })->end()
62 62
         ->prototype('scalar')->end()
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Tests/Twig/Node/SwitchNodeTest.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     case 0:
64 64
         echo "case 0";
65 65
 }
66
-EOF
66
+eof
67 67
         ];
68 68
 
69 69
         // #2 switch with two cases, second with break
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         echo "case 1";
90 90
         break;
91 91
 }
92
-EOF
92
+eof
93 93
         ];
94 94
 
95 95
         // #3 switch with two cases (second with break) and default
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     default:
118 118
         echo "default case";
119 119
 }
120
-EOF
120
+eof
121 121
         ];
122 122
 
123 123
         // #4 switch with two cases (first without body, second with break) and default
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     default:
145 145
         echo "default case";
146 146
 }
147
-EOF
147
+eof
148 148
         ];
149 149
 
150 150
         return $tests;
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Tests/Functional/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
         $fs = new Filesystem();
28 28
         if (!$fs->isAbsolutePath($config)) {
29
-            $config = __DIR__.'/config/'.$config;
29
+            $config = __DIR__ . '/config/' . $config;
30 30
         }
31 31
 
32 32
         if (!file_exists($config)) {
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Tests/Bundle/MetaDataTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         }
119 119
     }
120 120
 }
121
-EOF
121
+eof
122 122
         ;
123 123
 
124 124
         return json_decode($json, true);
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Command/BootstrapBundlesCommand.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             ->setDescription('Loads bundles into persistences')
25 25
             ->setHelp(<<<'EOT'
26 26
 The <info>scan:bundles</info> command loads bundle table.
27
-EOT
27
+eot
28 28
             )
29 29
             ->setDefinition([
30 30
                 new InputArgument('create', InputArgument::OPTIONAL, 'Create schema'),
Please login to merge, or discard this patch.
src/system/RoutesModule/Base/AbstractRoutesModuleInstaller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     /**
130 130
      * Build array with all entity classes for ZikulaRoutesModule.
131 131
      *
132
-     * @return array list of class names
132
+     * @return string[] list of class names
133 133
      */
134 134
     protected function listEntityClasses()
135 135
     {
Please login to merge, or discard this patch.
src/system/GroupsModule/Controller/MembershipController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         if ($gid < 1 || $uid < 1) {
133 133
             throw new \InvalidArgumentException($this->__('Invalid Group ID or User ID.'));
134 134
         }
135
-        if (!$this->hasPermission('ZikulaGroupsModule::', $gid.'::', ACCESS_EDIT)) {
135
+        if (!$this->hasPermission('ZikulaGroupsModule::', $gid . '::', ACCESS_EDIT)) {
136 136
             throw new AccessDeniedException();
137 137
         }
138 138
         $group = $this->get('zikula_groups_module.group_repository')->find($gid);
Please login to merge, or discard this patch.
src/system/SettingsModule/Api/LocaleApi.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,11 +59,11 @@
 block discarded – undo
59 59
         $availableLanguages = [];
60 60
         foreach ($matches as $match) {
61 61
             list($languageCode, $unusedVar) = explode('-', $match[1]) + ['', ''];
62
-            $priority = isset($match[2]) ? (float) $match[2] : 1.0;
62
+            $priority = isset($match[2]) ? (float)$match[2] : 1.0;
63 63
             $availableLanguages[][$languageCode] = $priority;
64 64
         }
65 65
 
66
-        $defaultPriority = (float) 0;
66
+        $defaultPriority = (float)0;
67 67
         $matchedLanguage = '';
68 68
         foreach ($availableLanguages as $key => $value) {
69 69
             $languageCode = key($value);
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Twig/Extension/PagerExtension.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     /**
48 48
      * Returns a list of functions to add to the existing list.
49 49
      *
50
-     * @return array An array of functions
50
+     * @return \Twig_SimpleFunction[] An array of functions
51 51
      */
52 52
     public function getFunctions()
53 53
     {
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                     case 'lang':
140 140
                         $addcurrentlang2url = $systemVars['languageurl'];
141 141
                         if ($addcurrentlang2url == 0) {
142
-                            $pager['args'][$k] =  $v;
142
+                            $pager['args'][$k] = $v;
143 143
                         }
144 144
                         break;
145 145
                     default:
@@ -161,19 +161,19 @@  discard block
 block discarded – undo
161 161
                                     }
162 162
                                 } elseif (strlen($vv)) {
163 163
                                     $tkey = $k . '[' . $kk . ']';
164
-                                    $pager['args'][$tkey] =  $vv;
164
+                                    $pager['args'][$tkey] = $vv;
165 165
                                 }
166 166
                             }
167 167
                         } else {
168 168
                             if (strlen($v)) {
169
-                                $pager['args'][$k] =  $v;
169
+                                $pager['args'][$k] = $v;
170 170
                             }
171 171
                         }
172 172
                 }
173 173
             }
174 174
         }
175 175
 
176
-        $pagerUrl = function ($pager) use ($routeName, $systemVars) {
176
+        $pagerUrl = function($pager) use ($routeName, $systemVars) {
177 177
             if ($routeName) {
178 178
                 return $this->container->get('router')->generate($routeName, $pager['args']);
179 179
             }
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
         unset($params['names']);
386 386
         unset($params['values']);
387 387
         unset($params['route']);
388
-        $pagerUrl = function ($pager) {
388
+        $pagerUrl = function($pager) {
389 389
             return $this->container->get('router')->generate($pager['route'], $pager['args']);
390 390
         };
391 391
         $allVars = array_merge($request->request->all(), $request->query->all(), $request->attributes->get('_route_params', []));
@@ -417,19 +417,19 @@  discard block
 block discarded – undo
417 417
         unset($pager['args'][$pager['posvar']]);
418 418
 
419 419
         // begin to fill the output
420
-        $output = '<ul class="'.$params['class'].'">'."\n";
420
+        $output = '<ul class="' . $params['class'] . '">' . "\n";
421 421
         $style = '';
422 422
         if ($params['printempty']) {
423 423
             $active = '';
424 424
             if (!empty($params['class_numon'])) {
425 425
                 if (!isset($allVars[$pager['posvar']])) {
426
-                    $style = ' class="'.$params['class_numon'].'"';
426
+                    $style = ' class="' . $params['class_numon'] . '"';
427 427
                     $active = 'class="active"';
428 428
                 } elseif (!empty($params['class_num'])) {
429
-                    $style = ' class="'.$params['class_num'].'"';
429
+                    $style = ' class="' . $params['class_num'] . '"';
430 430
                 }
431 431
             }
432
-            $output .= '<li '.$active.'><a '.$style.' href="'.$pagerUrl($pager).'"> -'."\n</a></li>";
432
+            $output .= '<li ' . $active . '><a ' . $style . ' href="' . $pagerUrl($pager) . '"> -' . "\n</a></li>";
433 433
         }
434 434
 
435 435
         $style = '';
@@ -437,16 +437,16 @@  discard block
 block discarded – undo
437 437
             $active = '';
438 438
             if (!empty($params['class_numon'])) {
439 439
                 if (isset($allVars[$pager['posvar']]) && $allVars[$pager['posvar']] == $pager['values'][$i]) {
440
-                    $style = ' class="'.$params['class_numon'].'"';
440
+                    $style = ' class="' . $params['class_numon'] . '"';
441 441
                     $active = 'class="active"';
442 442
                 } elseif (!empty($params['class_num'])) {
443
-                    $style = ' class="'.$params['class_num'].'"';
443
+                    $style = ' class="' . $params['class_num'] . '"';
444 444
                 } else {
445 445
                     $style = '';
446 446
                 }
447 447
             }
448 448
             $pager['args'][$pager['posvar']] = $pager['values'][$i];
449
-            $output .= '<li '.$active.'><a '.$style.' href="'.$pagerUrl($pager).'">'.$pager['names'][$i]."</a></li>\n";
449
+            $output .= '<li ' . $active . '><a ' . $style . ' href="' . $pagerUrl($pager) . '">' . $pager['names'][$i] . "</a></li>\n";
450 450
         }
451 451
         $output .= "</ul>\n";
452 452
 
Please login to merge, or discard this patch.