Showing 449 of 644 total issues
Method set_hsl
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function set_hsl() {
$red = $this->red / 255;
$green = $this->green / 255;
$blue = $this->blue / 255;
- Create a ticketCreate a ticket
Function init
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
init: function() {
var self = this;
_.each( window.kirkiControlDependencies, function( requires, controlID ) {
var control = wp.customize.control( controlID );
- Create a ticketCreate a ticket
Function 94
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{"94":94}],94:[function(_dereq_,module,exports){
var global = _dereq_(46);
var hide = _dereq_(48);
var has = _dereq_(47);
var SRC = _dereq_(123)('src');
- Create a ticketCreate a ticket
Function loadScript
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
DomHelper.prototype.loadScript = function(src, opt_callback, opt_timeout) {
var head = this.document_.getElementsByTagName('head')[0];
if (head) {
var script = this.createElement('script', {
- Create a ticketCreate a ticket
Function _setUpSettingPropertyLinks
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
_setUpSettingPropertyLinks: function () {
var control = this,
nodes;
if (!control.setting) {
- Create a ticketCreate a ticket
Method css_dimension
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function css_dimension( $value ) {
// Trim it.
$value = trim( $value );
- Create a ticketCreate a ticket
Method set_js_vars
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function set_js_vars() {
if ( ! is_array( $this->js_vars ) ) {
$this->js_vars = [];
}
- Create a ticketCreate a ticket
Method styles_parse
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function styles_parse( $css = [] ) {
// Pass our styles from the kirki_styles_array filter.
$css = apply_filters( 'kirki_styles_array', $css );
- Create a ticketCreate a ticket
Function 24
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
},{"22":22}],24:[function(_dereq_,module,exports){
'use strict';
var aFunction = _dereq_(11);
var isObject = _dereq_(57);
var invoke = _dereq_(52);
- Read upRead up
- Create a ticketCreate a ticket
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 44
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
},{"128":128,"224":224,"35":35,"42":42,"48":48,"94":94,"96":96}],44:[function(_dereq_,module,exports){
'use strict';
// 21.2.5.3 get RegExp.prototype.flags
var anObject = _dereq_(16);
module.exports = function () {
- Read upRead up
- Create a ticketCreate a ticket
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 66
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
},{}],66:[function(_dereq_,module,exports){
// 20.2.2.14 Math.expm1(x)
var $expm1 = Math.expm1;
module.exports = (!$expm1
// Old FF bug
- Read upRead up
- Create a ticketCreate a ticket
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 findFile
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function findFile($class)
{
// class map lookup
if (isset($this->classMap[$class])) {
return $this->classMap[$class];
- Read upRead up
- Create a ticketCreate a ticket
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 process_output
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
protected function process_output( $output, $value ) {
$output = wp_parse_args(
$output,
array(
- Read upRead up
- Create a ticketCreate a ticket
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 get_sanitized_field_value
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public static function get_sanitized_field_value( $field ) {
$value = $field['default'];
if ( ! isset( $field['option_type'] ) || 'theme_mod' === $field['option_type'] ) {
$value = get_theme_mod( $field['settings'], $field['default'] );
} elseif ( isset( $field['option_type'] ) && 'option' === $field['option_type'] ) {
- Read upRead up
- Create a ticketCreate a ticket
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 sanitize
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public static function sanitize( $value ) {
$sanitized_value = '';
if ( is_string( $value ) ) {
- Read upRead up
- Create a ticketCreate a ticket
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 set_hsl
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
protected function set_hsl() {
$red = $this->red / 255;
$green = $this->green / 255;
$blue = $this->blue / 255;
- Read upRead up
- Create a ticketCreate a ticket
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 webfont_loader
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function webfont_loader() {
// Go through our fields and populate $this->fonts.
$this->webfonts->loop_fields( $this->config_id );
- Read upRead up
- Create a ticketCreate a ticket
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 21
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{"117":117,"118":118,"23":23,"32":32,"53":53}],21:[function(_dereq_,module,exports){
var aFunction = _dereq_(11);
var toObject = _dereq_(118);
var IObject = _dereq_(53);
var toLength = _dereq_(117);
- Create a ticketCreate a ticket
Function validateCssValue
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
validateCssValue: function( value ) {
var control = this,
validUnits = [ 'fr', 'rem', 'em', 'ex', '%', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ch', 'vh', 'vw', 'vmin', 'vmax' ],
numericValue,
- Create a ticketCreate a ticket
Method sanitize_color_array
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function sanitize_color_array( $color, $color_type = 'rgb' ) {
$keys = [ 'r', 'g', 'b' ];
$mins = [ 0, 0, 0 ];
$maxs = [ 255, 255, 255 ];
- Create a ticketCreate a ticket