Changeset View
Changeset View
Standalone View
Standalone View
src/parser/xhpast/bin/PhutilXHPASTBinary.php
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | final class PhutilXHPASTBinary extends Phobject { | ||||
/** | /** | ||||
* Returns the path to the XHPAST binary. | * Returns the path to the XHPAST binary. | ||||
* | * | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
public static function getPath() { | public static function getPath() { | ||||
if (phutil_is_windows()) { | if (phutil_is_windows()) { | ||||
return dirname(__FILE__).'\\xhpast.exe'; | return __DIR__.'\\xhpast.exe'; | ||||
} | } | ||||
return dirname(__FILE__).'/xhpast'; | return __DIR__.'/xhpast'; | ||||
} | } | ||||
/** | /** | ||||
* Returns the XHPAST version. | * Returns the XHPAST version. | ||||
* | * | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
public static function getVersion() { | public static function getVersion() { | ||||
Show All 24 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0