wsssoftware/cakephp-datatables

View on GitHub

Showing 30 of 74 total issues

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

        Assets::PLUGIN_KEY_TABLE => [
            Assets::THEME_BASE => [650 => 'plugins/key-table/keyTable.dataTables.min.css'],
            Assets::THEME_BOOTSTRAP3 => [650 => 'plugins/key-table/keyTable.bootstrap.min.css'],
            Assets::THEME_BOOTSTRAP4 => [650 => 'plugins/key-table/keyTable.bootstrap4.min.css'],
            Assets::THEME_FOUNDATION => [650 => 'plugins/key-table/keyTable.foundation.min.css'],
Severity: Major
Found in src/Controller/Component/CssComponent.php and 11 other locations - About 40 mins to fix
src/Controller/Component/CssComponent.php on lines 62..69
src/Controller/Component/CssComponent.php on lines 70..77
src/Controller/Component/CssComponent.php on lines 78..85
src/Controller/Component/CssComponent.php on lines 86..93
src/Controller/Component/CssComponent.php on lines 94..101
src/Controller/Component/CssComponent.php on lines 110..117
src/Controller/Component/CssComponent.php on lines 118..125
src/Controller/Component/CssComponent.php on lines 126..133
src/Controller/Component/CssComponent.php on lines 134..141
src/Controller/Component/CssComponent.php on lines 142..149
src/Controller/Component/CssComponent.php on lines 150..157

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        Assets::PLUGIN_SELECT => [
            Assets::THEME_BASE => [1250 => 'plugins/select/select.dataTables.min.css'],
            Assets::THEME_BOOTSTRAP3 => [1250 => 'plugins/select/select.bootstrap.min.css'],
            Assets::THEME_BOOTSTRAP4 => [1250 => 'plugins/select/select.bootstrap4.min.css'],
            Assets::THEME_FOUNDATION => [1250 => 'plugins/select/select.foundation.min.css'],
Severity: Major
Found in src/Controller/Component/CssComponent.php and 11 other locations - About 40 mins to fix
src/Controller/Component/CssComponent.php on lines 62..69
src/Controller/Component/CssComponent.php on lines 70..77
src/Controller/Component/CssComponent.php on lines 78..85
src/Controller/Component/CssComponent.php on lines 86..93
src/Controller/Component/CssComponent.php on lines 94..101
src/Controller/Component/CssComponent.php on lines 102..109
src/Controller/Component/CssComponent.php on lines 110..117
src/Controller/Component/CssComponent.php on lines 118..125
src/Controller/Component/CssComponent.php on lines 126..133
src/Controller/Component/CssComponent.php on lines 134..141
src/Controller/Component/CssComponent.php on lines 142..149

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        Assets::PLUGIN_BUTTONS => [
            Assets::THEME_BASE => [250 => 'plugins/buttons/buttons.dataTables.min.css'],
            Assets::THEME_BOOTSTRAP3 => [250 => 'plugins/buttons/buttons.bootstrap.min.css'],
            Assets::THEME_BOOTSTRAP4 => [250 => 'plugins/buttons/buttons.bootstrap4.min.css'],
            Assets::THEME_FOUNDATION => [250 => 'plugins/buttons/buttons.foundation.min.css'],
Severity: Major
Found in src/Controller/Component/CssComponent.php and 11 other locations - About 40 mins to fix
src/Controller/Component/CssComponent.php on lines 62..69
src/Controller/Component/CssComponent.php on lines 78..85
src/Controller/Component/CssComponent.php on lines 86..93
src/Controller/Component/CssComponent.php on lines 94..101
src/Controller/Component/CssComponent.php on lines 102..109
src/Controller/Component/CssComponent.php on lines 110..117
src/Controller/Component/CssComponent.php on lines 118..125
src/Controller/Component/CssComponent.php on lines 126..133
src/Controller/Component/CssComponent.php on lines 134..141
src/Controller/Component/CssComponent.php on lines 142..149
src/Controller/Component/CssComponent.php on lines 150..157

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        Assets::PLUGIN_ROW_REORDER => [
            Assets::THEME_BASE => [950 => 'plugins/row-reorder/rowReorder.dataTables.min.css'],
            Assets::THEME_BOOTSTRAP3 => [950 => 'plugins/row-reorder/rowReorder.bootstrap.min.css'],
            Assets::THEME_BOOTSTRAP4 => [950 => 'plugins/row-reorder/rowReorder.bootstrap4.min.css'],
            Assets::THEME_FOUNDATION => [950 => 'plugins/row-reorder/rowReorder.foundation.min.css'],
Severity: Major
Found in src/Controller/Component/CssComponent.php and 11 other locations - About 40 mins to fix
src/Controller/Component/CssComponent.php on lines 62..69
src/Controller/Component/CssComponent.php on lines 70..77
src/Controller/Component/CssComponent.php on lines 78..85
src/Controller/Component/CssComponent.php on lines 86..93
src/Controller/Component/CssComponent.php on lines 94..101
src/Controller/Component/CssComponent.php on lines 102..109
src/Controller/Component/CssComponent.php on lines 110..117
src/Controller/Component/CssComponent.php on lines 118..125
src/Controller/Component/CssComponent.php on lines 134..141
src/Controller/Component/CssComponent.php on lines 142..149
src/Controller/Component/CssComponent.php on lines 150..157

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        Assets::PLUGIN_SEARCH_PANES => [
            Assets::THEME_BASE => [1150 => 'plugins/search-panes/searchPanes.dataTables.min.css'],
            Assets::THEME_BOOTSTRAP3 => [1150 => 'plugins/search-panes/searchPanes.bootstrap.min.css'],
            Assets::THEME_BOOTSTRAP4 => [1150 => 'plugins/search-panes/searchPanes.bootstrap4.min.css'],
            Assets::THEME_FOUNDATION => [1150 => 'plugins/search-panes/searchPanes.foundation.min.css'],
Severity: Major
Found in src/Controller/Component/CssComponent.php and 11 other locations - About 40 mins to fix
src/Controller/Component/CssComponent.php on lines 62..69
src/Controller/Component/CssComponent.php on lines 70..77
src/Controller/Component/CssComponent.php on lines 78..85
src/Controller/Component/CssComponent.php on lines 86..93
src/Controller/Component/CssComponent.php on lines 94..101
src/Controller/Component/CssComponent.php on lines 102..109
src/Controller/Component/CssComponent.php on lines 110..117
src/Controller/Component/CssComponent.php on lines 118..125
src/Controller/Component/CssComponent.php on lines 126..133
src/Controller/Component/CssComponent.php on lines 134..141
src/Controller/Component/CssComponent.php on lines 150..157

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        Assets::PLUGIN_AUTO_FILL => [
            Assets::THEME_BASE => [150 => 'plugins/auto-fill/autoFill.dataTables.min.css'],
            Assets::THEME_BOOTSTRAP3 => [150 => 'plugins/auto-fill/autoFill.bootstrap.min.css'],
            Assets::THEME_BOOTSTRAP4 => [150 => 'plugins/auto-fill/autoFill.bootstrap4.min.css'],
            Assets::THEME_FOUNDATION => [150 => 'plugins/auto-fill/autoFill.foundation.min.css'],
Severity: Major
Found in src/Controller/Component/CssComponent.php and 11 other locations - About 40 mins to fix
src/Controller/Component/CssComponent.php on lines 70..77
src/Controller/Component/CssComponent.php on lines 78..85
src/Controller/Component/CssComponent.php on lines 86..93
src/Controller/Component/CssComponent.php on lines 94..101
src/Controller/Component/CssComponent.php on lines 102..109
src/Controller/Component/CssComponent.php on lines 110..117
src/Controller/Component/CssComponent.php on lines 118..125
src/Controller/Component/CssComponent.php on lines 126..133
src/Controller/Component/CssComponent.php on lines 134..141
src/Controller/Component/CssComponent.php on lines 142..149
src/Controller/Component/CssComponent.php on lines 150..157

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        Assets::PLUGIN_SCROLLER => [
            Assets::THEME_BASE => [1050 => 'plugins/scroller/scroller.dataTables.min.css'],
            Assets::THEME_BOOTSTRAP3 => [1050 => 'plugins/scroller/scroller.bootstrap.min.css'],
            Assets::THEME_BOOTSTRAP4 => [1050 => 'plugins/scroller/scroller.bootstrap4.min.css'],
            Assets::THEME_FOUNDATION => [1050 => 'plugins/scroller/scroller.foundation.min.css'],
Severity: Major
Found in src/Controller/Component/CssComponent.php and 11 other locations - About 40 mins to fix
src/Controller/Component/CssComponent.php on lines 62..69
src/Controller/Component/CssComponent.php on lines 70..77
src/Controller/Component/CssComponent.php on lines 78..85
src/Controller/Component/CssComponent.php on lines 86..93
src/Controller/Component/CssComponent.php on lines 94..101
src/Controller/Component/CssComponent.php on lines 102..109
src/Controller/Component/CssComponent.php on lines 110..117
src/Controller/Component/CssComponent.php on lines 118..125
src/Controller/Component/CssComponent.php on lines 126..133
src/Controller/Component/CssComponent.php on lines 142..149
src/Controller/Component/CssComponent.php on lines 150..157

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

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

        Assets::PLUGIN_SEARCH_PANES => [
            1150 => 'plugins/search-panes/dataTables.searchPanes.min.js',
            Assets::THEME_BASE => [],
            Assets::THEME_BOOTSTRAP3 => [1151 => 'plugins/search-panes/searchPanes.bootstrap.min.js'],
            Assets::THEME_BOOTSTRAP4 => [1151 => 'plugins/search-panes/searchPanes.bootstrap4.min.js'],
Severity: Minor
Found in src/Controller/Component/JsComponent.php and 1 other location - About 40 mins to fix
src/Controller/Component/JsComponent.php on lines 62..70

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        Assets::PLUGIN_FIXED_HEADER => [
            Assets::THEME_BASE => [550 => 'plugins/fixed-header/fixedHeader.dataTables.min.css'],
            Assets::THEME_BOOTSTRAP3 => [550 => 'plugins/fixed-header/fixedHeader.bootstrap.min.css'],
            Assets::THEME_BOOTSTRAP4 => [550 => 'plugins/fixed-header/fixedHeader.bootstrap4.min.css'],
            Assets::THEME_FOUNDATION => [550 => 'plugins/fixed-header/fixedHeader.foundation.min.css'],
Severity: Major
Found in src/Controller/Component/CssComponent.php and 11 other locations - About 40 mins to fix
src/Controller/Component/CssComponent.php on lines 62..69
src/Controller/Component/CssComponent.php on lines 70..77
src/Controller/Component/CssComponent.php on lines 78..85
src/Controller/Component/CssComponent.php on lines 86..93
src/Controller/Component/CssComponent.php on lines 102..109
src/Controller/Component/CssComponent.php on lines 110..117
src/Controller/Component/CssComponent.php on lines 118..125
src/Controller/Component/CssComponent.php on lines 126..133
src/Controller/Component/CssComponent.php on lines 134..141
src/Controller/Component/CssComponent.php on lines 142..149
src/Controller/Component/CssComponent.php on lines 150..157

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        Assets::PLUGIN_ROW_GROUP => [
            Assets::THEME_BASE => [850 => 'plugins/row-group/rowGroup.dataTables.min.css'],
            Assets::THEME_BOOTSTRAP3 => [850 => 'plugins/row-group/rowGroup.bootstrap.min.css'],
            Assets::THEME_BOOTSTRAP4 => [850 => 'plugins/row-group/rowGroup.bootstrap4.min.css'],
            Assets::THEME_FOUNDATION => [850 => 'plugins/row-group/rowGroup.foundation.min.css'],
Severity: Major
Found in src/Controller/Component/CssComponent.php and 11 other locations - About 40 mins to fix
src/Controller/Component/CssComponent.php on lines 62..69
src/Controller/Component/CssComponent.php on lines 70..77
src/Controller/Component/CssComponent.php on lines 78..85
src/Controller/Component/CssComponent.php on lines 86..93
src/Controller/Component/CssComponent.php on lines 94..101
src/Controller/Component/CssComponent.php on lines 102..109
src/Controller/Component/CssComponent.php on lines 110..117
src/Controller/Component/CssComponent.php on lines 126..133
src/Controller/Component/CssComponent.php on lines 134..141
src/Controller/Component/CssComponent.php on lines 142..149
src/Controller/Component/CssComponent.php on lines 150..157

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language