dynamic/foxystripe

View on GitHub

Showing 127 of 127 total issues

Function easeInCubic has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInCubic: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function swing has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    swing: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeInOutQuart has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInOutQuart: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeOutSine has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeOutSine: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeInOutSine has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInOutSine: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeInOutElastic has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInOutElastic: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeInOutBounce has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInOutBounce: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeOutQuint has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeOutQuint: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function queryNewValue has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        queryNewValue = function (code, newValue, link, id, clicked) {
Severity: Minor
Found in javascript/quantity.js - About 35 mins to fix

Function easeInExpo has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInExpo: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeInOutCirc has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInOutCirc: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeOutBounce has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeOutBounce: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeInQuint has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInQuint: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeInBounce has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInBounce: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeOutQuart has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeOutQuart: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function easeInElastic has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInElastic: function (x, t, b, c, d) {
Severity: Minor
Found in thirdparty/flexslider/demo/js/jquery.easing.js - About 35 mins to fix

Function getAPIRequest has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    private static function getAPIRequest($foxyData = array())
    {
        if (self::getStoreKey() && self::getFoxyCartStoreName()) {
            $config = FoxyStripeSetting::current_foxystripe_setting();
            if ($config->CustomSSL) {
Severity: Minor
Found in src/Model/FoxyCart.php - About 35 mins to fix

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 modifyOrderDetailPrice has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function modifyOrderDetailPrice($OrderProduct, $OrderDetail, $product)
    {
        if (!$OrderProduct) {
            return;
        }
Severity: Minor
Found in src/Controller/FoxyStripeController.php - About 35 mins to fix

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 updateConfig has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    private function updateConfig()
    {
        $data = static::config()->get('data');
        $transactionDate = $data['TransactionDate'];
        static::config()->merge('data', [
Severity: Minor
Found in src/Controller/DataTestController.php - About 35 mins to fix

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

Avoid too many return statements within this method.
Open

                return 'none';
Severity: Major
Found in src/Controller/FoxyStripeController.php - About 30 mins to fix
Severity
Category
Status
Source
Language