mambax7/myconference

View on GitHub

Showing 11 of 478 total issues

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

    case 'addtrack':
        $cid     = Request::getInt('cid', 0, 'POST');//$_POST['cid'];
        $title   = $myts->stripslashesGPC(trim(Request::getString('title', '', 'POST')));//$_POST['title']));
        $summary = $myts->stripslashesGPC(trim(Request::getString('summary', '', 'POST')));//$_POST['summary']));

Severity: Major
Found in admin/tracks.php and 1 other location - About 3 hrs to fix
admin/sections.php on lines 111..124

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

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

    case 'addsection':

        $cid     = Request::getInt('cid', 0, 'POST');//$cid     = (int)$_POST['cid'];
        $title   = $myts->stripslashesGPC(trim(Request::getString('title', '', 'POST'))); //$_POST['title']));
        $summary = $myts->stripslashesGPC(trim(Request::getText('summary', '', 'POST')));//$_POST['summary']));
Severity: Major
Found in admin/sections.php and 1 other location - About 3 hrs to fix
admin/tracks.php on lines 111..123

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

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

        if (isset(Request::getString('xoops_upload_file', null, 'POST')[1]) //$_POST['xoops_upload_file'][1])
            && !empty(Request::getString('slides2', null, 'POST')) //$_POST['slides2'])
        ) {
            $slides2 = Request::getString('xoops_upload_file', null, 'POST')[1]; //$_POST['xoops_upload_file'][1];
            $slides2 = getFile($slides2);
Severity: Major
Found in admin/speeches.php and 8 other locations - About 35 mins to fix
admin/speakers.php on lines 188..193
admin/speeches.php on lines 56..61
admin/speeches.php on lines 68..73
admin/speeches.php on lines 74..79
admin/speeches.php on lines 187..192
admin/speeches.php on lines 193..198
admin/speeches.php on lines 199..204
admin/speeches.php on lines 205..210

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

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

        if (isset(Request::getString('xoops_upload_file', null, 'POST')[1]) //$_POST['xoops_upload_file'][1])
            && !empty(Request::getString('slides2', null, 'POST')) //$_POST['slides2'])
        ) {
            $slides2 = Request::getString('xoops_upload_file', null, 'POST')[1]; //$_POST['xoops_upload_file'][1];
            $slides2 = getFile($slides2);
Severity: Major
Found in admin/speeches.php and 8 other locations - About 35 mins to fix
admin/speakers.php on lines 188..193
admin/speeches.php on lines 56..61
admin/speeches.php on lines 62..67
admin/speeches.php on lines 68..73
admin/speeches.php on lines 74..79
admin/speeches.php on lines 187..192
admin/speeches.php on lines 199..204
admin/speeches.php on lines 205..210

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

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

        if (isset(Request::getString('xoops_upload_file', null, 'POST')[3]) //$_POST['xoops_upload_file'][3])
            && !empty(Request::getString('slides4', null, 'POST')) //$_POST['slides4'])
        ) {
            $slides4 = Request::getString('xoops_upload_file', null, 'POST')[3]; //$_POST['xoops_upload_file'][3];
            $slides4 = getFile($slides4);
Severity: Major
Found in admin/speeches.php and 8 other locations - About 35 mins to fix
admin/speakers.php on lines 188..193
admin/speeches.php on lines 56..61
admin/speeches.php on lines 62..67
admin/speeches.php on lines 68..73
admin/speeches.php on lines 187..192
admin/speeches.php on lines 193..198
admin/speeches.php on lines 199..204
admin/speeches.php on lines 205..210

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

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

        if (isset(Request::getString('xoops_upload_file', null, 'POST')[3]) //$_POST['xoops_upload_file'][3])
            && !empty(Request::getString('slides4', null, 'POST')) //$_POST['slides4'])
        ) {
            $slides4 = Request::getString('xoops_upload_file', null, 'POST')[3]; //$_POST['xoops_upload_file'][3];
            $slides4 = getFile($slides4);
Severity: Major
Found in admin/speeches.php and 8 other locations - About 35 mins to fix
admin/speakers.php on lines 188..193
admin/speeches.php on lines 56..61
admin/speeches.php on lines 62..67
admin/speeches.php on lines 68..73
admin/speeches.php on lines 74..79
admin/speeches.php on lines 187..192
admin/speeches.php on lines 193..198
admin/speeches.php on lines 199..204

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

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

        if (isset(Request::getString('xoops_upload_file', null, 'POST')[0]) //$_POST['xoops_upload_file'][0])
            && !empty(Request::getString('slides1', null, 'POST')) //$_POST['slides1'])
        ) {
            $slides1 = Request::getString('xoops_upload_file', null, 'POST')[0]; //$_POST['xoops_upload_file'][0];
            $slides1 = getFile($slides1);
Severity: Major
Found in admin/speeches.php and 8 other locations - About 35 mins to fix
admin/speakers.php on lines 188..193
admin/speeches.php on lines 62..67
admin/speeches.php on lines 68..73
admin/speeches.php on lines 74..79
admin/speeches.php on lines 187..192
admin/speeches.php on lines 193..198
admin/speeches.php on lines 199..204
admin/speeches.php on lines 205..210

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

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

        if (isset(Request::getString('xoops_upload_file', null, 'POST')[2]) //$_POST['xoops_upload_file'][2])
            && !empty(Request::getString('slides3', null, 'POST')) //$_POST['slides3'])
        ) {
            $slides3 = Request::getString('xoops_upload_file', null, 'POST')[2]; //$_POST['xoops_upload_file'][2];
            $slides3 = getFile($slides3);
Severity: Major
Found in admin/speeches.php and 8 other locations - About 35 mins to fix
admin/speakers.php on lines 188..193
admin/speeches.php on lines 56..61
admin/speeches.php on lines 62..67
admin/speeches.php on lines 68..73
admin/speeches.php on lines 74..79
admin/speeches.php on lines 187..192
admin/speeches.php on lines 193..198
admin/speeches.php on lines 205..210

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

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

        if (isset(Request::getString('xoops_upload_file', null, 'POST')[2]) //$_POST['xoops_upload_file'][2])
            && !empty(Request::getString('slides3', null, 'POST')) //$_POST['slides3'])
        ) {
            $slides3 = Request::getString('xoops_upload_file', null, 'POST')[2]; //$_POST['xoops_upload_file'][2];
            $slides3 = getFile($slides3);
Severity: Major
Found in admin/speeches.php and 8 other locations - About 35 mins to fix
admin/speakers.php on lines 188..193
admin/speeches.php on lines 56..61
admin/speeches.php on lines 62..67
admin/speeches.php on lines 74..79
admin/speeches.php on lines 187..192
admin/speeches.php on lines 193..198
admin/speeches.php on lines 199..204
admin/speeches.php on lines 205..210

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

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

        if (isset(Request::getString('xoops_upload_file', null, 'POST')[0]) //$_POST['xoops_upload_file'][0])
            && !empty(Request::getString('slides1', null, 'POST')) //$_POST['slides1'])
        ) {
            $slides1 = Request::getString('xoops_upload_file', null, 'POST')[0]; //$_POST['xoops_upload_file'][0];
            $slides1 = getFile($slides1);
Severity: Major
Found in admin/speeches.php and 8 other locations - About 35 mins to fix
admin/speakers.php on lines 188..193
admin/speeches.php on lines 56..61
admin/speeches.php on lines 62..67
admin/speeches.php on lines 68..73
admin/speeches.php on lines 74..79
admin/speeches.php on lines 193..198
admin/speeches.php on lines 199..204
admin/speeches.php on lines 205..210

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

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

        if (isset(Request::getString('xoops_upload_file', null, 'POST')[0]) //$_POST['xoops_upload_file'][0])
            && !empty(Request::getString('photo', null, 'POST')) //$_POST['photo'])
        ) {
            $photo = Request::getString('xoops_upload_file', null, 'POST')[0]; //$_POST['xoops_upload_file'][0];
            $photo = getFile($photo);
Severity: Major
Found in admin/speakers.php and 8 other locations - About 35 mins to fix
admin/speeches.php on lines 56..61
admin/speeches.php on lines 62..67
admin/speeches.php on lines 68..73
admin/speeches.php on lines 74..79
admin/speeches.php on lines 187..192
admin/speeches.php on lines 193..198
admin/speeches.php on lines 199..204
admin/speeches.php on lines 205..210

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

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