CloneSet16


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
78201.000statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
178133
plugins/system/debug.php
27898
plugins/system/debug/debug.php
Clone Instance
1
Line Count
78
Source Line
133
Source File
plugins/system/debug.php

                if ($this->params->get('language_files', 1))
                {
                        echo '<h4>'
                             .      JText::_( 'Language Files Loaded')
                             .                                          '</h4>';
                        echo '<ul>';
                        $extensions=      $lang->getPaths();
                        foreach ( $extensions as $extension => $files)
                        {
                                foreach ( $files as $file => $status)
                                {
                                        echo "<li>$file $status</li>";
                                      }
                              }
                        echo '</ul>';
                      }
                $langStrings=  $this->params->get('language_strings', -1);
                if ($langStrings<  0 or $langStrings == 1) {
                        echo '<h4>'
                             .      JText::_( 'Untranslated Strings Diagnostic')
                             .                                                    '</h4>';
                        echo '<pre>';
                        $orphans=  $lang->getOrphans();
                        if (count( $orphans))
                        {
                                ksort( $orphans, SORT_STRING);
                                foreach ($orphans as $key => $occurance) {
                                        foreach ( $occurance as $i => $info) {
                                                $class=   @$info['class'];
                                                $func=    @$info['function'];
                                                $file=    @$info['file'];
                                                $line=    @$info['line'];
                                                echo strtoupper( $key)
                                                     .                  "\t$class::$func()\t[$file:$line]\n";
                                              }
                                      }
                              }
                        else {
                                echo JText::_( 'None');
                              }
                        echo '</pre>';
                      }
                if ($langStrings<  0 or $langStrings == 2) {
                        echo '<h4>'
                             .      JText::_( 'Untranslated Strings Designer')
                             .                                                  '</h4>';
                        echo '<pre>';
                        $orphans=  $lang->getOrphans();
                        if (count( $orphans))
                        {
                                ksort( $orphans, SORT_STRING);
                                $guesses=  array();
                                foreach ($orphans as $key => $occurance) {
                                        if (is_array( $occurance) and  isset ($occurance[0]))  {
                                                $info=  &$occurance[0];
                                                $file=  @$info['file'];
                                                if (! isset ($guesses[$file])) {
                                                        $guesses[$file]=  array();
                                                      }

                                                $guess=  str_replace( '_', ' ', $info['string']);
                                                if ($strip=  $this->params->get('language_prefix')) {
                                                        $guess=  trim( preg_replace( chr(1)
                                                                                     .      '^'
                                                                                     .          $strip
                                                                                     .                 chr(1), '', $guess));
                                                      }
                                                $guesses[$file][]=  trim( strtoupper( $key))
                                                                    .                          '='
                                                                    .                              $guess;
                                              }
                                      }
                                foreach ($guesses as $file => $keys) {
                                        echo "\n\n# "
                                             .        ($file
                                                       ?       $file
                                                       :               JText::_( 'Unknown file'))
                                             .                                                     "\n\n";
                                        echo implode( "\n", $keys);
                                      }
                              }
                        else {
                                echo JText::_( 'None');
                              }
                        echo '</pre>';
                      }
                echo '</div>';
                $debug=  ob_get_clean();
                $body=  JResponse::getBody();
                $body=  str_replace('</body>', $debug
                                               .      '</body>', $body);
                JResponse::setBody($body);


