Completed
Branch 1.4 (78c96b)
by Axel
22:13
created
src/lib/legacy/Zikula/View.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -287,10 +287,10 @@  discard block
 block discarded – undo
287 287
         // during {include file='my_template.tpl'} this enables us to store selected module
288 288
         // templates in the theme while others can be kept in the module itself.
289 289
         $this->register_resource('z', ['Zikula_View_Resource',
290
-                                       'z_get_template',
291
-                                       'z_get_timestamp',
292
-                                       'z_get_secure',
293
-                                       'z_get_trusted']);
290
+                                        'z_get_template',
291
+                                        'z_get_timestamp',
292
+                                        'z_get_secure',
293
+                                        'z_get_trusted']);
294 294
 
295 295
         // set 'z' as default resource type
296 296
         $this->default_resource_type = 'z';
@@ -316,18 +316,18 @@  discard block
 block discarded – undo
316 316
 
317 317
         // assign some useful settings
318 318
         $this->assign('homepage', $this->homepage)
319
-             ->assign('modinfo', $this->modinfo)
320
-             ->assign('module', $moduleName)
321
-             ->assign('toplevelmodule', $this->toplevelmodule)
322
-             ->assign('type', $this->type)
323
-             ->assign('func', $this->func)
324
-             ->assign('lang', $this->language)
325
-             ->assign('themeinfo', $this->themeinfo)
326
-             ->assign('themepath', isset($themeBundle) ? $themeBundle->getRelativePath() : $this->baseurl . 'themes/' . $theme)
327
-             ->assign('baseurl', $this->baseurl)
328
-             ->assign('baseuri', $this->baseuri)
329
-             ->assign('moduleBundle', ModUtil::getModule($moduleName)) // is NULL for pre-1.4.0-type modules
330
-             ->assign('themeBundle', $themeBundle);
319
+                ->assign('modinfo', $this->modinfo)
320
+                ->assign('module', $moduleName)
321
+                ->assign('toplevelmodule', $this->toplevelmodule)
322
+                ->assign('type', $this->type)
323
+                ->assign('func', $this->func)
324
+                ->assign('lang', $this->language)
325
+                ->assign('themeinfo', $this->themeinfo)
326
+                ->assign('themepath', isset($themeBundle) ? $themeBundle->getRelativePath() : $this->baseurl . 'themes/' . $theme)
327
+                ->assign('baseurl', $this->baseurl)
328
+                ->assign('baseuri', $this->baseuri)
329
+                ->assign('moduleBundle', ModUtil::getModule($moduleName)) // is NULL for pre-1.4.0-type modules
330
+                ->assign('themeBundle', $themeBundle);
331 331
 
332 332
         if (isset($themeBundle)) {
333 333
             $stylePath = $themeBundle->getRelativePath() . "/Resources/public/css";
@@ -341,9 +341,9 @@  discard block
 block discarded – undo
341 341
             $imageLangPath = $this->baseurl . "themes/$theme/images/" . $this->language;
342 342
         }
343 343
         $this->assign('stylepath', $stylePath)
344
-             ->assign('scriptpath', $javascriptPath)
345
-             ->assign('imagepath', $imagePath)
346
-             ->assign('imagelangpath', $imageLangPath);
344
+                ->assign('scriptpath', $javascriptPath)
345
+                ->assign('imagepath', $imagePath)
346
+                ->assign('imagelangpath', $imageLangPath);
347 347
 
348 348
         // for {gt} template plugin to detect gettext domain
349 349
         if ($this->modinfo['type'] == ModUtil::TYPE_MODULE) {
@@ -1003,10 +1003,10 @@  discard block
 block discarded – undo
1003 1003
 
1004 1004
                 if (is_dir($path)) {
1005 1005
                     // search recusively
1006
-                   $this->rmtpl($path, $template, $expire);
1006
+                    $this->rmtpl($path, $template, $expire);
1007 1007
                 } elseif (strpos($entry, $filebase) === 0) {
1008 1008
                     // delete the files that matches the template base filename
1009
-                   $this->_unlink($path, $expire);
1009
+                    $this->_unlink($path, $expire);
1010 1010
                 }
1011 1011
             }
