mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16f77638f1 | ||
|
|
348ecb361c |
@@ -193,23 +193,25 @@ class GeneratorCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($output as $ns => $body){
|
|
||||||
if ($ns == '__root') $ns = '';
|
|
||||||
$outputString .= "namespace $ns{\n";
|
|
||||||
$outputString .= $body;
|
|
||||||
$outputString .= "}\n\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
//Include the helper file, if requested
|
//Include the helper file, if requested
|
||||||
if(!empty($this->helpers)){
|
if(!empty($this->helpers)){
|
||||||
foreach($this->helpers as $helper){
|
foreach($this->helpers as $helper){
|
||||||
if (file_exists($helper)){
|
if (file_exists($helper)){
|
||||||
$output .= str_replace(array('<?php', '?>'), '', \File::get($helper));
|
$output['__root'] .= str_replace(array('<?php', '?>'), '', \File::get($helper));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach ($output as $ns => $body){
|
||||||
|
if ($ns == '__root'){
|
||||||
|
$ns = '';
|
||||||
|
}
|
||||||
|
$outputString .= "namespace $ns{\n";
|
||||||
|
$outputString .= $body;
|
||||||
|
$outputString .= "}\n\n";
|
||||||
|
}
|
||||||
|
|
||||||
return $outputString;
|
return $outputString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user