xoopscube/altsys

View on GitHub

Showing 242 of 242 total issues

File Archive_Zip.php has 1668 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/* vim: set ts=4 sw=4: */
// +----------------------------------------------------------------------+
// | PHP Version 4                                                        |
// +----------------------------------------------------------------------+
Severity: Major
Found in xoops_trust_path/libs/altsys/include/Archive_Zip.php - About 4 days to fix

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

    <?php
    define( '_MD_A_MYBLOCKSADMIN_TIPS' , 'Manage blocks by selecting the side, target modules, user groups permissions and cache time.');
    define( '_MD_A_MYBLOCKSADMIN_CUSTOM_TIPS' , 'First, give the <b>Block Title</b> a name and select a <b>Custom Type</b>. Save and edit your new block.<br> 
    The <b>editor</b> will change according to the selected <b>Custom Type</b>.<br>Thus allowing you to create a reusable Component with BBcode and PHP or HTML, JavaScript and CSS.');
    define( '_MD_A_MYBLOCKSADMIN_PERMUPDATED' , 'Permissions updated successfully');
    xoops_trust_path/libs/altsys/language/fr_utf8/myblocksadmin.php on lines 1..58
    xoops_trust_path/libs/altsys/language/ja_utf8/myblocksadmin.php on lines 1..58
    xoops_trust_path/libs/altsys/language/pt_utf8/myblocksadmin.php on lines 1..51

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

    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

    <?php
    // $Id: myblocksadmin.php 1040 2011-11-06 05:24:00Z mikhail $
    // License http://creativecommons.org/licenses/by/2.5/br/
    define( '_MD_A_MYBLOCKSADMIN_TIPS' , 'Gerencie blocos selecionando o lado, módulos de destino, permissões de grupos de usuários e tempo de cache.');
    define( '_MD_A_MYBLOCKSADMIN_CUSTOM_TIPS' , 'Primeiro, dê um nome ao <b>Título do bloco</b> e selecione um <b>Tipo personalizado</b>. Salve e edite seu novo bloco.<br>
    xoops_trust_path/libs/altsys/language/english/myblocksadmin.php on lines 1..58
    xoops_trust_path/libs/altsys/language/fr_utf8/myblocksadmin.php on lines 1..58
    xoops_trust_path/libs/altsys/language/ja_utf8/myblocksadmin.php on lines 1..58

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

    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

    <?php
    define( '_MD_A_MYBLOCKSADMIN_TIPS' , 'サイド、ターゲット モジュール、ユーザー グループのアクセス許可、およびキャッシュ時間を選択して、ブロックを管理します。');
    define( '_MD_A_MYBLOCKSADMIN_CUSTOM_TIPS' , 'まず、<b>ブロック タイトル</b>に名前を付けて、<b>カスタム タイプ</b>を選択します。 新しいブロックを保存して編集します。<br><b>エディタ</b>は、選択した<b>カスタム タイプ</b>に応じて変化します。<br>
    したがって、BBcode と PHP または HTML、JavaScript、CSS を使用して再利用可能なコンポーネントを作成できます。');
    define( '_MD_A_MYBLOCKSADMIN_PERMUPDATED' , '権限を更新しました');
    xoops_trust_path/libs/altsys/language/english/myblocksadmin.php on lines 1..58
    xoops_trust_path/libs/altsys/language/fr_utf8/myblocksadmin.php on lines 1..58
    xoops_trust_path/libs/altsys/language/pt_utf8/myblocksadmin.php on lines 1..51

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

    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

    <?php
    define( '_MD_A_MYBLOCKSADMIN_TIPS' , "Gérez les blocs en sélectionnant le côté, les modules cibles, les autorisations des groupes d'utilisateurs et le temps de cache.");
    define( '_MD_A_MYBLOCKSADMIN_CUSTOM_TIPS' , "Tout d'abord, donnez un nom au <b>Titre du bloc</b> et sélectionnez un <b>Type personnalisé</b>. Enregistrez et modifiez votre nouveau bloc.<br>
    L'<b>éditeur</b> changera en fonction du <b>type personnalisé</b> sélectionné.<br> Vous permettant ainsi de créer un composant réutilisable avec BBcode et PHP ou HTML, JavaScript et CSS.");
    define( '_MD_A_MYBLOCKSADMIN_PERMUPDATED' , 'Permissions mises à jour avec succès');
    xoops_trust_path/libs/altsys/language/english/myblocksadmin.php on lines 1..58
    xoops_trust_path/libs/altsys/language/ja_utf8/myblocksadmin.php on lines 1..58
    xoops_trust_path/libs/altsys/language/pt_utf8/myblocksadmin.php on lines 1..51

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

    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

    <?php
    
    define( '_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT' , '%d template caches have been enclosed by tplsadmin comments');
    define( '_TPLSADMIN_DT_ENCLOSEBYCOMMENT' , 'Insert comments');
    define( '_TPLSADMIN_DD_ENCLOSEBYCOMMENT' , 'Two HTML comments will be inserted at the beginning and at the end of each template.<br>
    xoops_trust_path/libs/altsys/language/fr_utf8/compilehookadmin.php on lines 1..50
    xoops_trust_path/libs/altsys/language/ja_utf8/compilehookadmin.php on lines 1..50
    xoops_trust_path/libs/altsys/language/pt_utf8/compilehookadmin.php on lines 1..40

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

    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

    <?php
    
    define( '_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT' , '%d 個のコンパイル済テンプレートキャッシュに、コメントを埋め込みました');
    define( '_TPLSADMIN_DT_ENCLOSEBYCOMMENT' , 'テンプレート名をコメントとして埋め込む');
    define( '_TPLSADMIN_DD_ENCLOSEBYCOMMENT' , '各テンプレートの開始点および終了点に、HTMLコメントの形でテンプレート名が埋め込まれます。デザイン的な影響も少ないので、HTMLのソースコードを読みこなせる方にお勧めです。');
    xoops_trust_path/libs/altsys/language/english/compilehookadmin.php on lines 1..51
    xoops_trust_path/libs/altsys/language/fr_utf8/compilehookadmin.php on lines 1..50
    xoops_trust_path/libs/altsys/language/pt_utf8/compilehookadmin.php on lines 1..40

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

    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

    <?php
    
    define( '_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT' , '%d template caches have been enclosed by tplsadmin comments');
    define( '_TPLSADMIN_DT_ENCLOSEBYCOMMENT' , 'Implant comments');
    define( '_TPLSADMIN_DD_ENCLOSEBYCOMMENT' , 'Two HTML comments will be implanted in the begging/ending point of each templates. Since this rarely breaks its design, it is recommended to professionals can read HTML itself');
    xoops_trust_path/libs/altsys/language/english/compilehookadmin.php on lines 1..51
    xoops_trust_path/libs/altsys/language/ja_utf8/compilehookadmin.php on lines 1..50
    xoops_trust_path/libs/altsys/language/pt_utf8/compilehookadmin.php on lines 1..40

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

    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

    <?php
    
    // ** XOOPS Cube Legacy - AltSys Module - Portuguese
    // ** Por Mikhail Miguel <mikhail.miguel@gmail.com> - http://xoops.net.br/
    // ** $Id: compilehookadmin.php 1040 2011-11-06 05:24:00Z mikhail $
    xoops_trust_path/libs/altsys/language/english/compilehookadmin.php on lines 1..51
    xoops_trust_path/libs/altsys/language/fr_utf8/compilehookadmin.php on lines 1..50
    xoops_trust_path/libs/altsys/language/ja_utf8/compilehookadmin.php on lines 1..50

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

    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

    File MyBlocksAdmin.class.php has 772 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Altsys library (UI-Components) Admin blocks and permissions
     * Class MyBlocksAdmin
     * @package    Altsys
    Severity: Major
    Found in xoops_trust_path/libs/altsys/class/MyBlocksAdmin.class.php - About 1 day to fix

      Function _extractByRule has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
      Open

        public function _extractByRule(&$p_file_list, &$p_params)
        {
            $v_result=1;
      
            $p_path = $p_params['add_path'];
      Severity: Minor
      Found in xoops_trust_path/libs/altsys/include/Archive_Zip.php - About 1 day 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

      Function _deleteByRule has a Cognitive Complexity of 75 (exceeds 5 allowed). Consider refactoring.
      Open

        public function _deleteByRule(&$p_result_list, &$p_params)
        {
            $v_result=1;
            $v_list_detail = [];
      
      
      Severity: Minor
      Found in xoops_trust_path/libs/altsys/include/Archive_Zip.php - About 1 day 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

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

      <?php
      
      define( '_MI_ALTSYS_MODULENAME' , 'コンポーネント');
      define( '_MI_ALTSYS_MODULEDESC' , 'ブロック、テンプレート、翻訳、ローカリゼーションの迅速な管理。');
      
      
      Severity: Major
      Found in xoops_trust_path/libs/altsys/language/ja_utf8/modinfo.php and 3 other locations - About 1 day to fix
      xoops_trust_path/libs/altsys/language/english/modinfo.php on lines 1..37
      xoops_trust_path/libs/altsys/language/fr_utf8/modinfo.php on lines 1..37
      xoops_trust_path/libs/altsys/language/pt_utf8/modinfo.php on lines 1..39

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

      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

      <?php
      
      define( '_MI_ALTSYS_MODULENAME' , 'Composants');
      define( '_MI_ALTSYS_MODULEDESC' , 'Gestion simplifiée de composants système, blocs, modèles, traduction et localisation.');
      
      
      Severity: Major
      Found in xoops_trust_path/libs/altsys/language/fr_utf8/modinfo.php and 3 other locations - About 1 day to fix
      xoops_trust_path/libs/altsys/language/english/modinfo.php on lines 1..37
      xoops_trust_path/libs/altsys/language/ja_utf8/modinfo.php on lines 1..37
      xoops_trust_path/libs/altsys/language/pt_utf8/modinfo.php on lines 1..39

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

      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

      <?php
      // $Id: modinfo.php 1040 2011-11-06 05:24:00Z mikhail $
      // License http://creativecommons.org/licenses/by/2.5/br/
      
      define( '_MI_ALTSYS_MODULENAME' , "Componentes");
      Severity: Major
      Found in xoops_trust_path/libs/altsys/language/pt_utf8/modinfo.php and 3 other locations - About 1 day to fix
      xoops_trust_path/libs/altsys/language/english/modinfo.php on lines 1..37
      xoops_trust_path/libs/altsys/language/fr_utf8/modinfo.php on lines 1..37
      xoops_trust_path/libs/altsys/language/ja_utf8/modinfo.php on lines 1..37

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

      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

      <?php
      
      define( '_MI_ALTSYS_MODULENAME' , 'Components');
      define( '_MI_ALTSYS_MODULEDESC' , 'Quick management of blocks, templates, translation and localization.');
      
      
      Severity: Major
      Found in xoops_trust_path/libs/altsys/language/english/modinfo.php and 3 other locations - About 1 day to fix
      xoops_trust_path/libs/altsys/language/fr_utf8/modinfo.php on lines 1..37
      xoops_trust_path/libs/altsys/language/ja_utf8/modinfo.php on lines 1..37
      xoops_trust_path/libs/altsys/language/pt_utf8/modinfo.php on lines 1..39

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

      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

      <?php
      
      define( '_MYTPLSADMIN_TIPS' , 'The original template file is read-only for added security reasons.<br>
          Select a base set and create a new set of templates, or check only the templates you want to copy and customize.<br>
          The <b>Render</b> allows you to select, edit, copy, download or delete a Template Set and templates files.');
      xoops_trust_path/libs/altsys/language/fr_utf8/mytplsadmin.php on lines 1..28
      xoops_trust_path/libs/altsys/language/ja_utf8/mytplsadmin.php on lines 1..32
      xoops_trust_path/libs/altsys/language/pt_utf8/mytplsadmin.php on lines 1..30

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

      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

      <?php
      
      define( '_MYTPLSADMIN_TIPS' , 'Le modèle original est en lecture seule pour des raisons de sécurité.<br>
      Créez un nouveau jeu de modèles et copiez les fichiers modèles à personnaliser.<br>
      <b>Render</b> vous permet de sélectionner, modifier, copier, télécharger ou supprimer un jeu de modèles.');
      xoops_trust_path/libs/altsys/language/english/mytplsadmin.php on lines 1..31
      xoops_trust_path/libs/altsys/language/ja_utf8/mytplsadmin.php on lines 1..32
      xoops_trust_path/libs/altsys/language/pt_utf8/mytplsadmin.php on lines 1..30

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

      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

      <?php
      
      // $Id: mytplsadmin.php 1040 2011-11-06 05:24:00Z mikhail $
      // License http://creativecommons.org/licenses/by/2.5/br/
      define( '_MYTPLSADMIN_TIPS' , 'O ficheiro modelo original serve apenas de leitura por razões de segurança.<br>
      xoops_trust_path/libs/altsys/language/english/mytplsadmin.php on lines 1..31
      xoops_trust_path/libs/altsys/language/fr_utf8/mytplsadmin.php on lines 1..28
      xoops_trust_path/libs/altsys/language/ja_utf8/mytplsadmin.php on lines 1..32

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

      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

      <?php
      
      define( '_MYTPLSADMIN_TIPS' , 'オリジナルテンプレートファイルは、セキュリティ上の理由から読み取り専用となっています。<br>
      新しいテンプレートセットを作成し、カスタマイズするテンプレートをコピーします。<br>
      <b>Render</b> では、テンプレート セットを選択、編集、コピー、ダウンロード、または削除できます。');
      xoops_trust_path/libs/altsys/language/english/mytplsadmin.php on lines 1..31
      xoops_trust_path/libs/altsys/language/fr_utf8/mytplsadmin.php on lines 1..28
      xoops_trust_path/libs/altsys/language/pt_utf8/mytplsadmin.php on lines 1..30

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

      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