| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class Installer |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @psalm-suppress UndefinedClass |
||
| 16 | */ |
||
| 17 | public static function postUpdate(Event $event = null): void |
||
|
|
|||
| 18 | { |
||
| 19 | self::copyEnvFile(); |
||
| 20 | self::chmodRecursive('runtime', 0777); |
||
| 21 | self::chmodRecursive('public/assets', 0777); |
||
| 22 | } |
||
| 23 | |||
| 24 | private static function chmodRecursive(string $path, int $mode): void |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | public static function copyEnvFile(): void |
||
| 43 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.