data; $content = [ 'text' => '

' . strval(trans('firefly.route_has_no_help')) . '

', 'title' => 'Help', ]; if (!$help->hasRoute($route)) { Log::error('No such route: ' . $route); return Response::json($content); } if ($help->inCache($route)) { $content = [ 'text' => $help->getFromCache('help.' . $route . '.text.' . $language), 'title' => $help->getFromCache('help.' . $route . '.title.' . $language), ]; return Response::json($content); } Log::debug('Will get help from Github for language "' . $language . '" and route "' . $route . '".'); $content = $help->getFromGithub($language, $route); $help->putInCache($route, $language, $content); return Response::json($content); } }