Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 15 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
13 | protected function configure() |
||
14 | { |
||
15 | $this |
||
16 | ->setName('sf2h:sftp:sendTo') |
||
17 | ->setDefinition(array( |
||
18 | new InputArgument('localFile', InputArgument::REQUIRED, 'Full path to local file'), |
||
19 | new InputArgument('remoteFile', InputArgument::REQUIRED, 'Full path to remote file') |
||
20 | )) |
||
21 | ->setDescription('Send file to remote SFTP server from local machine') |
||
22 | ->setHelp(" |
||
23 | The <info>./app/console sftp:send</info> command copies file to remote SFTP server from your local machine by specified path: |
||
24 | Command example: |
||
25 | <info>./app/console sftp:send /path/to/localFile.txt /path/to/remoteFile.txt</info> |
||
26 | "); |
||
27 | } |
||
28 | |||
46 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.