Plateform does not seem to conform to the naming convention (Utils?$).
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.
Loading history...
14
{
15
protected static $pharPath;
16
17
/**
18
* Running from Phar or not?
19
*
20
* @return bool
21
*/
22
public static function isPhar()
23
{
24
if (!empty(\Phar::running())) {
25
self::$pharPath = \Phar::running();
26
27
return true;
28
}
29
30
return false;
31
}
32
33
/**
34
* Returns the full path on disk to the currently executing Phar archive.
35
*/
36
public static function getPharPath()
37
{
38
if (!isset(self::$pharPath)) {
39
self::isPhar();
40
}
41
42
return self::$pharPath;
43
}
44
45
/**
46
* @return bool Whether the host machine is running a Windows OS
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.