Showing 261 of 385 total issues
File jquery.dataTables.min.js
has 6305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! DataTables 1.10.12
* ©2008-2015 SpryMedia Ltd - datatables.net/license
*/
/**
File bootstrap.min.js
has 1669 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
Function DataTable
has 536 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var DataTable = function (options) {
/**
* Perform a jQuery selector action on the table's TR elements (from the tbody) and
* return the resulting jQuery object.
* @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
File public.js
has 919 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
*
* Modals
*
*/
Function Details
has 313 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Details: function (url, transaction_code, order) {
jQuery
.ajax({
url: url + '/pagseguro/transactions/transaction',
type: 'POST',
Function y
has 229 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var y = function (a, e, d) {
var c = {
invalid: [],
getCaret: function () {
try {
Function _fnScrollDraw
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnScrollDraw(settings) {
// Given that this is such a monster function, a lot of variables are use
// to try and keep the minimised size as small as possible
var scroll = settings.oScroll,
scrollX = scroll.sX,
Function _fnCalculateColumnWidths
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnCalculateColumnWidths(oSettings) {
var table = oSettings.nTable,
columns = oSettings.aoColumns,
scroll = oSettings.oScroll,
scrollY = scroll.sY,
Method execute
has 138 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute()
{
$lastRealOrder = $this->_checkoutSession->getLastRealOrder();
if ($lastRealOrder->getPayment()===null) {
Function execute
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
Open
public function execute()
{
$lastRealOrder = $this->_checkoutSession->getLastRealOrder();
if ($lastRealOrder->getPayment()===null) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File Data.php
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* 2007-2016 [PagSeguro Internet Ltda.]
*
* NOTICE OF LICENSE
CreditCardMethod
has 35 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class CreditCardMethod
{
/**
* @var \Magento\Checkout\Model\Session
*/
File Method.php
has 354 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* 2007-2016 [PagSeguro Internet Ltda.]
*
* NOTICE OF LICENSE
Method
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class Method
{
/**
* Sanitize configuration
Function getTitleCodePaymentMethod
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function getTitleCodePaymentMethod($code)
{
if (!is_null($code)) {
switch ($code) {
case 101:
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _fnDraw
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnDraw(oSettings) {
/* Provide a pre-callback function which can be used to cancel the draw is false is returned */
var aPreDraw = _fnCallbackFire(oSettings, 'aoPreDrawCallback', 'preDraw', [
oSettings,
]);
Function _fnFeatureHtmlTable
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFeatureHtmlTable(settings) {
var table = $(settings.nTable);
// Add the ARIA grid role to the table
table.attr('role', 'grid');
File jquery.mask.min.js
has 328 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// jQuery Mask Plugin v1.14.0
// github.com/igorescobar/jQuery-Mask-Plugin
(function (b) {
'function' === typeof define && define.amd
? define(['jquery'], b)
Function _fnBuildAjax
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnBuildAjax(oSettings, data, fn) {
// Compatibility with 1.9-, allow fnServerData and event to manipulate
_fnCallbackFire(oSettings, 'aoServerParams', 'serverParams', [data]);
// Convert to object based for 1.10+ if using the old array scheme which can
DebitMethod
has 30 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class DebitMethod
{
/**
* @var \Magento\Checkout\Model\Session
*/