fisharebest/webtrees

View on GitHub
app/Report/ReportParserGenerate.php

Summary

Maintainability
F
1 mo
Test Coverage

File ReportParserGenerate.php has 2069 lines of code (exceeds 250 allowed). Consider refactoring.
Open

Severity: Major
Found in app/Report/ReportParserGenerate.php - About 5 days to fix

    Function listStartHandler has a Cognitive Complexity of 221 (exceeds 5 allowed). Consider refactoring.
    Open

    Severity: Minor
    Found in app/Report/ReportParserGenerate.php - About 4 days 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 listStartHandler has 339 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Severity: Major
    Found in app/Report/ReportParserGenerate.php - About 1 day to fix

      ReportParserGenerate has 54 functions (exceeds 20 allowed). Consider refactoring.
      Open

      Severity: Major
      Found in app/Report/ReportParserGenerate.php - About 7 hrs to fix

        Function repeatTagStartHandler has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.php - About 7 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 relativesStartHandler has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.php - About 6 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 gedcomValueStartHandler has a Cognitive Complexity of 39 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.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 addDescendancy has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.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 getGedcomValue has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.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 textBoxStartHandler has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.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 docStartHandler has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.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 getPersonNameStartHandler has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.php - About 4 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 addAncestors has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.php - About 4 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 gedcomStartHandler has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.php - About 4 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 factsEndHandler has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in app/Report/ReportParserGenerate.php - About 4 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 textBoxStartHandler has 98 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Severity: Major
        Found in app/Report/ReportParserGenerate.php - About 3 hrs to fix

          Method relativesStartHandler has 95 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          Severity: Major
          Found in app/Report/ReportParserGenerate.php - About 3 hrs to fix

            Function cellStartHandler has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
            Open

            Severity: Minor
            Found in app/Report/ReportParserGenerate.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

            Function listEndHandler has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
            Open

            Severity: Minor
            Found in app/Report/ReportParserGenerate.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

            Function relativesEndHandler has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
            Open

            Severity: Minor
            Found in app/Report/ReportParserGenerate.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

            Function varStartHandler has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
            Open

            Severity: Minor
            Found in app/Report/ReportParserGenerate.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 cellStartHandler has 79 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Severity: Major
            Found in app/Report/ReportParserGenerate.php - About 3 hrs to fix

              Method factsEndHandler has 77 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Severity: Major
              Found in app/Report/ReportParserGenerate.php - About 3 hrs to fix

                Function imageStartHandler has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                Open

                Severity: Minor
                Found in app/Report/ReportParserGenerate.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 listEndHandler has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                Severity: Major
                Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

                  Function lineStartHandler has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                  Open

                  Severity: Minor
                  Found in app/Report/ReportParserGenerate.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 repeatTagEndHandler has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                  Open

                  Severity: Minor
                  Found in app/Report/ReportParserGenerate.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 relativesEndHandler has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Severity: Major
                  Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

                    Method docStartHandler has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    Severity: Major
                    Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

                      Method repeatTagEndHandler has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      Severity: Major
                      Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

                        Function factsStartHandler has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                        Open

                        Severity: Minor
                        Found in app/Report/ReportParserGenerate.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 gedcomValueStartHandler has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        Severity: Major
                        Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

                          Function ifStartHandler has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                          Open

                          Severity: Minor
                          Found in app/Report/ReportParserGenerate.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 getGedcomValue has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          Severity: Major
                          Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                            Severity: Critical
                            Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

                              Method repeatTagStartHandler has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              Severity: Major
                              Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

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

                                Severity: Minor
                                Found in app/Report/ReportParserGenerate.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 ifStartHandler has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                Severity: Major
                                Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

                                  Function startElement has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  Severity: Minor
                                  Found in app/Report/ReportParserGenerate.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 gedcomStartHandler has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  Severity: Major
                                  Found in app/Report/ReportParserGenerate.php - About 2 hrs to fix

                                    Method setVarStartHandler has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    Severity: Minor
                                    Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

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

                                      Severity: Minor
                                      Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

                                        Method imageStartHandler has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        Severity: Minor
                                        Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

                                          Method getPersonNameStartHandler has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                          Severity: Minor
                                          Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

                                            Method lineStartHandler has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                            Severity: Minor
                                            Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

                                              Method factsStartHandler has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                              Severity: Minor
                                              Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

                                                Method varStartHandler has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                Severity: Minor
                                                Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

                                                  Method addAncestors has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                  Severity: Minor
                                                  Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

                                                    Consider simplifying this complex logical expression.
                                                    Open

                                                    Severity: Critical
                                                    Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

                                                      Method highlightedImageStartHandler has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                      Severity: Minor
                                                      Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

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

                                                        Severity: Minor
                                                        Found in app/Report/ReportParserGenerate.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 getSubRecord has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                        Severity: Minor
                                                        Found in app/Report/ReportParserGenerate.php - About 1 hr to fix

                                                          Avoid deeply nested control flow statements.
                                                          Open

                                                          Severity: Major
                                                          Found in app/Report/ReportParserGenerate.php - About 45 mins to fix

                                                            Avoid deeply nested control flow statements.
                                                            Open

                                                            Severity: Major
                                                            Found in app/Report/ReportParserGenerate.php - About 45 mins to fix

                                                              Avoid deeply nested control flow statements.
                                                              Open

                                                              Severity: Major
                                                              Found in app/Report/ReportParserGenerate.php - About 45 mins to fix

                                                                Avoid deeply nested control flow statements.
                                                                Open

                                                                Severity: Major
                                                                Found in app/Report/ReportParserGenerate.php - About 45 mins to fix

                                                                  Avoid deeply nested control flow statements.
                                                                  Open

                                                                  Severity: Major
                                                                  Found in app/Report/ReportParserGenerate.php - About 45 mins to fix

                                                                    Avoid deeply nested control flow statements.
                                                                    Open

                                                                    Severity: Major
                                                                    Found in app/Report/ReportParserGenerate.php - About 45 mins to fix

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

                                                                      Severity: Minor
                                                                      Found in app/Report/ReportParserGenerate.php - About 35 mins to fix

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

                                                                        Severity: Minor
                                                                        Found in app/Report/ReportParserGenerate.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

                                                                        Avoid too many return statements within this method.
                                                                        Open

                                                                        Severity: Major
                                                                        Found in app/Report/ReportParserGenerate.php - About 30 mins to fix

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

                                                                          Severity: Minor
                                                                          Found in app/Report/ReportParserGenerate.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

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

                                                                          Severity: Minor
                                                                          Found in app/Report/ReportParserGenerate.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

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

                                                                          Severity: Minor
                                                                          Found in app/Report/ReportParserGenerate.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

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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 1 day to fix
                                                                          app/Report/ReportParserGenerate.php on lines 1741..1757

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 1 day to fix
                                                                          app/Report/ReportParserGenerate.php on lines 1793..1809

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 5 hrs to fix
                                                                          app/Report/ReportParserGenerate.php on lines 2077..2091

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 5 hrs to fix
                                                                          app/Report/ReportParserGenerate.php on lines 1983..1997

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 4 hrs to fix
                                                                          app/Report/ReportParserGenerate.php on lines 1942..2007

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 4 hrs to fix
                                                                          app/Report/ReportParserGenerate.php on lines 2028..2101

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 2 hrs to fix
                                                                          app/Report/ReportParserGenerate.php on lines 1997..2002

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 2 hrs to fix
                                                                          app/Report/ReportParserGenerate.php on lines 2091..2096

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 1 hr to fix
                                                                          app/Report/ReportParserGenerate.php on lines 1303..1309

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 1 hr to fix
                                                                          app/Report/ReportParserGenerate.php on lines 1514..1520

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 1 hr to fix
                                                                          app/Report/ReportParserGenerate.php on lines 2002..2007

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

                                                                          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

                                                                          Severity: Major
                                                                          Found in app/Report/ReportParserGenerate.php and 1 other location - About 1 hr to fix
                                                                          app/Report/ReportParserGenerate.php on lines 2096..2101

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

                                                                          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