mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Simplify sublime output
This commit is contained in:
@@ -358,11 +358,12 @@ namespace {\n\tdie('Only to be used as an helper for your IDE');\n}\n\n";
|
|||||||
$return = ($returnValue && $returnValue !== "void" && $method->name !== "__construct") ? 'return' : '';
|
$return = ($returnValue && $returnValue !== "void" && $method->name !== "__construct") ? 'return' : '';
|
||||||
|
|
||||||
if($this->sublime){
|
if($this->sublime){
|
||||||
$output .= "\t\t\$$rootParam = new $root();\r\n";
|
$output .= "\t\t$return $root->";
|
||||||
$output .= "\t\t$return \$$rootParam->";
|
|
||||||
}else{
|
}else{
|
||||||
$output .= "\t\t$return static::\$$rootParam->";
|
$output .= "\t\t$return static::\$$rootParam->";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$output .= $method->name."(".implode($params, ", ").");\r\n";
|
$output .= $method->name."(".implode($params, ", ").");\r\n";
|
||||||
$output .= "\t }\n\n";
|
$output .= "\t }\n\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user