MPOS/php-mpos

View on GitHub
include/smarty/libs/sysplugins/smarty_internal_templatelexer.php

Summary

Maintainability
F
2 wks
Test Coverage

File smarty_internal_templatelexer.php has 1195 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
* Smarty Internal Plugin Templatelexer
*
* This is the lexer to break the template source into tokens 
Severity: Major
Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 3 days to fix

    Smarty_Internal_Templatelexer has 121 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Smarty_Internal_Templatelexer
    {
        public $data;
        public $counter;
        public $token;
    Severity: Major
    Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 days to fix

      Method yylex2 has 110 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function yylex2()
          {
              $tokenMap = array (
                    1 => 0,
                    2 => 0,
      Severity: Major
      Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 4 hrs to fix

        Method yylex1 has 61 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function yylex1()
            {
                $tokenMap = array (
                      1 => 0,
                      2 => 1,
        Severity: Major
        Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 hrs to fix

          Function yylex1 has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
          Open

              public function yylex1()
              {
                  $tokenMap = array (
                        1 => 0,
                        2 => 1,
          Severity: Minor
          Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function yylex5 has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
          Open

              public function yylex5()
              {
                  $tokenMap = array (
                        1 => 0,
                        2 => 0,
          Severity: Minor
          Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function yylex2 has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
          Open

              public function yylex2()
              {
                  $tokenMap = array (
                        1 => 0,
                        2 => 0,
          Severity: Minor
          Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function yylex4 has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
          Open

              public function yylex4()
              {
                  $tokenMap = array (
                        1 => 1,
                        3 => 0,
          Severity: Minor
          Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function yylex3 has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
          Open

              public function yylex3()
              {
                  $tokenMap = array (
                        1 => 0,
                        2 => 0,
          Severity: Minor
          Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function yylex6 has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
          Open

              public function yylex6()
              {
                  $tokenMap = array (
                        1 => 0,
                        2 => 0,
          Severity: Minor
          Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Method yylex4 has 55 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function yylex4()
              {
                  $tokenMap = array (
                        1 => 1,
                        3 => 0,
          Severity: Major
          Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 hrs to fix

            Method yylex3 has 51 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function yylex3()
                {
                    $tokenMap = array (
                          1 => 0,
                          2 => 0,
            Severity: Major
            Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 2 hrs to fix

              Method yylex5 has 48 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function yylex5()
                  {
                      $tokenMap = array (
                            1 => 0,
                            2 => 0,
              Severity: Minor
              Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 1 hr to fix

                Method yylex6 has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function yylex6()
                    {
                        $tokenMap = array (
                              1 => 0,
                              2 => 0,
                Severity: Minor
                Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 1 hr to fix

                  Function yy_r3_7 has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                  Open

                      function yy_r3_7($yy_subpatterns)
                      {
                  
                    if ($this->mbstring_overload) {
                      $to = mb_strlen($this->data,'latin1');
                  Severity: Minor
                  Found in include/smarty/libs/sysplugins/smarty_internal_templatelexer.php - About 25 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

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

                      function yy_r1_9($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r2_75($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                      $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r4_3($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r4_5($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                      $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r2_73($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r1_12($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                      $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r1_11($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r1_10($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r1_13($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                      $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r4_1($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r4_4($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r2_70($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r2_74($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                      $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r2_72($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

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

                      function yy_r4_6($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                      $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 258..268
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117

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

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

                      function yy_r1_7($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 269..279
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 280..290
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 291..301
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 302..312
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 313..323
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 811..821
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 822..832
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 833..843
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 844..854
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 855..865
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1074..1084
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1085..1095
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1096..1106
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1107..1117
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1118..1128

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

                  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

                      public function yypushstate($state)
                      {
                          if ($this->yyTraceFILE) {
                               fprintf($this->yyTraceFILE, "%sState push %s\n", $this->yyTracePrompt, isset($this->state_name[$this->_yy_state]) ? $this->state_name[$this->_yy_state] : $this->_yy_state);
                          }
                  include/smarty/libs/sysplugins/smarty_internal_configfilelexer.php on lines 63..73

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

                  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 yy_r3_1($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 248..257

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

                  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 yy_r1_6($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 938..947

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

                  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

                      public function yypopstate()
                      {
                         if ($this->yyTraceFILE) {
                               fprintf($this->yyTraceFILE, "%sState pop %s\n", $this->yyTracePrompt,  isset($this->state_name[$this->_yy_state]) ? $this->state_name[$this->_yy_state] : $this->_yy_state);
                          }
                  include/smarty/libs/sysplugins/smarty_internal_configfilelexer.php on lines 75..85

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

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

                      function yy_r6_1($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_BLOCKSOURCE;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1356..1365
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1366..1375

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

                  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 yy_r1_5($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 230..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 133.

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

                      function yy_r6_2($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_BLOCKSOURCE;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1346..1355
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1366..1375

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

                  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 yy_r1_4($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                      $this->token = Smarty_Internal_Templateparser::TP_TEXT;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 239..247

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

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

                      function yy_r6_3($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       $this->token = Smarty_Internal_Templateparser::TP_BLOCKSOURCE;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1346..1355
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1356..1365

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

                  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 yy_r5_2($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       return false;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1236..1244

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

                  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 yy_r5_1($yy_subpatterns)
                      {
                  
                    if ($this->smarty->auto_literal && ($this->mbstring_overload ? (mb_strpos(" \n\t\r",mb_substr($this->value,$this->ldel_length,1,'latin1'),0,'latin1') !== false) : (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false))) {
                       return false;
                  include/smarty/libs/sysplugins/smarty_internal_templatelexer.php on lines 1245..1253

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

                  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

                  There are no issues that match your filters.

                  Category
                  Status