arastta/arastta

View on GitHub

Showing 2,514 of 7,509 total issues

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

<?php
$name='DejaVuSansCondensed';
$type='TTF';
$desc=array (
  'CapHeight' => 729,
Severity: Major
Found in system/mpdf/ttfontdata/dejavusanscondensed.mtx.php and 1 other location - About 5 mos to fix
system/mpdf/ttfontdata/dejavusans.mtx.php on lines 1..4950

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 25135.

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

<?php
$name='DejaVuSans';
$type='TTF';
$desc=array (
  'CapHeight' => 729,
Severity: Major
Found in system/mpdf/ttfontdata/dejavusans.mtx.php and 1 other location - About 5 mos to fix
system/mpdf/ttfontdata/dejavusanscondensed.mtx.php on lines 1..4950

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 25135.

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

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

(function (undefined) {
    /************************************
        Constants
    ************************************/

Severity: Major
Found in admin/view/javascript/jquery/datetimepicker/moment.js and 1 other location - About 4 mos to fix
catalog/view/javascript/jquery/datetimepicker/moment.js on lines 7..2856

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 22246.

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

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

(function (undefined) {
    /************************************
        Constants
    ************************************/

Severity: Major
Found in catalog/view/javascript/jquery/datetimepicker/moment.js and 1 other location - About 4 mos to fix
admin/view/javascript/jquery/datetimepicker/moment.js on lines 7..2856

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 22246.

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

<?php
/**
 * @package     Arastta eCommerce
 * @copyright   2015-2017 Arastta Association. All rights reserved.
 * @copyright   See CREDITS.txt for credits and other copyright notices.
Severity: Major
Found in admin/controller/localisation/weight_class.php and 1 other location - About 3 wks to fix
admin/controller/localisation/length_class.php on lines 1..437

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 4438.

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

<?php
/**
 * @package     Arastta eCommerce
 * @copyright   2015-2017 Arastta Association. All rights reserved.
 * @copyright   See CREDITS.txt for credits and other copyright notices.
Severity: Major
Found in admin/controller/localisation/length_class.php and 1 other location - About 3 wks to fix
admin/controller/localisation/weight_class.php on lines 1..439

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 4438.

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

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

<?php
$GSLuCoverage = array (
  0 => 
  array (
    0 => 
Severity: Major
Found in system/mpdf/ttfontdata/dejavusans.GSUBdata.php and 1 other location - About 3 wks to fix
system/mpdf/ttfontdata/dejavusanscondensed.GSUBdata.php on lines 1..959

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 4001.

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

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

<?php
$GSLuCoverage = array (
  0 => 
  array (
    0 => 
Severity: Major
Found in system/mpdf/ttfontdata/dejavusanscondensed.GSUBdata.php and 1 other location - About 3 wks to fix
system/mpdf/ttfontdata/dejavusans.GSUBdata.php on lines 1..959

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 4001.

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

+function ($) {
  'use strict';

  // MODAL CLASS DEFINITION
  // ======================
Severity: Major
Found in admin/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 2 wks to fix
catalog/view/javascript/bootstrap/js/bootstrap.js on lines 912..1226

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 3092.

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

+function ($) {
  'use strict';

  // MODAL CLASS DEFINITION
  // ======================
Severity: Major
Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 2 wks to fix
admin/view/javascript/bootstrap/js/bootstrap.js on lines 914..1228

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 3092.

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

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

<?php
$LuCoverage = array (
  0 => 
  array (
    0 => 
Severity: Major
Found in system/mpdf/ttfontdata/dejavusanscondensed.GPOSdata.php and 1 other location - About 2 wks to fix
system/mpdf/ttfontdata/dejavusans.GPOSdata.php on lines 1..595

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 2622.

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

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

<?php
$LuCoverage = array (
  0 => 
  array (
    0 => 
Severity: Major
Found in system/mpdf/ttfontdata/dejavusans.GPOSdata.php and 1 other location - About 2 wks to fix
system/mpdf/ttfontdata/dejavusanscondensed.GPOSdata.php on lines 1..595

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 2622.

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

<?php
$cw=array(
    chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
    chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
    ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
Severity: Major
Found in system/mpdf/font/csymbol.php and 1 other location - About 2 wks to fix
system/mpdf/font/czapfdingbats.php on lines 1..22

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 2502.

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

<?php
$cw=array(
    chr(0)=>0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0,
    chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939,
    ','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692,
Severity: Major
Found in system/mpdf/font/czapfdingbats.php and 1 other location - About 2 wks to fix
system/mpdf/font/csymbol.php on lines 1..22

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 2502.

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 12 locations. Consider refactoring.
Open

<?php

$rtlSUB = array (
 "00622" => array ( 1 => "0FE82",),
 "00623" => array ( 1 => "0FE84",),
Severity: Major
Found in system/mpdf/ttfontdata/dejavusans.GSUB.arab.DFLT.php and 11 other locations - About 1 wk to fix
system/mpdf/ttfontdata/dejavusans.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.URD .php on lines 1..130

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 2098.

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 12 locations. Consider refactoring.
Open

<?php

$rtlSUB = array (
 "00622" => array ( 1 => "0FE82",),
 "00623" => array ( 1 => "0FE84",),
Severity: Major
Found in system/mpdf/ttfontdata/dejavusans.GSUB.arab.KUR .php and 11 other locations - About 1 wk to fix
system/mpdf/ttfontdata/dejavusans.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.URD .php on lines 1..130

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 2098.

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 12 locations. Consider refactoring.
Open

<?php

$rtlSUB = array (
 "00622" => array ( 1 => "0FE82",),
 "00623" => array ( 1 => "0FE84",),
system/mpdf/ttfontdata/dejavusans.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.URD .php on lines 1..130

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 2098.

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 12 locations. Consider refactoring.
Open

<?php

$rtlSUB = array (
 "00622" => array ( 1 => "0FE82",),
 "00623" => array ( 1 => "0FE84",),
system/mpdf/ttfontdata/dejavusans.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.URD .php on lines 1..130

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 2098.

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 12 locations. Consider refactoring.
Open

<?php

$rtlSUB = array (
 "00622" => array ( 1 => "0FE82",),
 "00623" => array ( 1 => "0FE84",),
system/mpdf/ttfontdata/dejavusans.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.URD .php on lines 1..130

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 2098.

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 12 locations. Consider refactoring.
Open

<?php

$rtlSUB = array (
 "00622" => array ( 1 => "0FE82",),
 "00623" => array ( 1 => "0FE84",),
system/mpdf/ttfontdata/dejavusans.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusans.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.SND .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.URD .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.DFLT.php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.KUR .php on lines 1..130
system/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.SND .php on lines 1..130

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 2098.

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