| Total Complexity | 8 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class Launcher |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Open a resource on your operating system. |
||
| 20 | * |
||
| 21 | * @param string ...$resources |
||
| 22 | * The resource. (URL, filepath, etc etc) |
||
| 23 | * |
||
| 24 | * @throws Exception |
||
| 25 | */ |
||
| 26 | public static function open(string ...$resources): void |
||
| 40 | } |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get the command to run. |
||
| 46 | * |
||
| 47 | * @throws Exception |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | private static function getCommand(): string |
||
| 75 |