@@ -15,7 +15,7 @@ |
||
| 15 | 15 | * @author Richard Griffith <[email protected]> |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | -define('_MA_DEBUGBAR_PERMISSION_FORM','DebugBar Usage Permissions'); |
|
| 19 | -define('_MA_DEBUGBAR_PERMISSION_GROUPS','Select groups that may use the DebugBar'); |
|
| 20 | -define('_MA_DEBUGBAR_FORM_SUBMIT','Save'); |
|
| 21 | -define('_MA_DEBUGBAR_FORM_PROCESSED','Permissions updated.'); |
|
| 18 | +define('_MA_DEBUGBAR_PERMISSION_FORM', 'DebugBar Usage Permissions'); |
|
| 19 | +define('_MA_DEBUGBAR_PERMISSION_GROUPS', 'Select groups that may use the DebugBar'); |
|
| 20 | +define('_MA_DEBUGBAR_FORM_SUBMIT', 'Save'); |
|
| 21 | +define('_MA_DEBUGBAR_FORM_PROCESSED', 'Permissions updated.'); |
|
@@ -177,12 +177,12 @@ discard block |
||
| 177 | 177 | $excludes = array( |
| 178 | 178 | //'/vendor/font-awesome/', // font-awesome needs special process |
| 179 | 179 | //'/vendor/highlightjs/', // highlightjs has some negative side effects |
| 180 | - '/vendor/jquery/', // jquery is already available |
|
| 180 | + '/vendor/jquery/', // jquery is already available |
|
| 181 | 181 | ); |
| 182 | 182 | |
| 183 | 183 | $cssAssets = array_filter( |
| 184 | 184 | $cssAssets, |
| 185 | - function ($filename) use ($excludes) { |
|
| 185 | + function($filename) use ($excludes) { |
|
| 186 | 186 | foreach ($excludes as $exclude) { |
| 187 | 187 | if (false !== strpos($filename, $exclude)) { |
| 188 | 188 | return false; |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | $jsAssets = array_filter( |
| 196 | 196 | $jsAssets, |
| 197 | - function ($filename) use ($excludes) { |
|
| 197 | + function($filename) use ($excludes) { |
|
| 198 | 198 | foreach ($excludes as $exclude) { |
| 199 | 199 | if (false !== strpos($filename, $exclude)) { |
| 200 | 200 | return false; |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | { |
| 391 | 391 | if ($this->activated) { |
| 392 | 392 | $this->debugbar->stackData(); |
| 393 | - $this->activated=false; |
|
| 393 | + $this->activated = false; |
|
| 394 | 394 | $this->renderingEnabled = false; |
| 395 | 395 | } |
| 396 | 396 | } |
@@ -431,9 +431,9 @@ discard block |
||
| 431 | 431 | $pattern = '<!--<xo-logger-output>-->'; |
| 432 | 432 | $pos = strpos($output, $pattern); |
| 433 | 433 | if ($pos !== false) { |
| 434 | - return substr($output, 0, $pos) . $log . substr($output, $pos + strlen($pattern)); |
|
| 434 | + return substr($output, 0, $pos).$log.substr($output, $pos + strlen($pattern)); |
|
| 435 | 435 | } else { |
| 436 | - return $output . $log; |
|
| 436 | + return $output.$log; |
|
| 437 | 437 | } |
| 438 | 438 | } |
| 439 | 439 | |
@@ -452,15 +452,15 @@ discard block |
||
| 452 | 452 | } |
| 453 | 453 | $this->addToTheme(); |
| 454 | 454 | $this->addExtra(_MD_DEBUGBAR_PHP_VERSION, PHP_VERSION); |
| 455 | - $this->addExtra(_MD_DEBUGBAR_INCLUDED_FILES, (string) count(get_included_files())); |
|
| 455 | + $this->addExtra(_MD_DEBUGBAR_INCLUDED_FILES, (string)count(get_included_files())); |
|
| 456 | 456 | $conn = \Xoops::getInstance()->db()->getWrappedConnection(); |
| 457 | 457 | if ($conn instanceof \PDO) { |
| 458 | 458 | $this->addExtra( |
| 459 | - $conn->getAttribute(\PDO::ATTR_DRIVER_NAME) . ' version', |
|
| 459 | + $conn->getAttribute(\PDO::ATTR_DRIVER_NAME).' version', |
|
| 460 | 460 | $conn->getAttribute(\PDO::ATTR_SERVER_VERSION) |
| 461 | 461 | ); |
| 462 | 462 | $this->addExtra( |
| 463 | - $conn->getAttribute(\PDO::ATTR_DRIVER_NAME) . ' stats', |
|
| 463 | + $conn->getAttribute(\PDO::ATTR_DRIVER_NAME).' stats', |
|
| 464 | 464 | $conn->getAttribute(\PDO::ATTR_SERVER_INFO) |
| 465 | 465 | ); |
| 466 | 466 | } |
@@ -638,7 +638,7 @@ discard block |
||
| 638 | 638 | switch ($chan) { |
| 639 | 639 | case 'blocks': |
| 640 | 640 | $channel = 'Blocks'; |
| 641 | - $msg = $message . ': '; |
|
| 641 | + $msg = $message.': '; |
|
| 642 | 642 | if ($context['cached']) { |
| 643 | 643 | $msg .= sprintf(_MD_DEBUGBAR_CACHED, (int)($context['cachetime'])); |
| 644 | 644 | } else { |
@@ -651,7 +651,7 @@ discard block |
||
| 651 | 651 | break; |
| 652 | 652 | case 'extra': |
| 653 | 653 | $channel = 'Extra'; |
| 654 | - $msg = $context['name'] . ': ' . $message; |
|
| 654 | + $msg = $context['name'].': '.$message; |
|
| 655 | 655 | break; |
| 656 | 656 | case 'queries': |
| 657 | 657 | $channel = 'Queries'; |
@@ -663,11 +663,11 @@ discard block |
||
| 663 | 663 | // \Xmf\Debug::dump($context); |
| 664 | 664 | //} |
| 665 | 665 | $msg .= ' -- Error number: ' |
| 666 | - . (is_scalar($context['errno']) ? $context['errno'] : '?') |
|
| 666 | + . (is_scalar($context['errno']) ? $context['errno'] : '?') |
|
| 667 | 667 | . ' Error message: ' |
| 668 | - . (is_scalar($context['error']) ? $context['error'] : '?'); |
|
| 668 | + . (is_scalar($context['error']) ? $context['error'] : '?'); |
|
| 669 | 669 | } |
| 670 | - $msg = $qt . $msg; |
|
| 670 | + $msg = $qt.$msg; |
|
| 671 | 671 | break; |
| 672 | 672 | } |
| 673 | 673 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function configs() |
| 60 | 60 | { |
| 61 | - $config[]=array( |
|
| 61 | + $config[] = array( |
|
| 62 | 62 | 'name' => 'debugbar_enable', |
| 63 | 63 | 'title' => '_MI_DEBUGBAR_UCONF_ENABLE_BAR', |
| 64 | 64 | 'description' => '', |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | 'category' => 'cat_options' |
| 70 | 70 | ); |
| 71 | 71 | |
| 72 | - $config[]=array( |
|
| 72 | + $config[] = array( |
|
| 73 | 73 | 'name' => 'debug_smarty_enable', |
| 74 | 74 | 'title' => '_MI_DEBUGBAR_UCONF_ENABLE_SMARTY', |
| 75 | 75 | 'description' => '', |
@@ -21,7 +21,7 @@ |
||
| 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(); |
@@ -20,7 +20,7 @@ |
||
| 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 |
@@ -20,4 +20,4 @@ |
||
| 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'; |
|
@@ -42,7 +42,7 @@ |
||
| 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'; |
@@ -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 | |