Showing 1,065 of 16,781 total issues
Function renderPlugin_hyperv
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderPlugin_hyperv(data) {
var directives = {
State1: {
text: function () {
Method _fans
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _fans()
{
foreach ($this->_lines as $line) {
$buffer = preg_split("/\s*\|\s*/", $line);
if (isset($buffer[2]) && $buffer[2] == "Fan"
Method __construct
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct()
{
parent::__construct();
switch (defined('PSI_SENSOR_MBMON_ACCESS')?strtolower(PSI_SENSOR_MBMON_ACCESS):'command') {
case 'tcp':
Method _network
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _network()
{
if (CommonFunctions::executeProgram('ifconfig', '', $bufr, PSI_DEBUG)) {
$lines = preg_split("/\n/", $bufr, -1, PREG_SPLIT_NO_EMPTY);
$was = false;
Method __construct
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct()
{
parent::__construct();
if (defined('PSI_UPS_NUT_LIST') && is_string(PSI_UPS_NUT_LIST)) {
if (preg_match(ARRAY_EXP, PSI_UPS_NUT_LIST)) {
Method execute
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute()
{
$i = 0;
$quotas = array();
foreach ($this->_filecontent as $thisline) {
Function _fnScrollBarWidth
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnScrollBarWidth ()
{
var inner = document.createElement('p');
var style = inner.style;
style.width = "100%";
Function getWidthOrHeight
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getWidthOrHeight( elem, name, extra ) {
// Start with offset property, which is equivalent to the border-box value
var valueIsBorderBox = true,
val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
Function offset
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
offset: function( options ) {
if ( arguments.length ) {
return options === undefined ?
this :
this.each( function( i ) {
Function _fnGetCellData
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnGetCellData( oSettings, iRow, iCol, sSpecific )
{
var sData;
var oCol = oSettings.aoColumns[iCol];
var oData = oSettings.aoData[iRow]._aData;
Function smart_buildTable
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smart_buildTable(xml) {
var html = "";
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_SMARTTable\" style=\"border-collapse:collapse;\">\n";
Method _voltage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _voltage()
{
foreach ($this->_lines as $line) {
$buffer = preg_split("/\s*\|\s*/", $line);
if (isset($buffer[2]) && $buffer[2] == "Voltage"
Method _hostname
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _hostname()
{
if (PSI_USE_VHOST === true) {
if (CommonFunctions::readenv('SERVER_NAME', $hnm)) $this->sys->setHostname($hnm);
} else {
Method _current
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _current()
{
foreach ($this->_lines as $line) {
$buffer = preg_split("/\s*\|\s*/", $line);
if (isset($buffer[2]) && $buffer[2] == "Current"
Method _addchild
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _addchild($child, SimpleXMLExtended $xml, &$positions)
{
foreach ($child as $key=>$value) {
$xmlnode = $xml->addChild("Process");
if (isset($value[0])) {
Method checkForExtensions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function checkForExtensions($arrExt = array())
{
if ((strcasecmp(PSI_SYSTEM_CODEPAGE, "UTF-8") == 0) || (strcasecmp(PSI_SYSTEM_CODEPAGE, "CP437") == 0))
$arrReq = array('simplexml', 'pcre', 'xml', 'dom');
elseif (PSI_OS == "WINNT")
Method xml
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function xml()
{
if (empty($this->_result) || empty($this->_ids)) {
return $this->xml->getSimpleXmlElement();
}
Method uninstall_MimeTypes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uninstall_MimeTypes($dirname = '')
{
include_once(XOOPS_ROOT_PATH . '/kernel/mimetypes.php');
$hModule = xoops_getHandler('module');
Method _copyFile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _copyFile($chmod) {
$matched = array();
if (!preg_match("/\.([a-zA-Z0-9]+)$/", $this->mediaName, $matched)) {
return false;
}
Consider simplifying this complex logical expression. Open
Open
if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
support.getById && context.nodeType === 9 && documentIsHTML &&
Expr.relative[ tokens[1].type ] ) {
context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];