Completed
Push — master ( f87ae1...593857 )
by Michael
16:03 queued 24s
created
xoops_lib/Xoops/Core/Kernel/Handlers/XoopsModule.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -105,12 +105,12 @@  discard block
 block discarded – undo
105 105
         $this->setVar('version', (int)(100 * ($this->modinfo['version'] + 0.001)));
106 106
         $this->setVar('dirname', $this->modinfo['dirname']);
107 107
 
108
-        $this->setVar('hasmain', (bool) $modInfoArray->get('hasMain', false));
109
-        $this->setVar('hasadmin', (bool) $modInfoArray->get('hasAdmin', false));
110
-        $this->setVar('hassearch', (bool) $modInfoArray->get('hasSearch', false));
111
-        $this->setVar('hasconfig', ($modInfoArray->has('config') && is_array($modInfoArray->get('config'))) || (bool) $modInfoArray->get('hascomments', false));
112
-        $this->setVar('hascomments', (bool) $modInfoArray->get('hasComments', false));
113
-        $this->setVar('hasnotification', (bool) $modInfoArray->get('hasNotification', false));
108
+        $this->setVar('hasmain', (bool)$modInfoArray->get('hasMain', false));
109
+        $this->setVar('hasadmin', (bool)$modInfoArray->get('hasAdmin', false));
110
+        $this->setVar('hassearch', (bool)$modInfoArray->get('hasSearch', false));
111
+        $this->setVar('hasconfig', ($modInfoArray->has('config') && is_array($modInfoArray->get('config'))) || (bool)$modInfoArray->get('hascomments', false));
112
+        $this->setVar('hascomments', (bool)$modInfoArray->get('hasComments', false));
113
+        $this->setVar('hasnotification', (bool)$modInfoArray->get('hasNotification', false));
114 114
         $this->setVar('namespace', $modInfoArray->get('namespace'));
115 115
         $this->setVar('category', $modInfoArray->get('category'));
116 116
     }
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
     public function mainLink()
186 186
     {
187 187
         if ($this->getVar('hasmain') == 1) {
188
-            $ret = '<a href="' . $this->xoops_url . '/modules/' . $this->getVar('dirname') . '/">'
189
-                . $this->getVar('name') . '</a>';
188
+            $ret = '<a href="'.$this->xoops_url.'/modules/'.$this->getVar('dirname').'/">'
189
+                . $this->getVar('name').'</a>';
190 190
             return $ret;
191 191
         }
192 192
         return false;
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         if ($this->getInfo('sub') && is_array($this->getInfo('sub'))) {
204 204
             foreach ($this->getInfo('sub') as $submenu) {
205 205
                 $ret[] = array(
206
-                    'name' => $submenu['name'] ,
206
+                    'name' => $submenu['name'],
207 207
                     'url' => $submenu['url']);
208 208
             }
209 209
         }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     public function loadAdminMenu()
219 219
     {
220
-        $file = $this->xoops_root_path . '/modules/' . $this->getInfo('dirname') . '/' . $this->getInfo('adminmenu');
220
+        $file = $this->xoops_root_path.'/modules/'.$this->getInfo('dirname').'/'.$this->getInfo('adminmenu');
221 221
         if ($this->getInfo('adminmenu') && $this->getInfo('adminmenu') != '' && \XoopsLoad::fileExists($file)) {
222 222
             $adminmenu = array();
223 223
             include $file;
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         $xoops->loadLanguage('modinfo', $dirname);
265 265
         $xoops->loadLocale($dirname);
266 266
 
267
-        if (!\XoopsLoad::fileExists($file = $xoops->path('modules/' . $dirname . '/xoops_version.php'))) {
267
+        if (!\XoopsLoad::fileExists($file = $xoops->path('modules/'.$dirname.'/xoops_version.php'))) {
268 268
             if (false != $verbose) {
269 269
                 echo "Module File for $dirname Not Found!";
270 270
             }
Please login to merge, or discard this patch.