CloneSet371


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20201.000toplevel_statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12015
administrator/modules/mod_feed/mod_feed.php
22016
modules/mod_feed/mod_feed.php
Clone Instance
1
Line Count
20
Source Line
15
Source File
administrator/modules/mod_feed/mod_feed.php

$rssurl=  $params->get('rssurl', '');
$rssrtl=  $params->get('rssrtl', 0);

//check if cache diretory is writable as cache files will be created for the feed
$cacheDir=  JPATH_BASE
            .          DS
            .             'cache';
if (!is_writable($cacheDir))
{
        echo '<div>';
        echo JText::_('Please make cache directory writable.');
        echo '</div>';
        return;
      }
//check if feed URL has been set
if (empty( $rssurl))
{
        echo '<div>';
        echo JText::_('No feed URL specified.');
        echo '</div>';
        return;
      }


Clone Instance
2
Line Count
20
Source Line
16
Source File
modules/mod_feed/mod_feed.php

$rssurl=  $params->get('rssurl', '');
$rssrtl=  $params->get('rssrtl', 0);

//check if cache diretory is writable as cache files will be created for the feed
$cacheDir=  JPATH_BASE
            .          DS
            .             'cache';
if (!is_writable($cacheDir))
{
        echo '<div>';
        echo JText::_('Please make cache directory writable.');
        echo '</div>';
        return;
      }
//check if feed URL has been set
if (empty( $rssurl))
{
        echo '<div>';
        echo JText::_('No feed URL specified.');
        echo '</div>';
        return;
      }


Clone AbstractionParameter Count: 0Parameter Bindings

$rssurl=$params->get('rssurl','');
$rssrtl=$params->get('rssrtl',0);
//check if cache diretory is writable as cache files will be created for the feed
$cacheDir=JPATH_BASE
          . DS
          . 'cache';
if (!is_writable($cacheDir)) {
  echo '<div>';
  echo JText::_('Please make cache directory writable.');
  echo '</div>';
  return;
}
//check if feed URL has been set
if (empty($rssurl)) {
  echo '<div>';
  echo JText::_('No feed URL specified.');
  echo '</div>';
  return;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None