cleaning up code.

This commit is contained in:
Taylor Otwell 2012-02-21 10:51:31 -06:00
parent 353c7c527f
commit ca40180b54
1 changed files with 1 additions and 2 deletions

View File

@ -95,8 +95,7 @@ protected function path($view)
// Views may have the normal PHP extension or the Blade PHP extension, so // Views may have the normal PHP extension or the Blade PHP extension, so
// we need to check if either of them exist in the base views directory // we need to check if either of them exist in the base views directory
// for the bundle. We'll check for the PHP extension first since that // for the bundle and return the first one we find.
// is probably the more common of the two.
foreach (array(EXT, BLADE_EXT) as $extension) foreach (array(EXT, BLADE_EXT) as $extension)
{ {
if (file_exists($path = $root.Bundle::element($view).$extension)) if (file_exists($path = $root.Bundle::element($view).$extension))