pagseguro/magento2

View on GitHub

Showing 261 of 385 total issues

Method execute has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute()
    {

        //$cardInternational = $this->getRequest()->getParam('card_international');

Severity: Minor
Found in Controller/Direct/CreditCard.php - About 1 hr to fix

    Function _fnAjaxUpdateDraw has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    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];
    Severity: Minor
    Found in view/adminhtml/web/js/jquery.dataTables.min.js - About 1 hr to fix

      Function _fnFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      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;
      Severity: Minor
      Found in view/adminhtml/web/js/jquery.dataTables.min.js - About 1 hr to fix

        Function extend has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        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;
            }
        Severity: Minor
        Found in view/adminhtml/web/js/jquery.dataTables.min.js - About 1 hr to fix

          Function _addNumericSort has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function _addNumericSort(decimalPlace) {
              $.each(
                {
                  // Plain numbers
                  num: function (d) {
          Severity: Minor
          Found in view/adminhtml/web/js/jquery.dataTables.min.js - About 1 hr to fix

            Function _toSettings has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              var _toSettings = function (mixed) {
                var idx, jq;
                var settings = DataTable.settings;
                var tables = $.map(settings, function (el, i) {
                  return el.nTable;
            Severity: Minor
            Found in view/adminhtml/web/js/jquery.dataTables.min.js - About 1 hr to fix

              Function toMoney has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              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'),
              Severity: Minor
              Found in view/frontend/web/js/vanillamasker.min.js - About 1 hr to fix

                Method setBillingInformation has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function setBillingInformation()
                    {
                        $billing = $this->getBillingAddress();
                        if ($billing) {
                            if (count($billing->getStreet()) === 4) {
                Severity: Minor
                Found in Model/Direct/CreditCardMethod.php - About 1 hr to fix

                  Function refresh has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      (b.prototype.refresh = function() {
                          var b = this,
                              c = 'offset',
                              d = 0;
                          (this.offsets = []),
                  Severity: Minor
                  Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

                    Function Cancel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          Cancel: function (url, data, row) {
                            var t = jQuery('#pagseguro-datatable').DataTable();
                    
                            jQuery
                              .ajax({
                    Severity: Minor
                    Found in view/adminhtml/web/js/public.js - About 1 hr to fix

                      Function _fnLog has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function _fnLog(settings, level, msg, tn) {
                          msg =
                            'DataTables warning: ' +
                            (settings ? 'table id=' + settings.sTableId + ' - ' : '') +
                            msg;
                      Severity: Minor
                      Found in view/adminhtml/web/js/jquery.dataTables.min.js - About 1 hr to fix

                        Function _ has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        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
                        Severity: Minor
                        Found in view/adminhtml/web/js/jquery.dataTables.min.js - About 1 hr to fix

                          Method updateOrderStatus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private function updateOrderStatus()
                              {
                                  $this->_library->setEnvironment();
                                  $this->_library->setCharset();
                                  $this->_library->setLog();
                          Severity: Minor
                          Found in Model/NotificationMethod.php - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                              if (
                                event.keyCode === 8 ||
                                event.keyCode === 9 ||
                                event.keyCode === 46 ||
                                event.keyCode < 48 ||
                            Severity: Major
                            Found in view/frontend/web/js/model/direct-payment-validator.js - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if (this.hasContent() && this.enabled) {
                                          this.$element.trigger(b);
                                          var d = a.contains(
                                              this.$element[0].ownerDocument.documentElement,
                                              this.$element[0]
                              Severity: Major
                              Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                    if (
                                      e === 8 ||
                                      e === 9 ||
                                      e === 46 ||
                                      (e > 47 && e < 58) ||
                                Severity: Major
                                Found in view/frontend/web/js/model/direct-payment-validator.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                  if (!isset($paymentData['additional_information']['credit_card_document'])
                                                      || ! isset($paymentData['additional_information']['hash'])
                                                      || ! isset($paymentData['additional_information']['credit_card_token'])
                                                      || ! isset($paymentData['additional_information']['credit_card_holder_name'])
                                                      || ! isset($paymentData['additional_information']['credit_card_holder_birthdate'])
                                  Severity: Major
                                  Found in Controller/Payment/Request.php - About 1 hr to fix

                                    Method __construct has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    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,
                                    Severity: Major
                                    Found in Model/Payment.php - About 1 hr to fix

                                      Method __construct has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                      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,
                                      Severity: Major
                                      Found in Model/PaymentDefaultlLightbox.php - About 1 hr to fix

                                        Method __construct has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                        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,
                                        Severity: Major
                                        Found in Model/PaymentCreditCard.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language