Passed
Pull Request — master (#585)
by
unknown
17:41
created
htdocs/modules/plugins/preloads/preload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
     {
36 36
         $path = dirname(__DIR__);
37 37
         \XoopsLoad::addMap(array(
38
-            'plugins' => $path . '/class/helper.php',
39
-            'pluginsmanager' => $path . '/class/manager.php',
38
+            'plugins' => $path.'/class/helper.php',
39
+            'pluginsmanager' => $path.'/class/manager.php',
40 40
         ));
41 41
     }
42 42
 
Please login to merge, or discard this patch.
htdocs/modules/plugins/class/manager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                 //Make sure to load the interface
33 33
                 if (\XoopsLoad::loadFile($xoops->path("modules/{$caller}/class/plugin/interface.php"))) {
34 34
                     if (\XoopsLoad::loadFile($xoops->path("modules/{$listener}/class/plugin/{$caller}.php"))) {
35
-                        $interfaceName = '\\' . ucfirst($caller) . "PluginInterface";
35
+                        $interfaceName = '\\'.ucfirst($caller)."PluginInterface";
36 36
                         if ($ref = new ReflectionClass($interfaceName)) {
37 37
                             if ($ref->implementsInterface($interfaceName)) {
38 38
                                 $listeners[$listener][] = $caller;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $xoops = \Xoops::getInstance();
59 59
 
60 60
         $listeners = $handler->getListeners();
61
-        foreach ($listeners as $key => $name ) {
61
+        foreach ($listeners as $key => $name) {
62 62
             if (!$xoops->isActiveModule($key)) {
63 63
                 $handler->deleteLC($key);
64 64
             }
Please login to merge, or discard this patch.
htdocs/modules/plugins/class/plugin.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -152,11 +152,11 @@
 block discarded – undo
152 152
      */
153 153
     public function getModuleName(string $dirname)
154 154
     {
155
-         if ($module = \Xoops::getInstance()->getModuleByDirname((string)$dirname)) {
156
-             return $module->getVar('name');
157
-         } else {
158
-             return $dirname;
159
-         }
155
+            if ($module = \Xoops::getInstance()->getModuleByDirname((string)$dirname)) {
156
+                return $module->getVar('name');
157
+            } else {
158
+                return $dirname;
159
+            }
160 160
     }
161 161
 
162 162
     /**
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
  * @version         $Id: about.php 8065 2011-11-06 02:02:32Z beckmi $
17 17
  */
18 18
 
19
-require __DIR__ . '/admin_header.php';
19
+require __DIR__.'/admin_header.php';
20 20
 
21 21
 $aboutAdmin = new \Xoops\Module\Admin();
22 22
 $aboutAdmin->displayNavigation('about.php');
23 23
 $aboutAdmin->displayAbout(true);
24 24
 
25
-require __DIR__ . '/admin_footer.php';
25
+require __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/admin/menu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,21 +16,21 @@
 block discarded – undo
16 16
  */
17 17
 
18 18
 // get path to icons
19
-$pathIcon32='';
19
+$pathIcon32 = '';
20 20
 if (class_exists('Xmf\Module\Admin', true)) {
21 21
     $pathIcon32 = \Xmf\Module\Admin::menuIconPath('');
22 22
 }
23 23
 
24
-$adminmenu=array();
24
+$adminmenu = array();
25 25
 // Index
26 26
 $adminmenu[] = array(
27
-    'title' => _MI_USERCONFIGS_ADMENU1 ,
28
-    'link'  => 'admin/index.php' ,
27
+    'title' => _MI_USERCONFIGS_ADMENU1,
28
+    'link'  => 'admin/index.php',
29 29
     'icon'  => $pathIcon32.'home.png'
30 30
 );
31 31
 // About
32 32
 $adminmenu[] = array(
33
-    'title' => _MI_USERCONFIGS_ADMENU2 ,
34
-    'link'  => 'admin/about.php' ,
33
+    'title' => _MI_USERCONFIGS_ADMENU2,
34
+    'link'  => 'admin/about.php',
35 35
     'icon'  => $pathIcon32.'about.png'
36 36
 );
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/admin/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
  * @version         $Id: about.php 8065 2011-11-06 02:02:32Z beckmi $
17 17
  */
18 18
 
19
-require __DIR__ . '/admin_header.php';
19
+require __DIR__.'/admin_header.php';
20 20
 
21 21
 $indexAdmin = new \Xoops\Module\Admin();
22 22
 $indexAdmin->displayNavigation('index.php');
23 23
 $indexAdmin->displayIndex();
24 24
 
25
-require __DIR__ . '/admin_footer.php';
25
+require __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/xoops_version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 // paypal
44 44
 $modversion['paypal'] = array(
45 45
     'business'      => '[email protected]',
46
-    'item_name'     => 'Donation : ' . _MI_USERCONFIGS_NAME,
46
+    'item_name'     => 'Donation : '._MI_USERCONFIGS_NAME,
47 47
     'amount'        => 0,
48 48
     'currency_code' => 'USD',
49 49
 );
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/preloads/preload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $path = dirname(__DIR__);
37 37
         XoopsLoad::addMap(array(
38
-            'userconfigs' => $path . '/class/helper.php',
38
+            'userconfigs' => $path.'/class/helper.php',
39 39
         ));
40 40
     }
41 41
 
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/language/english/modinfo.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 //  E-Mail: [email protected]
5 5
 
6 6
 // Module Info
7
-define('_MI_USERCONFIGS_NAME',"User Configs");
8
-define('_MI_USERCONFIGS_DSC',"Allows users to manage module configs");
7
+define('_MI_USERCONFIGS_NAME', "User Configs");
8
+define('_MI_USERCONFIGS_DSC', "Allows users to manage module configs");
9 9
 
10
-define('_MI_USERCONFIGS_ADMENU1','Home');
11
-define('_MI_USERCONFIGS_ADMENU2','About');
10
+define('_MI_USERCONFIGS_ADMENU1', 'Home');
11
+define('_MI_USERCONFIGS_ADMENU2', 'About');
Please login to merge, or discard this patch.