Simplify sublime output

This commit is contained in:
Barry vd. Heuvel
2013-06-06 13:19:15 +02:00
parent ec302acc3f
commit 2ee05260d5
@@ -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";