| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public static function installSwaggerUi(Event $event) |
||
|
|
|||
| 29 | { |
||
| 30 | $fs = new Filesystem(); |
||
| 31 | $finder = new Finder(); |
||
| 32 | $cwd = getcwd(); |
||
| 33 | |||
| 34 | foreach ($finder->in($cwd.self::SOURCE) as $file) { |
||
| 35 | $destination = $cwd.self::DESTINATION.'/'.$file->getRelativePathname(); |
||
| 36 | if ($file->isDir()) { |
||
| 37 | $fs->mkdir($destination); |
||
| 38 | continue; |
||
| 39 | } |
||
| 40 | |||
| 41 | $fs->copy($file->getRealPath(), $destination, true); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.