Completed
Pull Request — master (#628)
by Richard
19:02 queued 04:58
created
htdocs/modules/waiting/admin/plugins.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  * @author          trabis <[email protected]>
22 22
  * @version         $Id$
23 23
  */
24
-include __DIR__ . '/header.php';
24
+include __DIR__.'/header.php';
25 25
 
26 26
 // Get main instance
27 27
 $xoops = \Xoops::getInstance();
Please login to merge, or discard this patch.
htdocs/modules/waiting/admin/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include __DIR__ . '/header.php';
23
+include __DIR__.'/header.php';
24 24
 $xoops = Xoops::getInstance();
25 25
 
26 26
 // header
Please login to merge, or discard this patch.
htdocs/modules/waiting/admin/header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,4 +20,4 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
23
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
Please login to merge, or discard this patch.
htdocs/modules/waiting/blocks/waiting_waiting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
                     //Image support
43 43
                     if (XoopsLoad::fileExists($helper->path('icons/logo_small.png'))) {
44 44
                         $res['image'] = $helper->url('icons/logo_small.png');
45
-                        $res['icon'] = "$dirName-icon" ;
45
+                        $res['icon'] = "$dirName-icon";
46 46
                     } else {
47 47
                         //Icon support
48 48
                         $res['icon'] = isset($res['icon']) ? $res['icon'] : 'glyphicon-time';
Please login to merge, or discard this patch.
htdocs/modules/plugins/admin/plugins.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  * @author          trabis <[email protected]>
23 23
  * @version         $Id$
24 24
  */
25
-include __DIR__ . '/header.php';
25
+include __DIR__.'/header.php';
26 26
 
27 27
 // Get main instance
28 28
 $xoops = Xoops::getInstance();
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
     case 'update':
51 51
         $orders = Request::getArray('order');
52 52
         foreach ($orders as $id => $order) {
53
-            $handler->updateOrder((int) $id, (int) $order);
53
+            $handler->updateOrder((int)$id, (int)$order);
54 54
         }
55 55
         $statuses = Request::getArray('status');
56 56
         foreach ($statuses as $id => $status) {
57
-            $handler->updateStatus((int) $id, (int) $status);
57
+            $handler->updateStatus((int)$id, (int)$status);
58 58
         }
59 59
         $xoops->tpl()->assign('infoMsg', $xoops->alert('success', XoopsLocale::S_DATA_UPDATED));
60 60
         //No break;
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
             $plugin['plugin_listener_name'] = $xoops->getModuleByDirname($plugin['plugin_listener'])->getVar('name');
86 86
 
87 87
             //Add order field
88
-            $order = new \Xoops\Form\Text('', 'order[' . $plugin['plugin_id'] . ']', 2, 2, $plugin['plugin_order']);
88
+            $order = new \Xoops\Form\Text('', 'order['.$plugin['plugin_id'].']', 2, 2, $plugin['plugin_order']);
89 89
             $order->set('style', 'width:3em');
90 90
             $plugin['plugin_order_field'] = $order->render();
91 91
             //Add status field
92
-            $status = new \Xoops\Form\RadioYesNo('', 'status[' . $plugin['plugin_id'] . ']', $plugin['plugin_status'], false);
92
+            $status = new \Xoops\Form\RadioYesNo('', 'status['.$plugin['plugin_id'].']', $plugin['plugin_status'], false);
93 93
             $plugin['plugin_status_field'] = $status->render();
94 94
             $plugins[] = $plugin;
95 95
         }
Please login to merge, or discard this patch.
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.