Showing 45 of 80 total issues
File card.js
has 1709 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var card =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
Method handle
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->starterIsInstalled()) {
$fileSystem = new Filesystem();
Function extend
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var extend = function extend() {
var target = arguments[0] || {};
var i = 1;
var length = arguments.length;
var deep = false;
Function equal
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
is.equal = function equal(value, other) {
if (value === other) {
return true;
}
Function render
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Method handle
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->starterIsInstalled()) {
$fileSystem = new Filesystem();
Method handle
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->starterIsInstalled()) {
$fileSystem = new Filesystem();
Function attachHandlers
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Card.prototype.attachHandlers = function() {
var expiryFilters, numberInputFilters;
numberInputFilters = [this.validToggler('cardNumber')];
if (this.options.masks.cardNumber) {
numberInputFilters.push(this.maskCardNumber);
Function addStyle
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addStyle(obj, options) {
var styleElement, update, remove;
if (options.singleton) {
var styleIndex = singletonCounter++;
Function exports
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function() {
var list = [];
// return the list of modules as css string
list.toString = function toString() {
Method handle
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->starterIsInstalled()) {
$fileSystem = new Filesystem();
Method handle
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->starterIsInstalled()) {
$fileSystem = new Filesystem();
Method handle
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->starterIsInstalled()) {
$fileSystem = new Filesystem();
Function validateCardExpiry
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function validToggler
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Card.prototype.validToggler = function(validatorName) {
var isValid;
if (validatorName === "cardExpiry") {
isValid = function(val) {
var objVal;
Function exports
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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");
}
Function on
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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];
Method handle
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->starterIsInstalled()) {
$fileSystem = new Filesystem();
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->starterIsInstalled()) {
$fileSystem = new Filesystem();
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->starterIsInstalled()) {
$fileSystem = new Filesystem();