CORE-POS/IS4C

View on GitHub
fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php

Summary

Maintainability
F
2 wks
Test Coverage

File ObfWeeklyReport.php has 1067 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/*******************************************************************************

    Copyright 2014 Whole Foods Co-op

Severity: Major
Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 2 days to fix

    Method fetch_report_data has 455 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function fetch_report_data()
        {
            $class_lib = $this->class_lib;
            $dbc = $class_lib::getDB();
            
    Severity: Major
    Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 2 days to fix

      Method updateSalesCache has 147 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function updateSalesCache($week, $num_cached, $dateInfo)
          {
              $class_lib = $this->class_lib;
              $dbc = $class_lib::getDB();
              $sales = $class_lib::getCache($dbc);
      Severity: Major
      Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 5 hrs to fix

        Function updateSalesCache has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
        Open

            protected function updateSalesCache($week, $num_cached, $dateInfo)
            {
                $class_lib = $this->class_lib;
                $dbc = $class_lib::getDB();
                $sales = $class_lib::getCache($dbc);
        Severity: Minor
        Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 5 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 fetch_report_data has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
        Open

            public function fetch_report_data()
            {
                $class_lib = $this->class_lib;
                $dbc = $class_lib::getDB();
                
        Severity: Minor
        Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 3 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 prepareStatements has 68 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function prepareStatements($dbc)
            {
                /**
                  Look up sales for the week in a given category
                */
        Severity: Major
        Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 2 hrs to fix

          ObfWeeklyReport has 24 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class ObfWeeklyReport extends FannieReportPage
          {
              public function preprocess()
              {
                  if (!headers_sent()) {
          Severity: Minor
          Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 2 hrs to fix

            Method ownershipThisYear has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                protected function ownershipThisYear($dbc, $end_ts)
                {
                    $args1 = array(
                        date('Y-07-01 00:00:00', $end_ts),
                        date('Y-m-d 23:59:59', $end_ts),
            Severity: Minor
            Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 1 hr to fix

              Method prepTrendsStatement has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  protected function prepTrendsStatement($dbc, $week)
                  {
                      /**
                        Trends are based on the previous
                        thirteen weeks that contain sales data. 
              Severity: Minor
              Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 1 hr to fix

                Method ownershipThisWeek has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected function ownershipThisWeek($dbc, $start_ts, $end_ts, $start_ly, $end_ly, $average_week=true)
                    {
                        $args3 = array(
                            date('Y-m-d 00:00:00', $start_ts),
                            date('Y-m-d 23:59:59', $end_ts),
                Severity: Minor
                Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 1 hr to fix

                  Method newEquityThisWeek has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      protected function newEquityThisWeek($dbc, $start_ts, $end_ts, $start_ly, $end_ly)
                      {
                          $argsTY = array(
                              date('Y-m-d', $start_ts),
                              date('Y-m-d', $end_ts),
                  Severity: Minor
                  Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 1 hr to fix

                    Function findYearMonth has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                    Open

                        protected function findYearMonth($start_ts, $end_ts)
                        {
                            $month = false;
                            $year = false;
                            if (date('n', $start_ts) == date('n', $end_ts)) {
                    Severity: Minor
                    Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 1 hr 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 form_content has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function form_content()
                        {
                            $class_lib = $this->class_lib;
                            $dbc = $class_lib::getDB();
                    
                    
                    Severity: Minor
                    Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 1 hr to fix

                      Method ownershipThisWeek has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          protected function ownershipThisWeek($dbc, $start_ts, $end_ts, $start_ly, $end_ly, $average_week=true)
                      Severity: Minor
                      Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 45 mins to fix

                        Method newEquityThisWeek has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            protected function newEquityThisWeek($dbc, $start_ts, $end_ts, $start_ly, $end_ly)
                        Severity: Minor
                        Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 35 mins to fix

                          Function rewritePercentageOfSales has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                              protected function rewritePercentageOfSales($data, $total_sales)
                              {
                                  /**
                                    Now that total sales for the all categories have been calculated,
                                    go back and divide specific columns by total sales to get
                          Severity: Minor
                          Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 35 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

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

                                  $data[] = array(
                                      'Average Basket',
                                      number_format($total_sales->lastYear / $total_trans->lastYear, 2),
                                      number_format($total_sales->projected / $proj_trans, 2),
                                      '',
                          fannie/modules/plugins2.0/OpenBookFinancingV2/ObfWeeklyReportV2.php on lines 790..804

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

                          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

                                      $record = array(
                                          'Total',
                                          number_format($sum[1], 0),
                                          number_format($dept_proj, 0),
                                          number_format($dept_proj, 0), // % of store sales re-written later
                          fannie/modules/plugins2.0/OpenBookFinancingV2/ObfWeeklyReportV2.php on lines 503..517

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

                          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

                                  $data[] = array(
                                      'Sales',
                                      number_format($total_sales->lastYear, 0),
                                      number_format($total_sales->projected, 0),
                                      '',
                          fannie/modules/plugins2.0/OpenBookFinancingV2/ObfWeeklyReportV2.php on lines 719..733

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

                          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

                                      $data[] = array(
                                          'Hours',
                                          '',
                                          number_format($proj_hours, 0),
                                          '',
                          fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php on lines 464..478

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

                          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

                                      $data[] = array(
                                          'Wages',
                                          '',
                                          number_format($proj_wages, 0),
                                          '',
                          fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php on lines 446..460

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

                          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

                                  $data[] = array(
                                      'Other Personnel Cost (est)',
                                      '',
                                      number_format($total_wages->projected * $p_est, 0),
                                      '',
                          fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php on lines 727..741

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

                          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

                                  $data[] = array(
                                      'Total Personnel Cost (est)',
                                      '',
                                      number_format($total_wages->projected * $p_est, 0),
                                      '',
                          fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php on lines 710..724

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

                          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

                                  $data[] = array(
                                      'Transactions',
                                      number_format($total_trans->lastYear),
                                      number_format($proj_trans),
                                      '',
                          fannie/modules/plugins2.0/OpenBookFinancingV2/ObfWeeklyReportV2.php on lines 774..788

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

                          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

                                      $data[] = array(
                                          'Wages',
                                          '',
                                          number_format($proj_wages, 0),
                                          '',
                          fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php on lines 557..571
                          fannie/modules/plugins2.0/OpenBookFinancingV2/ObfWeeklyReportV2.php on lines 650..664

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

                          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

                                      $data[] = array(
                                          'Hours',
                                          '',
                                          number_format($proj_hours, 0),
                                          '',
                          fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php on lines 574..588
                          fannie/modules/plugins2.0/OpenBookFinancingV2/ObfWeeklyReportV2.php on lines 650..664

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

                          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

                                  $data[] = array(
                                      'Hours',
                                      '',
                                      number_format($total_hours->projected, 0),
                                      '',
                          fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php on lines 677..691

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

                          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

                                  $data[] = array(
                                      'Wages',
                                      '',
                                      number_format($total_wages->projected, 0),
                                      '',
                          fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php on lines 661..675

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

                          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