| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function execute(ManagerInterface $manager, Import $import) |
||
|
|
|||
| 53 | { |
||
| 54 | $configuration = $import->getStrategy() |
||
| 55 | ->getConfiguration(); |
||
| 56 | if (isset($configuration['after']['rename'])) { |
||
| 57 | $oldFileName = $this->fileService->getFileAbsFileName($import->getFilepath()); |
||
| 58 | $info = \pathinfo($oldFileName); |
||
| 59 | $newFileName = $info['dirname'] . DIRECTORY_SEPARATOR . \date('YmdHis') . '_' . $info['basename']; |
||
| 60 | \rename($oldFileName, $newFileName); |
||
| 61 | } |
||
| 62 | } |
||
| 63 | } |
||
| 64 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.