1012 1012
         }
@@ -1037,13 +1037,13 @@  discard block
 block discarded – undo
1037 1037
 
1038 1038
                 if (is_dir($path)) {
1039 1039
                     // remove recursively
1040
-                   $this->rmdir($path, $expire, true);
1040
+                    $this->rmdir($path, $expire, true);
1041 1041
                 } elseif ($expire !== false) {
1042 1042
                     // check expiration time of cached templates
1043
-                   $this->_unlink($path, $expire);
1043
+                    $this->_unlink($path, $expire);
1044 1044
                 } else {
1045 1045
                     // delete compiled templates directly
1046
-                   unlink($path);
1046
+                    unlink($path);
1047 1047
                 }
1048 1048
             }
1049 1049
         }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
             $ostemplate = DataUtil::formatForOS($template);
645 645
             try {
646 646
                 $bundle = $this->getContainer()->get('kernel')->getBundle($module);
647
-                $bundlePath = $relativepath = $bundle->getRelativePath().'/Resources/views';
647
+                $bundlePath = $relativepath = $bundle->getRelativePath() . '/Resources/views';
648 648
             } catch (\InvalidArgumentException $e) {
649 649
             }
650 650
 
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
         $core['language'] = $this->language;
742 742
 
743 743
         // add userdata
744
-        $core['user']   = UserUtil::getVars(SessionUtil::getVar('uid'));
744
+        $core['user'] = UserUtil::getVars(SessionUtil::getVar('uid'));
745 745
 
746 746
         if (System::isLegacyMode()) {
747 747
             // add modvars of current modules
@@ -859,7 +859,7 @@  discard block
 block discarded – undo
859 859
             $this->_filter_auto_id($compile_id);
860 860
         }
861 861
 
862
-        $auto_id = $cache_id . (!empty($compile_id) ? '/'.$compile_id : '');
862
+        $auto_id = $cache_id . (!empty($compile_id) ? '/' . $compile_id : '');
863 863
 
864 864
         $auto_id = trim($auto_id, '/');
865 865
 
@@ -944,7 +944,7 @@  discard block
 block discarded – undo
944 944
             if (empty($themedir)) {
945 945
                 $themedir = $this->themeinfo['directory'];
946 946
             }
947
-            $path .= '--t_'.$themedir.'-l_' . $this->language;
947
+            $path .= '--t_' . $themedir . '-l_' . $this->language;
948 948
 
949 949
             // if we are not compiling, end with a suffix
950 950
             if (!$tocompile) {
@@ -1117,7 +1117,7 @@  discard block
 block discarded – undo
1117 1117
             $moduledir = $this->modinfo['directory'];
1118 1118
         }
1119 1119
 
1120
-        return $this->clear_folder($this->cache_dir .'/'. $moduledir);
1120
+        return $this->clear_folder($this->cache_dir . '/' . $moduledir);
1121 1121
     }
1122 1122
 
