Showing 2 of 2 total issues
Method show
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show($view, Request $request)
{
if (!PreviewServiceProvider::isEnabled()) {
abort(404);
}
Avoid deeply nested control flow statements. Open
Open
if (is_callable([$class, $method])) {
$object = new $class();
if (is_callable([$object, $method])) {
$value = call_user_func_array([$object, $method], $params);
}