GrafiteInc/Builder

View on GitHub

Showing 45 of 80 total issues

File card.js has 1709 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var card =
/******/ (function(modules) { // webpackBootstrap
/******/  // The module cache
/******/  var installedModules = {};

Severity: Major
Found in src/Packages/Billing/resources/assets/js/card.js - About 4 days to fix

    Method handle has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function handle()
        {
            if ($this->starterIsInstalled()) {
                $fileSystem = new Filesystem();
    
    
    Severity: Minor
    Found in src/Console/Billing.php - About 1 hr to fix

      Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        var extend = function extend() {
          var target = arguments[0] || {};
          var i = 1;
          var length = arguments.length;
          var deep = false;
      Severity: Minor
      Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

        Function equal has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          is.equal = function equal(value, other) {
            if (value === other) {
              return true;
            }
        
        
        Severity: Minor
        Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

          Function render has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              Card.prototype.render = function() {
                var $cardContainer, baseWidth, name, obj, selector, ua, _ref, _ref1;
                QJ.append(this.$container, this.template(this.cardTemplate, extend({}, this.options.messages, this.options.placeholders)));
                _ref = this.options.cardSelectors;
                for (name in _ref) {
          Severity: Minor
          Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

            Method handle has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function handle()
                {
                    if ($this->starterIsInstalled()) {
                        $fileSystem = new Filesystem();
            
            
            Severity: Minor
            Found in src/Console/Api.php - About 1 hr to fix

              Method handle has 37 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function handle()
                  {
                      if ($this->starterIsInstalled()) {
                          $fileSystem = new Filesystem();
              
              
              Severity: Minor
              Found in src/Console/Socialite.php - About 1 hr to fix

                Function attachHandlers has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    Card.prototype.attachHandlers = function() {
                      var expiryFilters, numberInputFilters;
                      numberInputFilters = [this.validToggler('cardNumber')];
                      if (this.options.masks.cardNumber) {
                        numberInputFilters.push(this.maskCardNumber);
                Severity: Minor
                Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

                  Function addStyle has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function addStyle(obj, options) {
                      var styleElement, update, remove;
                  
                      if (options.singleton) {
                        var styleIndex = singletonCounter++;
                  Severity: Minor
                  Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

                    Function exports has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      module.exports = function() {
                        var list = [];
                    
                        // return the list of modules as css string
                        list.toString = function toString() {
                    Severity: Minor
                    Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

                      Method handle has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function handle()
                          {
                              if ($this->starterIsInstalled()) {
                                  $fileSystem = new Filesystem();
                      
                      
                      Severity: Minor
                      Found in src/Console/Notifications.php - About 1 hr to fix

                        Method handle has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function handle()
                            {
                                if ($this->starterIsInstalled()) {
                                    $fileSystem = new Filesystem();
                        
                        
                        Severity: Minor
                        Found in src/Console/Forge.php - About 1 hr to fix

                          Method handle has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function handle()
                              {
                                  if ($this->starterIsInstalled()) {
                                      $fileSystem = new Filesystem();
                          
                          
                          Severity: Minor
                          Found in src/Console/Features.php - About 1 hr to fix

                            Function validateCardExpiry has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    validateCardExpiry: function(month, year) {
                                      var currentTime, expiry, prefix, ref, ref1;
                                      if (typeof month === 'object' && 'month' in month) {
                                        ref = month, month = ref.month, year = ref.year;
                                      } else if (typeof month === 'string' && indexOf.call(month, '/') >= 0) {
                            Severity: Minor
                            Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

                              Function validToggler has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  Card.prototype.validToggler = function(validatorName) {
                                    var isValid;
                                    if (validatorName === "cardExpiry") {
                                      isValid = function(val) {
                                        var objVal;
                              Severity: Minor
                              Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

                                Function exports has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  module.exports = function(list, options) {
                                    if(false) {
                                      if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
                                    }
                                
                                
                                Severity: Minor
                                Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

                                  Function on has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      QJ.on = function(element, eventName, callback) {
                                        var el, i, j, len, len1, multEventName, originalCallback, ref;
                                        if (element.length) {
                                          for (i = 0, len = element.length; i < len; i++) {
                                            el = element[i];
                                  Severity: Minor
                                  Found in src/Packages/Billing/resources/assets/js/card.js - About 1 hr to fix

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

                                        public function handle()
                                        {
                                            if ($this->starterIsInstalled()) {
                                                $fileSystem = new Filesystem();
                                    
                                    
                                    Severity: Minor
                                    Found in src/Console/Activity.php - About 1 hr to fix

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

                                          public function handle()
                                          {
                                              if ($this->starterIsInstalled()) {
                                                  $fileSystem = new Filesystem();
                                      
                                      
                                      Severity: Minor
                                      Found in src/Console/Queue.php - About 1 hr to fix

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

                                            public function handle()
                                            {
                                                if ($this->starterIsInstalled()) {
                                                    $fileSystem = new Filesystem();
                                        
                                        
                                        Severity: Minor
                                        Found in src/Console/Logs.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language