aristath/kirki

View on GitHub

Showing 195 of 644 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

        if (this.id && api.control(this.id) && api.control(this.id).params && api.control(this.id).params.parent_setting) {
            parentSetting = api.control(this.id).params.parent_setting;
            newVal = {};
            newVal[this.id.replace(parentSetting + '[', '').replace(']', '')] = to;
            api.control(parentSetting).setting.set(jQuery.extend({}, api.control(parentSetting).setting._value, newVal));
packages/kirki-framework/control-base/src/dynamic-control.js on lines 280..283

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 66.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"121":121,"122":122,"40":40}],257:[function(_dereq_,module,exports){
_dereq_(120)('Float32', 4, function (init) {
  return function Float32Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"120":120}],263:[function(_dereq_,module,exports){
_dereq_(120)('Uint32', 4, function (init) {
  return function Uint32Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"120":120}],258:[function(_dereq_,module,exports){
_dereq_(120)('Float64', 8, function (init) {
  return function Float64Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"120":120}],264:[function(_dereq_,module,exports){
_dereq_(120)('Uint8', 1, function (init) {
  return function Uint8Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"120":120}],261:[function(_dereq_,module,exports){
_dereq_(120)('Int8', 1, function (init) {
  return function Int8Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"120":120}],260:[function(_dereq_,module,exports){
_dereq_(120)('Int32', 4, function (init) {
  return function Int32Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"120":120}],262:[function(_dereq_,module,exports){
_dereq_(120)('Uint16', 2, function (init) {
  return function Uint16Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"120":120}],259:[function(_dereq_,module,exports){
_dereq_(120)('Int16', 2, function (init) {
  return function Int16Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"57":57,"85":85}],200:[function(_dereq_,module,exports){
// 19.1.3.10 Object.is(value1, value2)
var $export = _dereq_(40);
$export($export.S, 'Object', { is: _dereq_(97) });

packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3361..3367
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3622..3628
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3765..3771
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3827..3833
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3843..3849
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3978..3984
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4815..4821

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 63.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"94":94}],156:[function(_dereq_,module,exports){
// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
var $export = _dereq_(40);

$export($export.P, 'Function', { bind: _dereq_(24) });
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3361..3367
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3765..3771
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3827..3833
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3843..3849
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3978..3984
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4257..4262
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4815..4821

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 63.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"40":40}],171:[function(_dereq_,module,exports){
// 20.2.2.20 Math.log1p(x)
var $export = _dereq_(40);

$export($export.S, 'Math', { log1p: _dereq_(68) });
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3361..3367
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3622..3628
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3765..3771
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3843..3849
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3978..3984
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4257..4262
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4815..4821

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 63.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"40":40}],173:[function(_dereq_,module,exports){
// 20.2.2.28 Math.sign(x)
var $export = _dereq_(40);

$export($export.S, 'Math', { sign: _dereq_(69) });
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3361..3367
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3622..3628
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3765..3771
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3827..3833
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3978..3984
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4257..4262
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4815..4821

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 63.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"40":40,"46":46}],180:[function(_dereq_,module,exports){
// 20.1.2.3 Number.isInteger(number)
var $export = _dereq_(40);

$export($export.S, 'Number', { isInteger: _dereq_(56) });
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3361..3367
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3622..3628
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3765..3771
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3827..3833
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3843..3849
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4257..4262
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4815..4821

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 63.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"104":104,"19":19,"40":40}],139:[function(_dereq_,module,exports){
// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
var $export = _dereq_(40);

$export($export.S, 'Array', { isArray: _dereq_(55) });
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3622..3628
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3765..3771
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3827..3833
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3843..3849
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3978..3984
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4257..4262
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4815..4821

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 63.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"16":16,"40":40}],219:[function(_dereq_,module,exports){
// 26.1.11 Reflect.ownKeys(target)
var $export = _dereq_(40);

$export($export.S, 'Reflect', { ownKeys: _dereq_(87) });
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3361..3367
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3622..3628
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3765..3771
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3827..3833
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3843..3849
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3978..3984
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4257..4262

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 63.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

},{"40":40,"66":66}],167:[function(_dereq_,module,exports){
// 20.2.2.16 Math.fround(x)
var $export = _dereq_(40);

$export($export.S, 'Math', { fround: _dereq_(67) });
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3361..3367
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3622..3628
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3827..3833
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3843..3849
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3978..3984
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4257..4262
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4815..4821

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 63.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

},{"125":125,"15":15,"32":32,"36":36,"45":45,"61":61,"63":63,"70":70,"74":74,"75":75,"93":93,"99":99}],28:[function(_dereq_,module,exports){
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 805..805

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 62.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

},{"100":100,"15":15,"40":40,"42":42,"45":45,"46":46,"51":51,"57":57,"62":62,"70":70,"93":93,"94":94}],30:[function(_dereq_,module,exports){
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 631..631

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 62.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

          (hooks.__current || []).forEach(function (hookInfo) {
            if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {
              hookInfo.currentIndex--;
            }
          });
Severity: Major
Found in packages/kirki-framework/compatibility/src/scripts/hooks.js and 1 other location - About 1 hr to fix
packages/kirki-framework/compatibility/src/scripts/hooks.js on lines 234..238

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 61.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language