Fixing typos

This commit is contained in:
Pavel Shevaev 2022-06-06 18:42:26 +03:00
parent a75d24aeb0
commit 7806a44238
1 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class TaskmanTask
function __construct(\Closure $func, $name, $props = array())
{
$refl = new ReflectionFunction($func);
$refl = new \ReflectionFunction($func);
$this->file = $refl->getFileName();
$this->line = $refl->getStartLine();
@ -476,6 +476,7 @@ function _get_hints($task)
return $found;
}
//e.g: run,build,zip
function _parse_taskstr($str)
{
$task_spec = array();
@ -604,7 +605,7 @@ function main($argv = array(), $help_func = null, $proc_argv = true)
if(sizeof($argv) > 0)
{
$task_str = array_shift($argv);
$tasks = _taskman_parse_taskstr($task_str);
$tasks = _parse_taskstr($task_str);
if(count($tasks) == 1 && !_isset_task($tasks[0]))
{