@@ 286-297 (lines=12) @@ | ||
283 | return CLI::error('No generator collections found.'); |
|
284 | } |
|
285 | ||
286 | foreach ($collections as $alias => $path) |
|
287 | { |
|
288 | $path = rtrim($path, '/ ') .'/'; |
|
289 | $folders = scandir($path); |
|
290 | ||
291 | if (! $i = array_search(ucfirst($name), $folders)) |
|
292 | { |
|
293 | continue; |
|
294 | } |
|
295 | ||
296 | return $path . $folders[$i] .'/'; |
|
297 | } |
|
298 | ||
299 | return null; |
|
300 | } |
@@ 560-573 (lines=14) @@ | ||
557 | return CLI::error( lang('forge.no_collections') ); |
|
558 | } |
|
559 | ||
560 | foreach ($collections as $alias => $path) |
|
561 | { |
|
562 | $path = rtrim($path, '/ ') .'/'; |
|
563 | $folders = scandir($path); |
|
564 | ||
565 | if (! $i = array_search(ucfirst($name), $folders)) |
|
566 | { |
|
567 | continue; |
|
568 | } |
|
569 | ||
570 | $this->gen_path = $path . $folders[$i] .'/'; |
|
571 | ||
572 | return $this->gen_path; |
|
573 | } |
|
574 | ||
575 | return null; |
|
576 | } |