mambax7/xnewsletter

View on GitHub

Showing 96 of 379 total issues

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

    case 'delete_template':
        $templateObj = $helper->getHandler('Template')->get($templateId);
        if (true === Request::getBool('ok', false, 'POST')) {
            if (!$GLOBALS['xoopsSecurity']->check()) {
                redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
Severity: Major
Found in admin/template.php and 3 other locations - About 6 hrs to fix
admin/attachment.php on lines 106..120
admin/bmh.php on lines 314..328
admin/mailinglist.php on lines 159..177

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

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

    case 'delete_attachment':
        $attachmentObj = $helper->getHandler('Attachment')->get($attachment_id);
        if (true === Request::getBool('ok', false, 'POST')) {
            if (!$GLOBALS['xoopsSecurity']->check()) {
                redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
Severity: Major
Found in admin/attachment.php and 3 other locations - About 6 hrs to fix
admin/bmh.php on lines 314..328
admin/mailinglist.php on lines 159..177
admin/template.php on lines 169..183

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

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

<?php
/**
 * Russian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Alexey Chumakov <alex@chumakov.ru>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-ru.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * German PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 */
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-de.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * Croatian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Hrvoj3e <hrvoj3e@gmail.com>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-hr.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * Spanish PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Matt Sturdy <matt.sturdy@gmail.com>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-es.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * French PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * Some French punctuation requires a thin non-breaking space (U+202F) character before it,
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-fr.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * Portuguese (European) PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Jonadabe <jonadabe@hotmail.com>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-pt.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * Estonian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Indrek Päri
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-et.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * Simplified Chinese PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  liqwei <liqwei@liqwei.com>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-zh_cn.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27

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

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

<?php
/**
 * Traditional Chinese PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  liqwei <liqwei@liqwei.com>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-zh.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * Georgian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-ka.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * Turkish PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Elçin Özel
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-tr.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ro.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

<?php
/**
 * Romanian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Alex Florea <alecz.fia@gmail.com>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-ro.php and 11 other locations - About 6 hrs to fix
include/phpmailer/language/phpmailer.lang-de.php on lines 1..24
include/phpmailer/language/phpmailer.lang-es.php on lines 1..25
include/phpmailer/language/phpmailer.lang-et.php on lines 1..26
include/phpmailer/language/phpmailer.lang-fr.php on lines 1..28
include/phpmailer/language/phpmailer.lang-hr.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ka.php on lines 1..25
include/phpmailer/language/phpmailer.lang-pt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ru.php on lines 1..26
include/phpmailer/language/phpmailer.lang-tr.php on lines 1..29
include/phpmailer/language/phpmailer.lang-zh.php on lines 1..27
include/phpmailer/language/phpmailer.lang-zh_cn.php on lines 1..27

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

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

        if (false === $dis_accounts_server_out) {
            $outcomming_tray = new \XoopsFormElementTray(_AM_XNEWSLETTER_ACCOUNTS_OUTGOING, '');
            $outcomming_tray->addElement(new \XoopsFormText(_AM_XNEWSLETTER_ACCOUNTS_SERVER_OUT, 'accounts_server_out', 50, 255, $this->getVar('accounts_server_out')));
            $outcomming_tray->addElement(new \XoopsFormText('<br>' . _AM_XNEWSLETTER_ACCOUNTS_PORT_OUT, 'accounts_port_out', 50, 255, $this->getVar('accounts_port_out')));
            $formfield_securetype_out = new \XoopsFormSelect('<br>' . _AM_XNEWSLETTER_ACCOUNTS_SECURETYPE_OUT, 'accounts_securetype_out', $this->getVar('accounts_securetype_out'));
Severity: Major
Found in class/Accounts.php and 1 other location - About 6 hrs to fix
class/Accounts.php on lines 147..158

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

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

        if (false === $dis_accounts_server_in) {
            $incomming_tray = new \XoopsFormElementTray(_AM_XNEWSLETTER_ACCOUNTS_INCOMING, '');
            $incomming_tray->addElement(new \XoopsFormText(_AM_XNEWSLETTER_ACCOUNTS_SERVER_IN, 'accounts_server_in', 50, 255, $this->getVar('accounts_server_in')));
            $incomming_tray->addElement(new \XoopsFormText('<br>' . _AM_XNEWSLETTER_ACCOUNTS_PORT_IN, 'accounts_port_in', 50, 255, $this->getVar('accounts_port_in')));
            $formfield_securetype_in = new \XoopsFormSelect('<br>' . _AM_XNEWSLETTER_ACCOUNTS_SECURETYPE_IN, 'accounts_securetype_in', $this->getVar('accounts_securetype_in'));
Severity: Major
Found in class/Accounts.php and 1 other location - About 6 hrs to fix
class/Accounts.php on lines 160..171

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

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

<?php
/**
 * Azerbaijani PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  @mirjalal
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-az.php and 15 other locations - About 5 hrs to fix
include/phpmailer/language/phpmailer.lang-be.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ca.php on lines 1..25
include/phpmailer/language/phpmailer.lang-el.php on lines 1..24
include/phpmailer/language/phpmailer.lang-eo.php on lines 1..24
include/phpmailer/language/phpmailer.lang-fa.php on lines 1..26
include/phpmailer/language/phpmailer.lang-gl.php on lines 1..25
include/phpmailer/language/phpmailer.lang-he.php on lines 1..25
include/phpmailer/language/phpmailer.lang-hu.php on lines 1..25
include/phpmailer/language/phpmailer.lang-it.php on lines 1..26
include/phpmailer/language/phpmailer.lang-lt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-lv.php on lines 1..25
include/phpmailer/language/phpmailer.lang-nl.php on lines 1..25
include/phpmailer/language/phpmailer.lang-sk.php on lines 1..25
include/phpmailer/language/phpmailer.lang-uk.php on lines 1..26
include/phpmailer/language/phpmailer.lang-vi.php on lines 1..25

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

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

<?php
/**
 * Persian/Farsi PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Ali Jazayeri <jaza.ali@gmail.com>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-fa.php and 15 other locations - About 5 hrs to fix
include/phpmailer/language/phpmailer.lang-az.php on lines 1..25
include/phpmailer/language/phpmailer.lang-be.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ca.php on lines 1..25
include/phpmailer/language/phpmailer.lang-el.php on lines 1..24
include/phpmailer/language/phpmailer.lang-eo.php on lines 1..24
include/phpmailer/language/phpmailer.lang-gl.php on lines 1..25
include/phpmailer/language/phpmailer.lang-he.php on lines 1..25
include/phpmailer/language/phpmailer.lang-hu.php on lines 1..25
include/phpmailer/language/phpmailer.lang-it.php on lines 1..26
include/phpmailer/language/phpmailer.lang-lt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-lv.php on lines 1..25
include/phpmailer/language/phpmailer.lang-nl.php on lines 1..25
include/phpmailer/language/phpmailer.lang-sk.php on lines 1..25
include/phpmailer/language/phpmailer.lang-uk.php on lines 1..26
include/phpmailer/language/phpmailer.lang-vi.php on lines 1..25

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

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

<?php
/**
 * Vietnamese (Tiếng Việt) PHPMailer language file: refer to English translation for definitive list.
 * @package PHPMailer
 * @author  VINADES.,JSC <contact@vinades.vn>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-vi.php and 15 other locations - About 5 hrs to fix
include/phpmailer/language/phpmailer.lang-az.php on lines 1..25
include/phpmailer/language/phpmailer.lang-be.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ca.php on lines 1..25
include/phpmailer/language/phpmailer.lang-el.php on lines 1..24
include/phpmailer/language/phpmailer.lang-eo.php on lines 1..24
include/phpmailer/language/phpmailer.lang-fa.php on lines 1..26
include/phpmailer/language/phpmailer.lang-gl.php on lines 1..25
include/phpmailer/language/phpmailer.lang-he.php on lines 1..25
include/phpmailer/language/phpmailer.lang-hu.php on lines 1..25
include/phpmailer/language/phpmailer.lang-it.php on lines 1..26
include/phpmailer/language/phpmailer.lang-lt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-lv.php on lines 1..25
include/phpmailer/language/phpmailer.lang-nl.php on lines 1..25
include/phpmailer/language/phpmailer.lang-sk.php on lines 1..25
include/phpmailer/language/phpmailer.lang-uk.php on lines 1..26

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

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

<?php
/**
 * Esperanto PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 */
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-eo.php and 15 other locations - About 5 hrs to fix
include/phpmailer/language/phpmailer.lang-az.php on lines 1..25
include/phpmailer/language/phpmailer.lang-be.php on lines 1..25
include/phpmailer/language/phpmailer.lang-ca.php on lines 1..25
include/phpmailer/language/phpmailer.lang-el.php on lines 1..24
include/phpmailer/language/phpmailer.lang-fa.php on lines 1..26
include/phpmailer/language/phpmailer.lang-gl.php on lines 1..25
include/phpmailer/language/phpmailer.lang-he.php on lines 1..25
include/phpmailer/language/phpmailer.lang-hu.php on lines 1..25
include/phpmailer/language/phpmailer.lang-it.php on lines 1..26
include/phpmailer/language/phpmailer.lang-lt.php on lines 1..25
include/phpmailer/language/phpmailer.lang-lv.php on lines 1..25
include/phpmailer/language/phpmailer.lang-nl.php on lines 1..25
include/phpmailer/language/phpmailer.lang-sk.php on lines 1..25
include/phpmailer/language/phpmailer.lang-uk.php on lines 1..26
include/phpmailer/language/phpmailer.lang-vi.php on lines 1..25

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

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