Showing 261 of 385 total issues
Method execute
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute()
{
//$cardInternational = $this->getRequest()->getParam('card_international');
Function extend
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_Api.extend = function (scope, obj, ext) {
// Only extend API instances and static properties of the API
if (!ext.length || !obj || (!(obj instanceof _Api) && !obj.__dt_wrapper)) {
return;
}
Function _fnFilter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFilter(settings, input, force, regex, smart, caseInsensitive) {
var rpSearch = _fnFilterCreateSearch(input, regex, smart, caseInsensitive);
var prevSearch = settings.oPreviousSearch.sSearch;
var displayMaster = settings.aiDisplayMaster;
var display, invalidated, i;
Function _fnAjaxUpdateDraw
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnAjaxUpdateDraw(settings, json) {
// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
// Support both
var compat = function (old, modern) {
return json[old] !== undefined ? json[old] : json[modern];
Function _toSettings
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _toSettings = function (mixed) {
var idx, jq;
var settings = DataTable.settings;
var tables = $.map(settings, function (el, i) {
return el.nTable;
Function _addNumericSort
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _addNumericSort(decimalPlace) {
$.each(
{
// Plain numbers
num: function (d) {
Function toMoney
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(i.toMoney = function(a, b) {
if (((b = f(b)), b.zeroCents)) {
b.lastOutput = b.lastOutput || '';
var c = '(' + b.separator + '[0]{0,' + b.precision + '})',
d = new RegExp(c, 'g'),
Method setBillingInformation
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function setBillingInformation()
{
$billing = $this->getBillingAddress();
if ($billing) {
if (count($billing->getStreet()) === 4) {
Function refresh
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(b.prototype.refresh = function() {
var b = this,
c = 'offset',
d = 0;
(this.offsets = []),
Function _
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_: function (settings, cell, column, classes) {
// No additional mark-up required
// Attach a sort listener to update on sort - note that using the
// `DT` namespace will allow the event to be removed automatically
// on destroy, while the `dt` namespaced event is the one we are
Function Cancel
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Cancel: function (url, data, row) {
var t = jQuery('#pagseguro-datatable').DataTable();
jQuery
.ajax({
Function _fnLog
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnLog(settings, level, msg, tn) {
msg =
'DataTables warning: ' +
(settings ? 'table id=' + settings.sTableId + ' - ' : '') +
msg;
Method updateOrderStatus
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function updateOrderStatus()
{
$this->_library->setEnvironment();
$this->_library->setCharset();
$this->_library->setLog();
Consider simplifying this complex logical expression. Open
Open
if (
event.keyCode === 8 ||
event.keyCode === 9 ||
event.keyCode === 46 ||
event.keyCode < 48 ||
Consider simplifying this complex logical expression. Open
Open
if (this.hasContent() && this.enabled) {
this.$element.trigger(b);
var d = a.contains(
this.$element[0].ownerDocument.documentElement,
this.$element[0]
Consider simplifying this complex logical expression. Open
Open
if (
e === 8 ||
e === 9 ||
e === 46 ||
(e > 47 && e < 58) ||
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
\Magento\Framework\Model\Context $context,
\Magento\Framework\Registry $registry,
\Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory,
\Magento\Framework\Api\AttributeValueFactory $attributeFactory,
\Magento\Payment\Helper\Data $paymentData,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
\Magento\Framework\Model\Context $context,
\Magento\Framework\Registry $registry,
\Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory,
\Magento\Framework\Api\AttributeValueFactory $attributeFactory,
\Magento\Payment\Helper\Data $paymentData,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
\Magento\Framework\Model\Context $context,
\Magento\Framework\Registry $registry,
\Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory,
\Magento\Framework\Api\AttributeValueFactory $attributeFactory,
\Magento\Payment\Helper\Data $paymentData,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
\Magento\Framework\Model\Context $context,
\Magento\Framework\Registry $registry,
\Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory,
\Magento\Framework\Api\AttributeValueFactory $attributeFactory,
\Magento\Payment\Helper\Data $paymentData,