| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 9 | 3 | 4 | 0.984 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 9 | 678 | libraries/joomla/client/ftp.php |
| 2 | 9 | 740 | libraries/joomla/client/ftp.php |
| 3 | 9 | 811 | libraries/joomla/client/ftp.php |
| ||||
// Start passive mode
if (!$this->_passive()) {
JError::raiseWarning('36', 'JFTP::create: Unable to use passive mode');
return FALSE;
}
if (!$this->_putCmd('STOR '
. $path, array( 150, 125
))) {
@ fclose($this->_dataconn);
JError::raiseWarning('35', 'JFTP::create: Bad response', 'Server response: '
. $this->_response
. ' [Expected: 150 or 125] Path sent: '
. $path);
return FALSE;
}
|
| ||||
// Start passive mode
if (!$this->_passive()) {
JError::raiseWarning('36', 'JFTP::read: Unable to use passive mode');
return FALSE;
}
if (!$this->_putCmd('RETR '
. $remote, array( 150, 125
))) {
@ fclose($this->_dataconn);
JError::raiseWarning('35', 'JFTP::read: Bad response', 'Server response: '
. $this->_response
. ' [Expected: 150 or 125] Path sent: '
. $remote);
return FALSE;
}
|
| ||||
// Start passive mode
if (!$this->_passive()) {
JError::raiseWarning('36', 'JFTP::get: Unable to use passive mode');
return FALSE;
}
if (!$this->_putCmd('RETR '
. $remote, array( 150, 125
))) {
@ fclose($this->_dataconn);
JError::raiseWarning('35', 'JFTP::get: Bad response', 'Server response: '
. $this->_response
. ' [Expected: 150 or 125] Path sent: '
. $remote);
return FALSE;
}
|
| |||
// Start passive mode
if (!$this->_passive()) {
JError::raiseWarning('36', [[#variable40da14e0]]);
return FALSE;
}
if (!$this->_putCmd( [[#variable40da1340]]
. [[#variable40da12a0]],array( 150,
125
))) {
@fclose($this->_dataconn);
JError::raiseWarning('35', [[#variable4879fdc0]],'Server response: '
. $this->_response
. ' [Expected: 150 or 125] Path sent: '
. [[#variable40da12a0]]);
return FALSE;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#40da14e0]] | 'JFTP::read: Unable to use passive mode' |
| 1 | 2 | [[#40da14e0]] | 'JFTP::get: Unable to use passive mode' |
| 1 | 3 | [[#40da14e0]] | 'JFTP::create: Unable to use passive mode' |
| 2 | 1 | [[#40da1340]] | 'RETR ' |
| 2 | 2 | [[#40da1340]] | 'RETR ' |
| 2 | 3 | [[#40da1340]] | 'STOR ' |
| 3 | 1 | [[#40da12a0]] | $remote |
| 3 | 2 | [[#40da12a0]] | $remote |
| 3 | 3 | [[#40da12a0]] | $path |
| 4 | 1 | [[#4879fdc0]] | 'JFTP::read: Bad response' |
| 4 | 2 | [[#4879fdc0]] | 'JFTP::get: Bad response' |
| 4 | 3 | [[#4879fdc0]] | 'JFTP::create: Bad response' |