mambax7/xnewsletter

View on GitHub

Showing 96 of 379 total issues

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

<?php
/**
 * Greek PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 */
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-el.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-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
/**
 * 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
/**
 * 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
/**
 * 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

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

<?php
/**
 * Galician PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  by Donato Rouco <donatorouco@gmail.com>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-gl.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-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
/**
 * Hungarian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  @dominicus-75
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-hu.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-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
/**
 * Italian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Ilias Bartolini <brain79@inwind.it>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-it.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-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
/**
 * Dutch PHPMailer language file: refer to class.phpmailer.php for definitive list.
 * @package PHPMailer
 * @author  Tuxion <team@tuxion.nl>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-nl.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-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
/**
 * Ukrainian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Yuriy Rudyy <yrudyy@prs.net.ua>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-uk.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-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
/**
 * Lithuanian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Dainius Kaupaitis <dk@sum.lt>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-lt.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-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
/**
 * Belarusian PHPMailer language file: refer to English translation for definitive list
 * @package PHPMailer
 * @author  Aleksander Maksymiuk <info@setpro.pl>
Severity: Major
Found in include/phpmailer/language/phpmailer.lang-be.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-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 4 locations. Consider refactoring.
Open

        if (is_object($templateObj)) {
            if ( (int)$templateObj->getVar('template_type') === _XNEWSLETTER_MAILINGLIST_TPL_CUSTOM_VAL) {
                // get template from database
                $htmlBody = $letterTpl->fetchFromData($templateObj->getVar('template_content', 'n'));
            } else {
Severity: Major
Found in admin/letter.php and 3 other locations - About 5 hrs to fix
letter.php on lines 161..182
letter.php on lines 221..242
print.php on lines 75..96

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

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

        if (is_object($templateObj)) {
            if ( (int)$templateObj->getVar('template_type') === _XNEWSLETTER_MAILINGLIST_TPL_CUSTOM_VAL) {
                // get template from database
                $htmlBody = $xoopsTpl->fetchFromData($templateObj->getVar('template_content', 'n'));
            } else {
Severity: Major
Found in letter.php and 3 other locations - About 5 hrs to fix
admin/letter.php on lines 86..107
letter.php on lines 221..242
print.php on lines 75..96

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

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

    if (is_object($templateObj)) {
        if ( (int)$templateObj->getVar('template_type') === _XNEWSLETTER_MAILINGLIST_TPL_CUSTOM_VAL) {
            // get template from database
            $htmlBody = $xoopsTpl->fetchFromData($templateObj->getVar('template_content', 'n'));
        } else {
Severity: Major
Found in print.php and 3 other locations - About 5 hrs to fix
admin/letter.php on lines 86..107
letter.php on lines 161..182
letter.php on lines 221..242

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

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

        if (is_object($templateObj)) {
            if ( (int)$templateObj->getVar('template_type') === _XNEWSLETTER_MAILINGLIST_TPL_CUSTOM_VAL) {
                // get template from database
                $htmlBody = $xoopsTpl->fetchFromData($templateObj->getVar('template_content', 'n'));
            } else {
Severity: Major
Found in letter.php and 3 other locations - About 5 hrs to fix
admin/letter.php on lines 86..107
letter.php on lines 161..182
print.php on lines 75..96

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

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

            foreach ($uploadedFiles as $file) {
                $attachmentObj = $helper->getHandler('Attachment')->create();
                $attachmentObj->setVar('attachment_letter_id', $letterId);
                $attachmentObj->setVar('attachment_name', $file['name']);
                $attachmentObj->setVar('attachment_type', $file['type']);
Severity: Major
Found in admin/letter.php and 1 other location - About 3 hrs to fix
letter.php on lines 526..537

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

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

            foreach ($uploadedFiles as $file) {
                $attachmentObj = $helper->getHandler('Attachment')->create();
                $attachmentObj->setVar('attachment_letter_id', $letter_id);
                $attachmentObj->setVar('attachment_name', $file['name']);
                $attachmentObj->setVar('attachment_type', $file['type']);
Severity: Major
Found in letter.php and 1 other location - About 3 hrs to fix
admin/letter.php on lines 351..362

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

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

                foreach ($catObjs as $cat_id => $catObj) {
                    // create selections: $cat_id-$cat_selected-$old_catsubcr_id-$old_catsubscr_quited
                    $selection      = [];
                    $selection[0]   = $cat_id;
                    $selection[1]   = in_array($cat_id, Request::getArray('cats')) ? '1' : '0'; //isset($_REQUEST["cats_{$cat_id}"]);
Severity: Major
Found in subscription.php and 1 other location - About 2 hrs to fix
subscription.php on lines 675..685

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

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

                    foreach ($catObjs as $cat_id => $catObj) {
                        // create selections: $cat_id-$cat_selected-$old_catsubcr_id-$old_catsubscr_quited
                        $selection      = [];
                        $selection[0]   = $cat_id;
                        $selection[1]   = in_array($cat_id, Request::getArray('cats')) ? '1' : '0'; //isset($_REQUEST["cats_{$cat_id}"]);
Severity: Major
Found in subscription.php and 1 other location - About 2 hrs to fix
subscription.php on lines 529..539

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

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