Showing 1,065 of 16,781 total issues
Function getHWDevice
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$("Hardware " + type + " Device", xml).each(function getHWDevice(deviceId) {
var name = "", count = 0, capacity = 0, manufacturer = "", product = "", serial = "", devcoreposition = 0;
devicecount++;
name = $(this).attr("Name");
Function formatBPS
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatBPS(bps) {
var show = "";
if (bps > Math.pow(1000, 5)) {
show += round(bps / Math.pow(1000, 5), 2);
Function buildblocks
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success: function buildblocks(xml) {
if ((typeof(initiate) === 'boolean') && (initiate === true)) {
populateErrors(xml);
}
Function html
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
html: function( value ) {
return access( this, function( value ) {
var elem = this[ 0 ] || {},
i = 0,
l = this.length;
Function 7
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"../lib/lodash.js":7,"./helpers":5}],7:[function(require,module,exports){
var _ = {};
_.toString = Object.prototype.toString;
Function raid_populate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function raid_populate(xml) {
$("#Plugin_RaidTable").empty();
$("#Plugin_RaidTable").append("<tbody>");
var arr = $("Plugins Plugin_Raid Raid", xml);
arr.each(function raid_getdevice(id) {
Function hyperv_buildTable
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function hyperv_buildTable() {
var html = "";
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_HyperVTable\" style=\"border-collapse:collapse;\">\n";
Function pingtest_buildTable
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function pingtest_buildTable() {
var html = "";
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_PingTestTable\" style=\"border-collapse:collapse;\">\n";
Function smart_populate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smart_populate(xml) {
var name = "", columns = [];
smart_table.fnClearTable();
// Get datas that the user want to be displayed
Function psstatus_buildTable
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function psstatus_buildTable() {
var html = "";
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_PSStatusTable\" style=\"border-collapse:collapse;\">\n";
Function renderValues
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Instance.prototype.renderValues = chainable(function(model, children) {
var element, key, value, _results;
if (_.isElement(model) && (element = this.elements[0])) {
return element.empty().el.appendChild(model);
} else if (typeof model === 'object') {
Function getEmValue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getEmValue = function () {
var ret,
div = doc.createElement('div'),
body = doc.body,
originalHTMLFontSize = docElem.style.fontSize,
Method _info
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _info()
{
if (empty($this->_output)) {
return;
}
Method _trace
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _trace($strMessage)
{
$arrTrace = array_reverse(debug_backtrace());
$strFunc = '';
$strBacktrace = htmlspecialchars($strMessage)."\n\n";
Method readReg
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function readReg($reg, $strName, &$strBuffer, $booErrorRep = true)
{
$strBuffer = '';
if ($reg === false) {
$last = strrpos($strName, "\\");
Function off
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
off: function( types, selector, fn ) {
var handleObj, type;
if ( types && types.preventDefault && types.handleObj ) {
// ( event ) dispatched jQuery.Event
Function finish
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
finish: function( type ) {
if ( type !== false ) {
type = type || "fx";
}
return this.each( function() {
Function fix
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fix: function( event ) {
if ( event[ jQuery.expando ] ) {
return event;
}
Function addClass
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addClass: function( value ) {
var classes, elem, cur, curValue, clazz, j, finalValue,
i = 0;
if ( jQuery.isFunction( value ) ) {
Method _memory
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _memory()
{
if (CommonFunctions::rfts('/proc/meminfo', $bufr)) {
$bufe = preg_split("/\n/", $bufr, -1, PREG_SPLIT_NO_EMPTY);
foreach ($bufe as $buf) {