mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47: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' : '';
|
||||
|
||||
if($this->sublime){
|
||||
$output .= "\t\t\$$rootParam = new $root();\r\n";
|
||||
$output .= "\t\t$return \$$rootParam->";
|
||||
$output .= "\t\t$return $root->";
|
||||
}else{
|
||||
$output .= "\t\t$return static::\$$rootParam->";
|
||||
}
|
||||
|
||||
|
||||
$output .= $method->name."(".implode($params, ", ").");\r\n";
|
||||
$output .= "\t }\n\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user