mambax7/xnewsletter

View on GitHub

Showing 379 of 379 total issues

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

<?php
/**
 * ****************************************************************************
 *  - A Project by Developers TEAM For Xoops - ( https://xoops.org )
 * ****************************************************************************
Severity: Major
Found in language/english/common.php and 1 other location - About 7 hrs to fix
language/german/common.php on lines 1..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 225.

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

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

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

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

Refactorings

Further Reading

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

            for ($upl = 0; $upl < $helper->getConfig('xn_maxattachments'); ++$upl) {
                $uploader = new \XoopsMediaUploader($uploaddir, $helper->getConfig('xn_mimetypes'), $helper->getConfig('xn_maxsize'), null, null);
                if ($uploader->fetchMedia(@$_POST['xoops_upload_file'][$upl])) {
                    //$uploader->setPrefix("xn_") ; keep original name
                    $uploader->fetchMedia($_POST['xoops_upload_file'][$upl]);
Severity: Major
Found in letter.php and 1 other location - About 6 hrs to fix
admin/letter.php on lines 330..349

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

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

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

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

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

Refactorings

Further Reading

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

            for ($upl = 0; $upl < $helper->getConfig('xn_maxattachments'); ++$upl) {
                $uploader = new \XoopsMediaUploader($uploaddir, $helper->getConfig('xn_mimetypes'), $helper->getConfig('xn_maxsize'), null, null);
                if ($uploader->fetchMedia(@$_POST['xoops_upload_file'][$upl])) {
                    //$uploader->setPrefix("xn_") ; keep original name
                    $uploader->fetchMedia($_POST['xoops_upload_file'][$upl]);
Severity: Major
Found in admin/letter.php and 1 other location - About 6 hrs to fix
letter.php on lines 505..524

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

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

Function smtpConnect has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
Open

    public function smtpConnect($options = null)
    {
        if (null === $this->smtp) {
            $this->smtp = $this->getSMTPInstance();
        }
Severity: Minor
Found in include/phpmailer/class.phpmailer.php - About 6 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method createBody has 168 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createBody()
    {
        $body = '';
        //Create unique IDs and preset boundaries
        $this->uniqueid    = $this->generateId();
Severity: Major
Found in include/phpmailer/class.phpmailer.php - About 6 hrs to fix

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

        case 'delete_mailinglist':
            $mailinglistObj = $helper->getHandler('Mailinglist')->get($mailinglistId);
            if (true === Request::getBool('ok', false, 'POST')) {
                if (!$GLOBALS['xoopsSecurity']->check()) {
                    redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
    Severity: Major
    Found in admin/mailinglist.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/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 4 locations. Consider refactoring.
    Open

        case 'delete_bmh':
            $bmhObj = $helper->getHandler('Bmh')->get($bmh_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/bmh.php and 3 other locations - About 6 hrs to fix
    admin/attachment.php on lines 106..120
    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 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

    Severity
    Category
    Status
    Source
    Language