private function tasks($extensive) { $header = "\nAvailable tasks:\n---------------\n\n"; $tasks = SourceTasks::show(); $content = $extensive ? self::checks_extensive($this->color, $tasks) : self::checks_brief($this->color, $tasks); return $header . $content; }
public static function show() { try { $return = Tasks::show(); } catch (Exception $e) { throw new RpcException($e->getMessage(), -31001); } return $return; }