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