aristath/kirki

View on GitHub

Showing 449 of 644 total issues

Avoid too many return statements within this method.
Open

                return $colors['primary'];
Severity: Major
Found in packages/kirki-framework/util/src/MaterialColors.php - About 30 mins to fix

Avoid too many return statements within this function.
Open

        return ( ! isNaN( numericValue ) && -1 !== validUnits.indexOf( unit ) );
Severity: Major
Found in packages/kirki-framework/control-dimension/src/control.js - About 30 mins to fix

Avoid too many return statements within this method.
Open

            return $value2 <= $value1;
Severity: Major
Found in packages/kirki-framework/util/src/Helper.php - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return A;
Severity: Major
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

              return handle(entry.finallyLoc);
Severity: Major
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js - About 30 mins to fix

Avoid too many return statements within this method.
Open

            return $value2 < $value1;
Severity: Major
Found in packages/kirki-framework/util/src/Helper.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

                return in_array( $value2, $value1 ); // phpcs:ignore WordPress.PHP.StrictInArray
Severity: Major
Found in packages/kirki-framework/util/src/Helper.php - About 30 mins to fix

Avoid too many return statements within this function.
Open

            if (A.length === lim) return A;
Severity: Major
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js - About 30 mins to fix

Avoid too many return statements within this method.
Open

            return ! self::compare_values( $value1, $value2, $operator );
Severity: Major
Found in packages/kirki-framework/util/src/Helper.php - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return info;
Severity: Major
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    return ContinueSentinel;
Severity: Major
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js - About 30 mins to fix

Avoid too many return statements within this method.
Open

        return $value1 == $value2; // phpcs:ignore WordPress.PHP.StrictComparisons
Severity: Major
Found in packages/kirki-framework/util/src/Helper.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

                    return $this->mode;
Severity: Major
Found in lib/class-aricolor.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

                    return self::new_color( 'hsla(' . $this->hue . ',' . $this->saturation . '%,' . $value . '%,' . $this->alpha . ')', 'hsla' );
Severity: Major
Found in lib/class-aricolor.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

                    return self::new_color( 'hsla(' . $this->hue . ',' . $value . '%,' . $this->lightness . '%,' . $this->alpha . ')', 'hsla' );
Severity: Major
Found in lib/class-aricolor.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

                return self::new_color( 'rgba(' . $red . ',' . $green . ',' . $blue . ',' . $this->alpha . ')', 'rgba' );
Severity: Major
Found in lib/class-aricolor.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

                return 'hex';
Severity: Major
Found in lib/class-aricolor.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

            return null;
Severity: Major
Found in lib/class-aricolor.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

                    return $this;
Severity: Major
Found in lib/class-aricolor.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

                    return 'rgba';
Severity: Major
Found in lib/class-aricolor.php - About 30 mins to fix
Severity
Category
Status
Source
Language