1123 1123
     /**
@@ -2950,7 +2950,7 @@  discard block
 block discarded – undo
2950 2950
                     if ($this->cache_modified_check) {
2951 2951
                         $_server_vars = ($this->request_use_auto_globals) ? $_SERVER : $GLOBALS['HTTP_SERVER_VARS'];
2952 2952
                         $_last_modified_date = @substr($_server_vars['HTTP_IF_MODIFIED_SINCE'], 0, strpos($_server_vars['HTTP_IF_MODIFIED_SINCE'], 'GMT') + 3);
2953
-                        $_gmt_mtime = gmdate('D, d M Y H:i:s', $this->_cache_info['timestamp']).' GMT';
2953
+                        $_gmt_mtime = gmdate('D, d M Y H:i:s', $this->_cache_info['timestamp']) . ' GMT';
2954 2954
                         if (@count($this->_cache_info['insert_tags']) == 0
2955 2955
                             && !$this->_cache_serials
2956 2956
                             && $_gmt_mtime == $_last_modified_date) {
@@ -2960,7 +2960,7 @@  discard block
 block discarded – undo
2960 2960
                                 header('HTTP/1.1 304 Not Modified');
2961 2961
                             }
2962 2962
                         } else {
2963
-                            header('Last-Modified: '.$_gmt_mtime);
2963
+                            header('Last-Modified: ' . $_gmt_mtime);
2964 2964
                             echo $_smarty_results;
2965 2965
                         }
2966 2966
                     } else {
@@ -2981,7 +2981,7 @@  discard block
 block discarded – undo
2981 2981
             } else {
2982 2982
                 $this->_cache_info['template'][$resource_name] = true;
2983 2983
                 if ($this->cache_modified_check && $display) {
2984
-                    header('Last-Modified: '.gmdate('D, d M Y H:i:s', time()).' GMT');
2984
+                    header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
2985 2985
                 }
2986 2986
             }
2987 2987
         }
Please login to merge, or discard this patch.
src/lib/legacy/Zikula/Workflow.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
 
153 153
         if (isset($debug)) {
154 154
             $qb->set('w.debug', ':newDebug')
155
-               ->setParameter('newDebug', $debug);
155
+                ->setParameter('newDebug', $debug);
156 156
         }
157 157
 
158 158
         $query = $qb->where('w.id = :id')
Please login to merge, or discard this patch.
src/lib/legacy/Zikula/Workflow/Parser.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                     $this->workflow['workflow'] = [];
183 183
                 } else {
184 184
                     $state = 'error';
185
-                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state ". __LINE__);
185
+                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state " . __LINE__);
186 186
                 }
187 187
                 break;
188 188
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
                         $this->workflow['actions'] = [];
202 202
                         break;
203 203
                     default:
204
-                        $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state ". __LINE__);
204
+                        $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state " . __LINE__);
205 205
                         $state = 'error';
206 206
                         break;
207 207
                 }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                     $this->workflow['stateValue'] = ['id' => trim($attribs['ID'])];
213 213
                     $state = 'state';
214 214
                 } else {
215
-                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state ". __LINE__);
215
+                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state " . __LINE__);
216 216
                     $state = 'error';
217 217
                 }
218 218
                 break;
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 if ($name == 'TITLE' || $name == 'DESCRIPTION') {
222 222
                     $this->workflow['value'] = '';
223 223
                 } else {
224
-                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state ". __LINE__);
224
+                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state " . __LINE__);
225 225
                     $state = 'error';
226 226
                 }
227 227
                 break;
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
                     ];
237 237
                     $state = 'action';
238 238
                 } else {
239
-                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state ". __LINE__);
239
+                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state " . __LINE__);
240 240
                     $state = 'error';
241 241
                 }
242 242
                 break;
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
                         $this->workflow['actionParameter'] = $attribs;
260 260
                         break;
261 261
                     default:
262
-                        $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state ". __LINE__);
262
+                        $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state " . __LINE__);
263 263
                         $state = 'error';
264 264
                         break;
265 265
                 }
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                 if ($name == '') {
270 270
                     $state = '';
271 271
                 } else {
272
-                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state ". __LINE__);
272
+                    $this->workflow['errorMessage'] = $this->unexpectedXMLError($name, "$state " . __LINE__);
273 273
                     $state = 'error';
274 274
                 }
275 275
                 break;
Please login to merge, or discard this patch.
src/lib/legacy/Zikula/Workflow/Util.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -173,16 +173,16 @@  discard block
 block discarded – undo
173 173
         return $workflow->executeAction($actionID, $obj, $stateID);
174 174
     }
175 175
 
176
-     /**
177
-      * Delete workflows for module (used module uninstall time).
178
-      *
179
-      * @param string $module Module name
180
-      *
181
-      * @return boolean
182
-      */
183
-     public static function deleteWorkflowsForModule($module)
184
-     {
185
-         $theModule = isset($module) ? $module : ModUtil::getName();
176
+        /**
177
+         * Delete workflows for module (used module uninstall time).
178
+         *
179
+         * @param string $module Module name
180
+         *
181
+         * @return boolean
182
+         */
183
+        public static function deleteWorkflowsForModule($module)
184
+        {
185
+            $theModule = isset($module) ? $module : ModUtil::getName();
186 186
 
187 187
         //This is a static function, so we have to use ServiceUtil to get the entity manager
188 188
         $entityManager = ServiceUtil::getManager()->get('doctrine.orm.default_entity_manager');
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
             ->setParameter('module', $theModule)
195 195
             ->getQuery();
196 196
 
197
-         $result = $query->execute();
197
+            $result = $query->execute();
198 198
 
199
-         return $result;
200
-     }
199
+            return $result;
200
+        }
201 201
 
