Passed
Push — master ( 179f07...ded335 )
by Goffy
06:11
created
xoops_version.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
     'help'                => 'page=help',
40 40
     'license_url'         => 'www.gnu.org/licenses/gpl-2.0.html/',
41 41
     'release_info'        => '',
42
-    'release_file'        => \XOOPS_URL."/modules/{$dirname}/docs/release_info file",
42
+    'release_file'        => \XOOPS_URL . "/modules/{$dirname}/docs/release_info file",
43 43
     'release_date'        => '2023/04/08', // format: yyyy/mm/dd
44 44
     'manual'              => 'link to manual file',
45
-    'manual_file'         => \XOOPS_URL."/modules/{$dirname}/docs/install.txt",
45
+    'manual_file'         => \XOOPS_URL . "/modules/{$dirname}/docs/install.txt",
46 46
     'min_php'             => '7.4',
47 47
     'min_xoops'           => '2.5.11 RC1',
48 48
     'min_admin'           => '1.1',
@@ -184,10 +184,10 @@  discard block
 block discarded – undo
184 184
     'default'     => 1,
185 185
 ];
186 186
 
187
-$currdirname = isset($GLOBALS['xoopsModule'])&& \is_object($GLOBALS['xoopsModule']) ? $GLOBALS['xoopsModule']->getVar('dirname') : 'system';
187
+$currdirname = isset($GLOBALS['xoopsModule']) && \is_object($GLOBALS['xoopsModule']) ? $GLOBALS['xoopsModule']->getVar('dirname') : 'system';
188 188
 if ($dirname == $currdirname) {
189
-    $subcount = 1 ;
190
-    $pathname = \XOOPS_ROOT_PATH. '/modules/'.$dirname;
189
+    $subcount = 1;
190
+    $pathname = \XOOPS_ROOT_PATH . '/modules/' . $dirname;
191 191
     include_once $pathname . '/include/common.php';
192 192
     // Get instance of module
193 193
     $helper = Helper::getInstance();
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         foreach (\array_keys($versions_arr) as $i)
205 205
         {
206 206
             $modversion['sub'][$subcount]['name'] = $versions_arr[$i]->getVar('version_name');
207
-            $modversion['sub'][$subcount++]['url'] = 'index.php?version_id=' . $versions_arr[$i]->getVar('version_id') ;
207
+            $modversion['sub'][$subcount++]['url'] = 'index.php?version_id=' . $versions_arr[$i]->getVar('version_id');
208 208
         }
209 209
     }
210 210
 }
Please login to merge, or discard this patch.