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