@@ -22,7 +22,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -35,8 +35,8 @@ |
||
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 |
@@ -32,7 +32,7 @@ discard block |
||
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 |
||
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 | } |
@@ -152,11 +152,11 @@ |
||
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 | /** |
@@ -16,10 +16,10 @@ |
||
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'; |
@@ -16,21 +16,21 @@ |
||
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 | ); |
@@ -16,10 +16,10 @@ |
||
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'; |
@@ -43,7 +43,7 @@ |
||
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 | ); |
@@ -35,7 +35,7 @@ |
||
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 |