Skip to content

Commit

Permalink
Only iterate through files that contain a namespace. (#13961)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored and taylorotwell committed Jun 13, 2016
1 parent 14c808d commit aabf4f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Foundation/Console/AppNameCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ protected function setAppDirectoryNamespace()
{
$files = Finder::create()
->in($this->laravel['path'])
->contains($this->currentRoot)
->name('*.php');

foreach ($files as $file) {
Expand Down

0 comments on commit aabf4f5

Please sign in to comment.