luyadev/luya-module-cms

View on GitHub
tests/src/menu/_dataFrArray.php

Summary

Maintainability
F
2 wks
Test Coverage

File _dataFrArray.php has 1431 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return
    [
            43 =>
Severity: Major
Found in tests/src/menu/_dataFrArray.php - About 3 days to fix

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

                147 =>
                [
                        'id' => '147',
                        'nav_id' => '74',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                151 =>
                [
                        'id' => '151',
                        'nav_id' => '77',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                132 =>
                [
                        'id' => '132',
                        'nav_id' => '57',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                141 =>
                [
                        'id' => '141',
                        'nav_id' => '67',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                139 =>
                [
                        'id' => '139',
                        'nav_id' => '65',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                133 =>
                [
                        'id' => '133',
                        'nav_id' => '58',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                144 =>
                [
                        'id' => '144',
                        'nav_id' => '70',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                143 =>
                [
                        'id' => '143',
                        'nav_id' => '69',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                130 =>
                [
                        'id' => '130',
                        'nav_id' => '54',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                148 =>
                [
                        'id' => '148',
                        'nav_id' => '75',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                145 =>
                [
                        'id' => '145',
                        'nav_id' => '71',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399

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

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

                134 =>
                [
                        'id' => '134',
                        'nav_id' => '92',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                150 =>
                [
                        'id' => '150',
                        'nav_id' => '76',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                149 =>
                [
                        'id' => '149',
                        'nav_id' => '83',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                146 =>
                [
                        'id' => '146',
                        'nav_id' => '72',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                131 =>
                [
                        'id' => '131',
                        'nav_id' => '56',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                153 =>
                [
                        'id' => '153',
                        'nav_id' => '79',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                142 =>
                [
                        'id' => '142',
                        'nav_id' => '68',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                137 =>
                [
                        'id' => '137',
                        'nav_id' => '61',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                138 =>
                [
                        'id' => '138',
                        'nav_id' => '62',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                135 =>
                [
                        'id' => '135',
                        'nav_id' => '59',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1208..1239
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

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

                140 =>
                [
                        'id' => '140',
                        'nav_id' => '66',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 3 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 703..734
    tests/src/menu/_dataFrArray.php on lines 760..791
    tests/src/menu/_dataFrArray.php on lines 792..823
    tests/src/menu/_dataFrArray.php on lines 824..855
    tests/src/menu/_dataFrArray.php on lines 856..887
    tests/src/menu/_dataFrArray.php on lines 888..919
    tests/src/menu/_dataFrArray.php on lines 920..951
    tests/src/menu/_dataFrArray.php on lines 952..983
    tests/src/menu/_dataFrArray.php on lines 984..1015
    tests/src/menu/_dataFrArray.php on lines 1016..1047
    tests/src/menu/_dataFrArray.php on lines 1048..1079
    tests/src/menu/_dataFrArray.php on lines 1080..1111
    tests/src/menu/_dataFrArray.php on lines 1112..1143
    tests/src/menu/_dataFrArray.php on lines 1144..1175
    tests/src/menu/_dataFrArray.php on lines 1176..1207
    tests/src/menu/_dataFrArray.php on lines 1240..1271
    tests/src/menu/_dataFrArray.php on lines 1272..1303
    tests/src/menu/_dataFrArray.php on lines 1304..1335
    tests/src/menu/_dataFrArray.php on lines 1336..1367
    tests/src/menu/_dataFrArray.php on lines 1368..1399
    tests/src/menu/_dataFrArray.php on lines 1400..1431

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

    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

                128 =>
                [
                        'id' => '128',
                        'nav_id' => '89',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 1 other location - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 735..759

    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

                136 =>
                [
                        'id' => '136',
                        'nav_id' => '60',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 1 other location - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 478..502

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

                106 =>
                [
                        'id' => '106',
                        'nav_id' => '46',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                115 =>
                [
                        'id' => '115',
                        'nav_id' => '51',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                116 =>
                [
                        'id' => '116',
                        'nav_id' => '48',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                121 =>
                [
                        'id' => '121',
                        'nav_id' => '33',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677

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

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

                127 =>
                [
                        'id' => '127',
                        'nav_id' => '17',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                117 =>
                [
                        'id' => '117',
                        'nav_id' => '39',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                120 =>
                [
                        'id' => '120',
                        'nav_id' => '25',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                113 =>
                [
                        'id' => '113',
                        'nav_id' => '49',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                108 =>
                [
                        'id' => '108',
                        'nav_id' => '6',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                110 =>
                [
                        'id' => '110',
                        'nav_id' => '91',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                125 =>
                [
                        'id' => '125',
                        'nav_id' => '50',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                105 =>
                [
                        'id' => '105',
                        'nav_id' => '44',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                111 =>
                [
                        'id' => '111',
                        'nav_id' => '40',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                104 =>
                [
                        'id' => '104',
                        'nav_id' => '43',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                122 =>
                [
                        'id' => '122',
                        'nav_id' => '13',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                107 =>
                [
                        'id' => '107',
                        'nav_id' => '45',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                118 =>
                [
                        'id' => '118',
                        'nav_id' => '23',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                114 =>
                [
                        'id' => '114',
                        'nav_id' => '82',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                109 =>
                [
                        'id' => '109',
                        'nav_id' => '34',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                123 =>
                [
                        'id' => '123',
                        'nav_id' => '14',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                124 =>
                [
                        'id' => '124',
                        'nav_id' => '18',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 428..452
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

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

                126 =>
                [
                        'id' => '126',
                        'nav_id' => '16',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 21 other locations - About 2 hrs to fix
    tests/src/menu/_dataFrArray.php on lines 54..78
    tests/src/menu/_dataFrArray.php on lines 79..103
    tests/src/menu/_dataFrArray.php on lines 153..177
    tests/src/menu/_dataFrArray.php on lines 203..227
    tests/src/menu/_dataFrArray.php on lines 228..252
    tests/src/menu/_dataFrArray.php on lines 253..277
    tests/src/menu/_dataFrArray.php on lines 278..302
    tests/src/menu/_dataFrArray.php on lines 303..327
    tests/src/menu/_dataFrArray.php on lines 328..352
    tests/src/menu/_dataFrArray.php on lines 353..377
    tests/src/menu/_dataFrArray.php on lines 378..402
    tests/src/menu/_dataFrArray.php on lines 403..427
    tests/src/menu/_dataFrArray.php on lines 453..477
    tests/src/menu/_dataFrArray.php on lines 503..527
    tests/src/menu/_dataFrArray.php on lines 528..552
    tests/src/menu/_dataFrArray.php on lines 553..577
    tests/src/menu/_dataFrArray.php on lines 578..602
    tests/src/menu/_dataFrArray.php on lines 603..627
    tests/src/menu/_dataFrArray.php on lines 628..652
    tests/src/menu/_dataFrArray.php on lines 653..677
    tests/src/menu/_dataFrArray.php on lines 678..702

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

    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

                103 =>
                [
                        'id' => '103',
                        'nav_id' => '2',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 1 other location - About 1 hr to fix
    tests/src/menu/_dataFrArray.php on lines 104..127

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

    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

                112 =>
                [
                        'id' => '112',
                        'nav_id' => '22',
                        'lang' => 'fr',
    Severity: Major
    Found in tests/src/menu/_dataFrArray.php and 1 other location - About 1 hr to fix
    tests/src/menu/_dataFrArray.php on lines 30..53

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

    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