Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 5 | 4 | 0.972 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 389 | libraries/joomla/client/ftp.php |
2 | 3 | 417 | libraries/joomla/client/ftp.php |
3 | 3 | 484 | libraries/joomla/client/ftp.php |
4 | 3 | 1452 | libraries/joomla/client/ftp.php |
5 | 3 | 1457 | libraries/joomla/client/ftp.php |
| ||||
// Send print working directory command and verify success if (!$this->_putCmd('PWD', 257)) { JError::raiseWarning('35', 'JFTP::pwd: Bad response', 'Server response: ' . $this->_response . ' [Expected: 257]'); return FALSE; } |
| ||||
// Send print working directory command and verify success if (!$this->_putCmd('SYST', 215)) { JError::raiseWarning('35', 'JFTP::syst: Bad response', 'Server response: ' . $this->_response . ' [Expected: 215]'); return FALSE; } |
| ||||
// Send reinitialize command to the server if (!$this->_putCmd('REIN', 220)) { JError::raiseWarning('35', 'JFTP::reinit: Bad response', 'Server response: ' . $this->_response . ' [Expected: 220]'); return FALSE; } |
| ||||
if (!$this->_putCmd("TYPE I", 200)) { JError::raiseWarning('35', 'JFTP::_mode: Bad response', 'Server response: ' . $this->_response . ' [Expected: 200] Mode sent: Binary'); return FALSE; } |
| ||||
if (!$this->_putCmd("TYPE A", 200)) { JError::raiseWarning('35', 'JFTP::_mode: Bad response', 'Server response: ' . $this->_response . ' [Expected: 200] Mode sent: Ascii'); return FALSE; } |
| |||
// Send reinitialize command to the server // Send print working directory command and verify success if (!$this->_putCmd( [[#variable52dac5c0]], [[#variable52dac520]])) { JError::raiseWarning('35', [[#variable52dac480]],'Server response: ' . $this->_response . [[#variable52dac500]]); return FALSE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52dac5c0]] | "TYPE A" |
1 | 2 | [[#52dac5c0]] | "TYPE I" |
1 | 3 | [[#52dac5c0]] | 'REIN' |
1 | 4 | [[#52dac5c0]] | 'SYST' |
1 | 5 | [[#52dac5c0]] | 'PWD' |
2 | 1 | [[#52dac520]] | 200 |
2 | 2 | [[#52dac520]] | 200 |
2 | 3 | [[#52dac520]] | 220 |
2 | 4 | [[#52dac520]] | 215 |
2 | 5 | [[#52dac520]] | 257 |
3 | 1 | [[#52dac480]] | 'JFTP::_mode: Bad response' |
3 | 2 | [[#52dac480]] | 'JFTP::_mode: Bad response' |
3 | 3 | [[#52dac480]] | 'JFTP::reinit: Bad response' |
3 | 4 | [[#52dac480]] | 'JFTP::syst: Bad response' |
3 | 5 | [[#52dac480]] | 'JFTP::pwd: Bad response' |
4 | 1 | [[#52dac500]] | ' [Expected: 200] Mode sent: Ascii' |
4 | 2 | [[#52dac500]] | ' [Expected: 200] Mode sent: Binary' |
4 | 3 | [[#52dac500]] | ' [Expected: 220]' |
4 | 4 | [[#52dac500]] | ' [Expected: 215]' |
4 | 5 | [[#52dac500]] | ' [Expected: 257]' |