wikimedia/mediawiki-core

View on GitHub

Showing 11,545 of 11,545 total issues

Method execute has 78 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute() {
        $this->useTransactionalTimeLimit();

        $params = $this->extractRequestParams();
        $user = $this->getUser();
Severity: Major
Found in includes/api/ApiRevisionDelete.php - About 3 hrs to fix

    Method getAllowedParams has 78 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getAllowedParams() {
            $params = [
                'title' => [
                    ParamValidator::PARAM_TYPE => 'string',
                ],
    Severity: Major
    Found in includes/api/ApiEditPage.php - About 3 hrs to fix

      Method getAllowedParams has 78 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getAllowedParams() {
              $blockCIDRLimit = $this->getConfig()->get( MainConfigNames::BlockCIDRLimit );
      
              return [
                  'start' => [
      Severity: Major
      Found in includes/api/ApiQueryBlocks.php - About 3 hrs to fix

        Method getAllowedParams has 78 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getAllowedParams() {
                $ret = [
                    'from' => null,
                    'continue' => [
                        ApiBase::PARAM_HELP_MSG => 'api-help-param-continue',
        Severity: Major
        Found in includes/api/ApiQueryAllPages.php - About 3 hrs to fix

          Method showUploadStatus has 78 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              protected function showUploadStatus( $user ) {
                  // first, let's fetch the status from the main stash
                  $progress = UploadBase::getSessionStatus( $user, $this->mCacheKey );
                  if ( !$progress ) {
                      $progress = [ 'status' => Status::newFatal( 'invalid-cache-key' ) ];
          Severity: Major
          Found in includes/specials/SpecialUpload.php - About 3 hrs to fix

            Method getExternalLibraries has 78 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                protected function getExternalLibraries( array $credits ) {
                    $paths = [
                        MW_INSTALL_PATH . '/vendor/composer/installed.json'
                    ];
            
            
            Severity: Major
            Found in includes/specials/SpecialVersion.php - About 3 hrs to fix

              Method showTagList has 78 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function showTagList() {
                      $out = $this->getOutput();
                      $out->setPageTitleMsg( $this->msg( 'tags-title' ) );
                      $out->wrapWikiMsg( "<div class='mw-tags-intro'>\n$1\n</div>", 'tags-intro' );
              
              
              Severity: Major
              Found in includes/specials/SpecialTags.php - About 3 hrs to fix

                Method execute has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function execute() {
                        $this->run = $this->getOption( 'run', false );
                
                        if ( $this->run ) {
                            $username = $this->getOption( 'user', User::MAINTENANCE_SCRIPT_USER );
                Severity: Major
                Found in maintenance/uppercaseTitlesForUnicodeTransition.php - About 3 hrs to fix

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

                  <?php
                  /** Maithili (मैथिली)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesMai.php and 20 other locations - About 3 hrs to fix
                  languages/messages/MessagesAwa.php on lines 1..27
                  languages/messages/MessagesBan.php on lines 1..27
                  languages/messages/MessagesBbc_latn.php on lines 1..29
                  languages/messages/MessagesCsb.php on lines 1..27
                  languages/messages/MessagesDga.php on lines 1..30
                  languages/messages/MessagesDty.php on lines 1..27
                  languages/messages/MessagesGcr.php on lines 1..29
                  languages/messages/MessagesIba.php on lines 1..29
                  languages/messages/MessagesLtg.php on lines 1..32
                  languages/messages/MessagesMad.php on lines 1..27
                  languages/messages/MessagesPms.php on lines 1..39
                  languages/messages/MessagesPwn.php on lines 1..32
                  languages/messages/MessagesRmy.php on lines 1..30
                  languages/messages/MessagesSco.php on lines 1..27
                  languages/messages/MessagesShy_latn.php on lines 1..29
                  languages/messages/MessagesSzy.php on lines 1..31
                  languages/messages/MessagesTcy.php on lines 1..31
                  languages/messages/MessagesTrv.php on lines 1..30
                  languages/messages/MessagesVls.php on lines 1..31
                  languages/messages/MessagesZea.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 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 15 locations. Consider refactoring.
                  Open

                  <?php
                  /** Farefare (farefare)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesGur.php and 14 other locations - About 3 hrs to fix
                  languages/messages/MessagesAcf.php on lines 1..30
                  languages/messages/MessagesDag.php on lines 1..30
                  languages/messages/MessagesDin.php on lines 1..27
                  languages/messages/MessagesFat.php on lines 1..29
                  languages/messages/MessagesHa.php on lines 1..27
                  languages/messages/MessagesIgl.php on lines 1..30
                  languages/messages/MessagesMos.php on lines 1..30
                  languages/messages/MessagesMrh.php on lines 1..30
                  languages/messages/MessagesPcm.php on lines 1..27
                  languages/messages/MessagesPrg.php on lines 1..29
                  languages/messages/MessagesSyl.php on lines 1..30
                  languages/messages/MessagesTig.php on lines 1..30
                  languages/messages/MessagesTn.php on lines 1..30
                  languages/messages/MessagesTw.php on lines 1..29

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

                  <?php
                  /** Tigre (ትግሬ)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesTig.php and 14 other locations - About 3 hrs to fix
                  languages/messages/MessagesAcf.php on lines 1..30
                  languages/messages/MessagesDag.php on lines 1..30
                  languages/messages/MessagesDin.php on lines 1..27
                  languages/messages/MessagesFat.php on lines 1..29
                  languages/messages/MessagesGur.php on lines 1..30
                  languages/messages/MessagesHa.php on lines 1..27
                  languages/messages/MessagesIgl.php on lines 1..30
                  languages/messages/MessagesMos.php on lines 1..30
                  languages/messages/MessagesMrh.php on lines 1..30
                  languages/messages/MessagesPcm.php on lines 1..27
                  languages/messages/MessagesPrg.php on lines 1..29
                  languages/messages/MessagesSyl.php on lines 1..30
                  languages/messages/MessagesTn.php on lines 1..30
                  languages/messages/MessagesTw.php on lines 1..29

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

                  <?php
                  /** Shawiya (Latin script) (Tachawit)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesShy_latn.php and 20 other locations - About 3 hrs to fix
                  languages/messages/MessagesAwa.php on lines 1..27
                  languages/messages/MessagesBan.php on lines 1..27
                  languages/messages/MessagesBbc_latn.php on lines 1..29
                  languages/messages/MessagesCsb.php on lines 1..27
                  languages/messages/MessagesDga.php on lines 1..30
                  languages/messages/MessagesDty.php on lines 1..27
                  languages/messages/MessagesGcr.php on lines 1..29
                  languages/messages/MessagesIba.php on lines 1..29
                  languages/messages/MessagesLtg.php on lines 1..32
                  languages/messages/MessagesMad.php on lines 1..27
                  languages/messages/MessagesMai.php on lines 1..44
                  languages/messages/MessagesPms.php on lines 1..39
                  languages/messages/MessagesPwn.php on lines 1..32
                  languages/messages/MessagesRmy.php on lines 1..30
                  languages/messages/MessagesSco.php on lines 1..27
                  languages/messages/MessagesSzy.php on lines 1..31
                  languages/messages/MessagesTcy.php on lines 1..31
                  languages/messages/MessagesTrv.php on lines 1..30
                  languages/messages/MessagesVls.php on lines 1..31
                  languages/messages/MessagesZea.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 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 21 locations. Consider refactoring.
                  Open

                  <?php
                  /** Madurese (Madhurâ)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesMad.php and 20 other locations - About 3 hrs to fix
                  languages/messages/MessagesAwa.php on lines 1..27
                  languages/messages/MessagesBan.php on lines 1..27
                  languages/messages/MessagesBbc_latn.php on lines 1..29
                  languages/messages/MessagesCsb.php on lines 1..27
                  languages/messages/MessagesDga.php on lines 1..30
                  languages/messages/MessagesDty.php on lines 1..27
                  languages/messages/MessagesGcr.php on lines 1..29
                  languages/messages/MessagesIba.php on lines 1..29
                  languages/messages/MessagesLtg.php on lines 1..32
                  languages/messages/MessagesMai.php on lines 1..44
                  languages/messages/MessagesPms.php on lines 1..39
                  languages/messages/MessagesPwn.php on lines 1..32
                  languages/messages/MessagesRmy.php on lines 1..30
                  languages/messages/MessagesSco.php on lines 1..27
                  languages/messages/MessagesShy_latn.php on lines 1..29
                  languages/messages/MessagesSzy.php on lines 1..31
                  languages/messages/MessagesTcy.php on lines 1..31
                  languages/messages/MessagesTrv.php on lines 1..30
                  languages/messages/MessagesVls.php on lines 1..31
                  languages/messages/MessagesZea.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 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 21 locations. Consider refactoring.
                  Open

                  <?php
                  /** Kashubian (kaszëbsczi)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesCsb.php and 20 other locations - About 3 hrs to fix
                  languages/messages/MessagesAwa.php on lines 1..27
                  languages/messages/MessagesBan.php on lines 1..27
                  languages/messages/MessagesBbc_latn.php on lines 1..29
                  languages/messages/MessagesDga.php on lines 1..30
                  languages/messages/MessagesDty.php on lines 1..27
                  languages/messages/MessagesGcr.php on lines 1..29
                  languages/messages/MessagesIba.php on lines 1..29
                  languages/messages/MessagesLtg.php on lines 1..32
                  languages/messages/MessagesMad.php on lines 1..27
                  languages/messages/MessagesMai.php on lines 1..44
                  languages/messages/MessagesPms.php on lines 1..39
                  languages/messages/MessagesPwn.php on lines 1..32
                  languages/messages/MessagesRmy.php on lines 1..30
                  languages/messages/MessagesSco.php on lines 1..27
                  languages/messages/MessagesShy_latn.php on lines 1..29
                  languages/messages/MessagesSzy.php on lines 1..31
                  languages/messages/MessagesTcy.php on lines 1..31
                  languages/messages/MessagesTrv.php on lines 1..30
                  languages/messages/MessagesVls.php on lines 1..31
                  languages/messages/MessagesZea.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 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 21 locations. Consider refactoring.
                  Open

                  <?php
                  /** Batak Toba (Batak Toba)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesBbc_latn.php and 20 other locations - About 3 hrs to fix
                  languages/messages/MessagesAwa.php on lines 1..27
                  languages/messages/MessagesBan.php on lines 1..27
                  languages/messages/MessagesCsb.php on lines 1..27
                  languages/messages/MessagesDga.php on lines 1..30
                  languages/messages/MessagesDty.php on lines 1..27
                  languages/messages/MessagesGcr.php on lines 1..29
                  languages/messages/MessagesIba.php on lines 1..29
                  languages/messages/MessagesLtg.php on lines 1..32
                  languages/messages/MessagesMad.php on lines 1..27
                  languages/messages/MessagesMai.php on lines 1..44
                  languages/messages/MessagesPms.php on lines 1..39
                  languages/messages/MessagesPwn.php on lines 1..32
                  languages/messages/MessagesRmy.php on lines 1..30
                  languages/messages/MessagesSco.php on lines 1..27
                  languages/messages/MessagesShy_latn.php on lines 1..29
                  languages/messages/MessagesSzy.php on lines 1..31
                  languages/messages/MessagesTcy.php on lines 1..31
                  languages/messages/MessagesTrv.php on lines 1..30
                  languages/messages/MessagesVls.php on lines 1..31
                  languages/messages/MessagesZea.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 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 15 locations. Consider refactoring.
                  Open

                  <?php
                  /** Mooré (moore)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesMos.php and 14 other locations - About 3 hrs to fix
                  languages/messages/MessagesAcf.php on lines 1..30
                  languages/messages/MessagesDag.php on lines 1..30
                  languages/messages/MessagesDin.php on lines 1..27
                  languages/messages/MessagesFat.php on lines 1..29
                  languages/messages/MessagesGur.php on lines 1..30
                  languages/messages/MessagesHa.php on lines 1..27
                  languages/messages/MessagesIgl.php on lines 1..30
                  languages/messages/MessagesMrh.php on lines 1..30
                  languages/messages/MessagesPcm.php on lines 1..27
                  languages/messages/MessagesPrg.php on lines 1..29
                  languages/messages/MessagesSyl.php on lines 1..30
                  languages/messages/MessagesTig.php on lines 1..30
                  languages/messages/MessagesTn.php on lines 1..30
                  languages/messages/MessagesTw.php on lines 1..29

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

                  <?php
                  /** Dagbani (Dagbanli)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesDag.php and 14 other locations - About 3 hrs to fix
                  languages/messages/MessagesAcf.php on lines 1..30
                  languages/messages/MessagesDin.php on lines 1..27
                  languages/messages/MessagesFat.php on lines 1..29
                  languages/messages/MessagesGur.php on lines 1..30
                  languages/messages/MessagesHa.php on lines 1..27
                  languages/messages/MessagesIgl.php on lines 1..30
                  languages/messages/MessagesMos.php on lines 1..30
                  languages/messages/MessagesMrh.php on lines 1..30
                  languages/messages/MessagesPcm.php on lines 1..27
                  languages/messages/MessagesPrg.php on lines 1..29
                  languages/messages/MessagesSyl.php on lines 1..30
                  languages/messages/MessagesTig.php on lines 1..30
                  languages/messages/MessagesTn.php on lines 1..30
                  languages/messages/MessagesTw.php on lines 1..29

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

                  <?php
                  /** West-Vlams (West-Vlams)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesVls.php and 20 other locations - About 3 hrs to fix
                  languages/messages/MessagesAwa.php on lines 1..27
                  languages/messages/MessagesBan.php on lines 1..27
                  languages/messages/MessagesBbc_latn.php on lines 1..29
                  languages/messages/MessagesCsb.php on lines 1..27
                  languages/messages/MessagesDga.php on lines 1..30
                  languages/messages/MessagesDty.php on lines 1..27
                  languages/messages/MessagesGcr.php on lines 1..29
                  languages/messages/MessagesIba.php on lines 1..29
                  languages/messages/MessagesLtg.php on lines 1..32
                  languages/messages/MessagesMad.php on lines 1..27
                  languages/messages/MessagesMai.php on lines 1..44
                  languages/messages/MessagesPms.php on lines 1..39
                  languages/messages/MessagesPwn.php on lines 1..32
                  languages/messages/MessagesRmy.php on lines 1..30
                  languages/messages/MessagesSco.php on lines 1..27
                  languages/messages/MessagesShy_latn.php on lines 1..29
                  languages/messages/MessagesSzy.php on lines 1..31
                  languages/messages/MessagesTcy.php on lines 1..31
                  languages/messages/MessagesTrv.php on lines 1..30
                  languages/messages/MessagesZea.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 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 15 locations. Consider refactoring.
                  Open

                  <?php
                  /** Hausa (Hausa)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesHa.php and 14 other locations - About 3 hrs to fix
                  languages/messages/MessagesAcf.php on lines 1..30
                  languages/messages/MessagesDag.php on lines 1..30
                  languages/messages/MessagesDin.php on lines 1..27
                  languages/messages/MessagesFat.php on lines 1..29
                  languages/messages/MessagesGur.php on lines 1..30
                  languages/messages/MessagesIgl.php on lines 1..30
                  languages/messages/MessagesMos.php on lines 1..30
                  languages/messages/MessagesMrh.php on lines 1..30
                  languages/messages/MessagesPcm.php on lines 1..27
                  languages/messages/MessagesPrg.php on lines 1..29
                  languages/messages/MessagesSyl.php on lines 1..30
                  languages/messages/MessagesTig.php on lines 1..30
                  languages/messages/MessagesTn.php on lines 1..30
                  languages/messages/MessagesTw.php on lines 1..29

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

                  <?php
                  /** Zeeuws (Zeêuws)
                   *
                   * @file
                   * @ingroup Languages
                  Severity: Major
                  Found in languages/messages/MessagesZea.php and 20 other locations - About 3 hrs to fix
                  languages/messages/MessagesAwa.php on lines 1..27
                  languages/messages/MessagesBan.php on lines 1..27
                  languages/messages/MessagesBbc_latn.php on lines 1..29
                  languages/messages/MessagesCsb.php on lines 1..27
                  languages/messages/MessagesDga.php on lines 1..30
                  languages/messages/MessagesDty.php on lines 1..27
                  languages/messages/MessagesGcr.php on lines 1..29
                  languages/messages/MessagesIba.php on lines 1..29
                  languages/messages/MessagesLtg.php on lines 1..32
                  languages/messages/MessagesMad.php on lines 1..27
                  languages/messages/MessagesMai.php on lines 1..44
                  languages/messages/MessagesPms.php on lines 1..39
                  languages/messages/MessagesPwn.php on lines 1..32
                  languages/messages/MessagesRmy.php on lines 1..30
                  languages/messages/MessagesSco.php on lines 1..27
                  languages/messages/MessagesShy_latn.php on lines 1..29
                  languages/messages/MessagesSzy.php on lines 1..31
                  languages/messages/MessagesTcy.php on lines 1..31
                  languages/messages/MessagesTrv.php on lines 1..30
                  languages/messages/MessagesVls.php on lines 1..31

                  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

                  Severity
                  Category
                  Status
                  Source
                  Language