Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
52 | 1 | public function execute(ManagerInterface $manager, Import $import) |
|
|
|||
53 | { |
||
54 | 1 | $configuration = $import->getStrategy() |
|
55 | 1 | ->getConfiguration(); |
|
56 | 1 | if (isset($configuration['after']['rename'])) { |
|
57 | 1 | $oldFileName = $this->fileService->getFileAbsFileName($import->getFilepath()); |
|
58 | 1 | $info = \pathinfo($oldFileName); |
|
59 | 1 | $newFileName = $info['dirname'] . DIRECTORY_SEPARATOR . \date('YmdHis') . '_' . $info['basename']; |
|
60 | 1 | \rename($oldFileName, $newFileName); |
|
61 | } |
||
62 | 1 | } |
|
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.