| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 78 | 2 | 0 | 1.000 | statement_sequence[9] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 78 | 133 | plugins/system/debug.php |
| 2 | 78 | 98 | 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);
|
| ||||
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);
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||