Clone Instance
2
Line Count
78
Source Line
98
Source File
plugins/system/debug/debug.php

                if ($this->params->get('language_files', 1))
                {
                        echo '<h4>'
                             .      JText::_('Language Files Loaded')
                             .                                        '</h4>';
                        echo '<ul>';
                        $extensions=      $lang->getPaths();
                        foreach ($extensions as $extension => $files)
                        {
                                foreach ($files as $file => $status)
                                {
                                        echo "<li>$file $status</li>";
                                      }
                              }
                        echo '</ul>';
                      }
                $langStrings=  $this->params->get('language_strings', -1);
                if ($langStrings<  0 or $langStrings == 1) {
                        echo '<h4>'
                             .      JText::_('Untranslated Strings Diagnostic')
                             .                                                  '</h4>';
                        echo '<pre>';
                        $orphans=  $lang->getOrphans();
                        if (count($orphans))
                        {
                                ksort($orphans, SORT_STRING);
                                foreach ($orphans as $key => $occurance) {
                                        foreach ($occurance as $i => $info) {
                                                $class=   @$info['class'];
                                                $func=    @$info['function'];
                                                $file=    @$info['file'];
                                                $line=    @$info['line'];
                                                echo strtoupper($key)
                                                     .                "\t$class::$func()\t[$file:$line]\n";
                                              }
                                      }
                              }
                        else {
                                echo JText::_('None');
                              }
                        echo '</pre>';
                      }
                if ($langStrings<  0 or $langStrings == 2) {
                        echo '<h4>'
                             .      JText::_('Untranslated Strings Designer')
                             .                                                '</h4>';
                        echo '<pre>';
                        $orphans=  $lang->getOrphans();
                        if (count($orphans))
                        {
                                ksort($orphans, SORT_STRING);
                                $guesses=  array();
                                foreach ($orphans as $key => $occurance) {
                                        if (is_array($occurance) and isset ($occurance[0])) {
                                                $info=  &$occurance[0];
                                                $file=  @$info['file'];
                                                if (! isset ($guesses[$file])) {
                                                        $guesses[$file]=  array();
                                                      }

                                                $guess=  str_replace('_', ' ', $info['string']);
                                                if ($strip=  $this->params->get('language_prefix')) {
                                                        $guess=  trim(preg_replace(chr(1)
                                                                                   .      '^'
                                                                                   .          $strip
                                                                                   .                 chr(1), '', $guess));
                                                      }
                                                $guesses[$file][]=  trim(strtoupper($key))
                                                                    .                      '='
                                                                    .                          $guess;
                                              }
                                      }
                                foreach ($guesses as $file => $keys) {
                                        echo "\n\n# "
                                             .        ($file
                                                       ?       $file
                                                       :               JText::_('Unknown file'))
                                             .                                                   "\n\n";
                                        echo implode("\n", $keys);
                                      }
                              }
                        else {
                                echo JText::_('None');
                              }
                        echo '</pre>';
                      }
                echo '</div>';
                $debug=  ob_get_clean();
                $body=  JResponse::getBody();
                $body=  str_replace('</body>', $debug
                                               .      '</body>', $body);
                JResponse::setBody($body);


Clone AbstractionParameter Count: 0Parameter Bindings

if ($this->params->get('language_files',1)) {
  echo '<h4>'
       . JText::_('Language Files Loaded')
       . '</h4>';
  echo '<ul>';
  $extensions=$lang->getPaths();
  foreach ($extensions as $extension => $files) {
    foreach ($files as $file => $status) {
      echo "<li>$file $status</li>";
    }
  }
  echo '</ul>';
}
$langStrings=$this->params->get('language_strings',-1);
if ($langStrings<0 or $langStrings == 1) {
  echo '<h4>'
       . JText::_('Untranslated Strings Diagnostic')
       . '</h4>';
  echo '<pre>';
  $orphans=$lang->getOrphans();
  if (count($orphans)) {
    ksort($orphans,SORT_STRING);
    foreach ($orphans as $key => $occurance) {
      foreach ($occurance as $i => $info) {
        $class=@$info['class'];
        $func=@$info['function'];
        $file=@$info['file'];
        $line=@$info['line'];
        echo strtoupper($key)
             . "\t$class::$func()\t[$file:$line]\n";
      }
    }
  }
  else {
    echo JText::_('None');
  }
  echo '</pre>';
}
if ($langStrings<0 or $langStrings == 2) {
  echo '<h4>'
       . JText::_('Untranslated Strings Designer')
       . '</h4>';
  echo '<pre>';
  $orphans=$lang->getOrphans();
  if (count($orphans)) {
    ksort($orphans,SORT_STRING);
    $guesses=array();
    foreach ($orphans as $key => $occurance) {
      if (is_array($occurance) and isset ($occurance[0])) {
        $info= &$occurance[0];
        $file=@$info['file'];
        if (! isset ($guesses[$file])) {
          $guesses[$file]=array();
        }
        $guess=str_replace('_',' ',$info['string']);
        if ($strip=$this->params->get('language_prefix')) {
          $guess=trim(preg_replace(chr(1)
                                   . '^'
                                   . $strip
                                   . chr(1),'',$guess));
        }
        $guesses[$file][]=trim(strtoupper($key))
                          . '='
                          . $guess;
      }
    }
    foreach ($guesses as $file => $keys) {
      echo "\n\n# "
           . ($file
              ? $file
              : JText::_('Unknown file'))
           . "\n\n";
      echo implode("\n",$keys);
    }
  }
  else {
    echo JText::_('None');
  }
  echo '</pre>';
}
echo '</div>';
$debug=ob_get_clean();
$body=JResponse::getBody();
$body=str_replace('</body>',$debug
                            . '</body>',$body);
JResponse::setBody($body);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None