| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | protected function copiaManuale() |
||
| 27 | { |
||
| 28 | $filesystem = $this->getContainer()->get('filesystem'); |
||
| 29 | |||
| 30 | $projectDir = $this->getContainer()->get('kernel')->getRootDir() .DIRECTORY_SEPARATOR . '..' ; |
||
| 31 | $originDir = $projectDir . '/doc/manuale'; |
||
|
|
|||
| 32 | $targetDir = $projectDir . '/public'; |
||
| 33 | |||
| 34 | $filesystem->mkdir($targetDir, 0777); |
||
| 35 | // // We use a custom iterator to ignore VCS files |
||
| 36 | $filesystem->mirror($originDir, $targetDir, Finder::create()->name('manuale.pdf')->in($originDir)); |
||
| 37 | } |
||
| 39 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.