Commit ca40180b authored by Taylor Otwell's avatar Taylor Otwell

cleaning up code.

parent 353c7c52
...@@ -95,8 +95,7 @@ class View implements ArrayAccess { ...@@ -95,8 +95,7 @@ class View implements ArrayAccess {
// 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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment