CloneSet202


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14360.959statement_block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11455
administrator/components/com_media/controllers/file.php
21472
administrator/components/com_media/controllers/file.php
31489
administrator/components/com_media/controllers/file.php
Clone Instance
1
Line Count
14
Source Line
55
Source File
administrator/components/com_media/controllers/file.php

                                                                  {
                                if ($format == 'json') {
                                        jimport('joomla.error.log');
                                        $log=  &JLog::getInstance('upload.error.php');
                                        $log->addEntry(array('comment' => 'Invalid: '
                                                                          .           $filepath
                                                                          .                     ': '
                                                                          .                          $err));
                                        header('HTTP/1.0 415 Unsupported Media Type');
                                        jexit('Error. Unsupported Media Type!');
                                      }
                                else   {
                                        JError::raiseNotice(100, JText::_($err));
                                        // REDIRECT
                                        if ($return) {
                                                $mainframe->redirect(base64_decode($return)
                                                                     .                      '&folder='
                                                                     .                                 $folder);
                                              }
                                        return;
                                      }
                              }


Clone Instance
2
Line Count
14
Source Line
72
Source File
administrator/components/com_media/controllers/file.php

                                                      {
                                if ($format == 'json') {
                                        jimport('joomla.error.log');
                                        $log=  &JLog::getInstance('upload.error.php');
                                        $log->addEntry(array('comment' => 'File already exists: '
                                                                          .                       $filepath));
                                        header('HTTP/1.0 409 Conflict');
                                        jexit('Error. File already exists');
                                      }
                                else   {
                                        JError::raiseNotice(100, JText::_('Error. File already exists'));
                                        // REDIRECT
                                        if ($return) {
                                                $mainframe->redirect(base64_decode($return)
                                                                     .                      '&folder='
                                                                     .                                 $folder);
                                              }
                                        return;
                                      }
                              }


Clone Instance
3
Line Count
14
Source Line
89
Source File
administrator/components/com_media/controllers/file.php

                                                                          {
                                if ($format == 'json') {
                                        jimport('joomla.error.log');
                                        $log=  &JLog::getInstance('upload.error.php');
                                        $log->addEntry(array('comment' => 'Cannot upload: '
                                                                          .                 $filepath));
                                        header('HTTP/1.0 400 Bad Request');
                                        jexit('Error. Unable to upload file');
                                      }
                                else   {
                                        JError::raiseWarning(100, JText::_('Error. Unable to upload file'));
                                        // REDIRECT
                                        if ($return) {
                                                $mainframe->redirect(base64_decode($return)
                                                                     .                      '&folder='
                                                                     .                                 $folder);
                                              }
                                        return;
                                      }
                              }


Clone AbstractionParameter Count: 6Parameter Bindings

{
  if ($format == 'json') {
    jimport('joomla.error.log');
    $log= &JLog::getInstance('upload.error.php');
    $log->addEntry(array('comment' => [[#variable3f744c20]]
                                     .  [[#variable3f744b80]]));
    header( [[#variable3f744ac0]]);
    jexit( [[#variable3f744a80]]);
  }
  else {
    JError:: [[#variable3f7445e0]](100,JText::_( [[#variable3f744a60]]));
    // REDIRECT
    if ($return) {
      $mainframe->redirect(base64_decode($return)
                           . '&folder='
                           . $folder);
    }
    return;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3f744c20]]
'Invalid: '
. $filepath
. ': ' 
12[[#3f744c20]]
'File already exists: ' 
13[[#3f744c20]]
'Cannot upload: ' 
21[[#3f744b80]]
$err 
22[[#3f744b80]]
$filepath 
23[[#3f744b80]]
$filepath 
31[[#3f744ac0]]
'HTTP/1.0 415 Unsupported Media Type' 
32[[#3f744ac0]]
'HTTP/1.0 409 Conflict' 
33[[#3f744ac0]]
'HTTP/1.0 400 Bad Request' 
41[[#3f744a80]]
'Error. Unsupported Media Type!' 
42[[#3f744a80]]
'Error. File already exists' 
43[[#3f744a80]]
'Error. Unable to upload file' 
51[[#3f7445e0]]
raiseNotice 
52[[#3f7445e0]]
raiseNotice 
53[[#3f7445e0]]
raiseWarning 
61[[#3f744a60]]
$err 
62[[#3f744a60]]
'Error. File already exists' 
63[[#3f744a60]]
'Error. Unable to upload file'