202 202
     /**
203 203
      * Delete a workflow and associated data.
@@ -408,11 +408,11 @@  discard block
 block discarded – undo
408 408
         }
409 409
 
410 410
         // attach workflow to object
411
-         if ($obj instanceof Doctrine_Record) {
412
-             $obj->mapValue('__WORKFLOW__', $workflow);
413
-         } else {
414
-             $obj['__WORKFLOW__'] = $workflow;
415
-         }
411
+            if ($obj instanceof Doctrine_Record) {
412
+                $obj->mapValue('__WORKFLOW__', $workflow);
413
+            } else {
414
+                $obj['__WORKFLOW__'] = $workflow;
415
+            }
416 416
 
417 417
         return true;
418 418
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -388,7 +388,7 @@
 block discarded – undo
388 388
             $workflow = $query->getArrayResult();
389 389
             if ($workflow) {
390 390
                 $workflow = $workflow[0];
391
-                $renameKey = function (&$array, $old, $new) {
391
+                $renameKey = function(&$array, $old, $new) {
392 392
                     $array[$new] = $array[$old];
393 393
                     unset($array[$old]);
394 394
                 };
Please login to merge, or discard this patch.
src/lib/legacy/Zikula/Routing/UrlRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@
 block discarded – undo
305 305
                 if (!isset($this->requirements[$token[1]])) {
306 306
                     $this->requirements[$token[1]] = '[^/\.\-]+';
307 307
                 }
308
-                $regex .= '(?P<'.$token[1].'>'.$this->requirements[$token[1]].')';
308
+                $regex .= '(?P<' . $token[1] . '>' . $this->requirements[$token[1]] . ')';
309 309
             } elseif ($token[0] == 'text' || $token[0] == 'separator') {
310 310
                 if ($token[1] == '*') {
311 311
                     if ($this->tokens[$i - 1] && $this->tokens[$i - 1][0] == 'separator') {
Please login to merge, or discard this patch.
src/lib/legacy/Zikula/AbstractBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $this->setContainer($serviceManager);
130 130
         $this->dispatcher = $this->getContainer()->get('event_dispatcher');
131 131
         $this->eventManager = $this->dispatcher;
132
-        $this->request =  $this->container->get('request');
132
+        $this->request = $this->container->get('request');
133 133
         $this->entityManager = $this->getContainer()->get('doctrine.orm.default_entity_manager');
134 134
         $this->_configureBase($bundle);
135 135
         $this->initialize();
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 $this->libBaseDir = realpath("{$this->baseDir}/lib/" . $this->name);
162 162
             }
163 163
             if ($baseDir == 'modules') {
164
-                $this->domain = strtolower('module_'.$this->name);
164
+                $this->domain = strtolower('module_' . $this->name);
165 165
             }
166 166
         }
167 167
     }
Please login to merge, or discard this patch.
src/lib/legacy/Zikula/KernelClassLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
         // namespace 'Foo', class Foo\BadFoo\Class should match and become Foo/BadFoo/Class.php
140 140
         // namespace 'Bar', separator '_', class Bar should match and become Bar.php
141 141
         // namespace 'Bar', separator '_', class Bar_Exception should match and become Bar\Exception.php
142
-        if (strpos($class, $namespace.$array['separator']) === 0 || $class == $namespace || empty($namespace)) {
142
+        if (strpos($class, $namespace . $array['separator']) === 0 || $class == $namespace || empty($namespace)) {
143 143
             // replace namespace separator with \DIRECTORY_SEPARATOR
144 144
             $file = str_replace($array['separator'], DIRECTORY_SEPARATOR, $class);
145 145
 
Please login to merge, or discard this patch.
src/lib/legacy/Zikula/Tree.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $tree = $this->_toHTML($this->tree, 1, $this->config['id'], true);
176 176
 
177 177
         if ($this->config['withWraper']) {
178
-            $wraperClass = !empty($this->config['wraperClass']) ? 'class="'.$this->config['wraperClass'].'"' : '';
178
+            $wraperClass = !empty($this->config['wraperClass']) ? 'class="' . $this->config['wraperClass'] . '"' : '';
179 179
             $this->html = "\n<div {$wraperClass}>\n{$tree}</div>";
180 180
         } else {
181 181
             $this->html = $tree;
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         $tree = $this->_toHTML($this->tree, 1, $this->config['id'], true);
199 199
 
200 200
         if ($this->config['withWraper']) {
201
-            $wraperClass = !empty($this->config['wraperClass']) ? 'class="'.$this->config['wraperClass'].'"' : '';
201
+            $wraperClass = !empty($this->config['wraperClass']) ? 'class="' . $this->config['wraperClass'] . '"' : '';
202 202
             $this->html = "\n<div {$wraperClass}>\n{$tree}</div>";
203 203
         } else {
204 204
             $this->html = $tree;
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     public function getConfigForScript($encode = true)
218 218
     {
219 219
         $jsConfig = $this->config;
220
-        $omitKeys = ['objid', 'nestedSet', 'customJSClass'. 'cssFile'];
220
+        $omitKeys = ['objid', 'nestedSet', 'customJSClass' . 'cssFile'];
221 221
         foreach ($omitKeys as $key) {
222 222
             unset($jsConfig[$key]);
223 223
         }
@@ -366,8 +366,8 @@  discard block
 block discarded – undo
366 366
             $html = $liHtml;
367 367
         } else {
368 368
             $indent  = str_repeat(' ', $indentLevel * 4);
369
-            $ulID    = !empty($treeId) ? ' id="'.$treeId.'"' : '';
370
-            $ulClass = !empty($this->config['treeClass']) ? ' class="'.$this->config['treeClass'].'"' : '';
369
+            $ulID    = !empty($treeId) ? ' id="' . $treeId . '"' : '';
370
+            $ulClass = !empty($this->config['treeClass']) ? ' class="' . $this->config['treeClass'] . '"' : '';
371 371
             $html    = "{$indent}<ul{$ulID}{$ulClass}>\n{$liHtml}\n{$indent}</ul>\n";
372 372
         }
373 373
 
@@ -391,18 +391,18 @@  discard block
 block discarded – undo
391 391
         $item   = $tab['item'];
392 392
         $indent = str_repeat(' ', ($indentLevel + 1) * 4);
393 393
 
394
-        $toggle = $indent.'<img class="'.$this->config['toggler'].'" alt="" src="'.$this->config['imagesDir'].$this->config['minus'].'" />';
394
+        $toggle = $indent . '<img class="' . $this->config['toggler'] . '" alt="" src="' . $this->config['imagesDir'] . $this->config['minus'] . '" />';
395 395
 
396 396
         $iconImage = !empty($item['icon']) ? $item['icon'] : (!empty($tab['nodes']) ? $this->config['parentOpen'] : $this->config['item']);
397
-        $icon      = $indent.'<img class="'.$this->config['icon'].'" alt="" src="'.$this->config['imagesDir'].$iconImage.'" />';
397
+        $icon      = $indent . '<img class="' . $this->config['icon'] . '" alt="" src="' . $this->config['imagesDir'] . $iconImage . '" />';
398 398
 
399
-        $linkClass = $item['active'] == 1 ? $item['class'] : $this->config['nodeUnactive'].' '.$item['class'];
400
-        $linkClass = !empty($linkClass) ? ' class="'.$linkClass.'"' : '';
401
-        $linkHref  = 'href="'.DataUtil::formatForDisplay($item['href']).'"';
402
-        $linkTitle = !empty($item['title']) ? ' title="'.$item['title'].'"' : '';
403
-        $link      = $indent."<a {$linkHref}{$linkClass}{$linkTitle}>{$item['name']}</a>";
399
+        $linkClass = $item['active'] == 1 ? $item['class'] : $this->config['nodeUnactive'] . ' ' . $item['class'];
400
+        $linkClass = !empty($linkClass) ? ' class="' . $linkClass . '"' : '';
401
+        $linkHref  = 'href="' . DataUtil::formatForDisplay($item['href']) . '"';
402
+        $linkTitle = !empty($item['title']) ? ' title="' . $item['title'] . '"' : '';
403
+        $link      = $indent . "<a {$linkHref}{$linkClass}{$linkTitle}>{$item['name']}</a>";
404 404
 
405
-        $liId    = !empty($this->config['nodePrefix']) ? ' id="'.$this->config['nodePrefix'].$id.'"' : '';
405
+        $liId    = !empty($this->config['nodePrefix']) ? ' id="' . $this->config['nodePrefix'] . $id . '"' : '';
406 406
         $liClass = [];
407 407
         $liClass[] = $size == 1 ? $this->config['nodeSingle'] : '';
408 408
         $liClass[] = ($i == 1 && $size > 1) ? $this->config['nodeFirst'] : '';
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         $liClass[] = !empty($tab['nodes']) ? $this->config['nodeParent'] : $this->config['nodeLeaf'];
411 411
         $liClass[] = isset($item['class']) ? $item['class'] : '';
412 412
         $liClass = trim(implode(' ', array_filter($liClass)));
413
-        $liClass = ' class="'.$liClass.'"';
413
+        $liClass = ' class="' . $liClass . '"';
414 414
 
415 415
         $indent = str_repeat(' ', $indentLevel * 4);
416 416
 
Please login to merge, or discard this patch.
src/lib/legacy/Zikula/View/Plugin.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@  discard block
 block discarded – undo
44 44
         } else {
45 45
             $base = ModUtil::getBaseDir($this->modinfo['name']);
46 46
             $path = is_dir("$base/{$this->modinfo['directory']}/plugins/{$pluginName}/templates/plugins") ?
47
-            "$base/{$this->modinfo['directory']}/plugins/{$pluginName}/templates/plugins" :
48
-            "$base/{$this->modinfo['directory']}/plugins/{$pluginName}/Resources/views/plugins";
47
+            "$base/{$this->modinfo['directory']}/plugins/{$pluginName}/templates/plugins" : "$base/{$this->modinfo['directory']}/plugins/{$pluginName}/Resources/views/plugins";
49 48
         }
50 49
 
51 50
         $this->addPluginDir($path);
@@ -136,8 +135,7 @@  discard block
 block discarded – undo
136 135
                 break;
137 136
             case ModUtil::TYPE_MODULE:
138 137
                 $pluginsDir = is_dir("modules/{$modinfo['directory']}/plugins/$plugin/templates/plugins") ?
139
-                "modules/{$modinfo['directory']}/plugins/$plugin/templates/plugins" :
140
-                "modules/{$modinfo['directory']}/plugins/$plugin/Resources/views/plugins";
138
+                "modules/{$modinfo['directory']}/plugins/$plugin/templates/plugins" : "modules/{$modinfo['directory']}/plugins/$plugin/Resources/views/plugins";
141 139
                 break;
142 140
             case ModUtil::TYPE_CORE:
143 141
                 $pluginsDir = is_dir("plugins/$plugin/templates/plugins") ?
@@ -178,7 +176,7 @@  discard block
 block discarded – undo
178 176
             $search_path = [];
179 177
             try {
180 178
                 $bundle = $this->getContainer()->get('kernel')->getBundle($module);
181
-                $bundlePath = $relativepath = $bundle->getRelalativePath().'/Resources/views';
179
+                $bundlePath = $relativepath = $bundle->getRelalativePath() . '/Resources/views';
182 180
                 $search_path[] = $bundlePath;
183 181
             } catch (\InvalidArgumentException $e) {
184 182
             }
Please login to merge, or discard this patch.