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