1 | <?php |
||
13 | class Plateform |
||
|
|||
14 | { |
||
15 | protected static $pharPath; |
||
16 | |||
17 | /** |
||
18 | * Running from Phar or not? |
||
19 | * |
||
20 | * @return bool |
||
21 | */ |
||
22 | public static function isPhar() |
||
32 | |||
33 | /** |
||
34 | * Returns the full path on disk to the currently executing Phar archive. |
||
35 | */ |
||
36 | public static function getPharPath() |
||
44 | |||
45 | /** |
||
46 | * @return bool Whether the host machine is running a Windows OS |
||
47 | */ |
||
48 | public static function isWindows() |
||
52 | |||
53 | /** |
||
54 | * Opens a URL in the system default browser. |
||
55 | * |
||
56 | * @param string $url |
||
57 | */ |
||
58 | public static function openBrowser($url) |
||
72 | } |
||
73 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.