Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 24, 2017
1 parent 2f24829 commit 7073457
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Illuminate/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,13 @@ public function glob($pattern, $flags = 0)
* Get an array of all files in a directory.
*
* @param string $directory
* @param bool $ignoreDotFiles
* @param bool $hidden
* @return array
*/
public function files($directory, $ignoreDotFiles = false)
public function files($directory, $hidden = false)
{
return iterator_to_array(
Finder::create()->files()->ignoreDotFiles(! $ignoreDotFiles)->in($directory)->depth(0),
Finder::create()->files()->ignoreDotFiles(! $hidden)->in($directory)->depth(0),
false
);
}
Expand All @@ -385,13 +385,13 @@ public function files($directory, $ignoreDotFiles = false)
* Get all of the files from the given directory (recursive).
*
* @param string $directory
* @param bool $ignoreDotFiles
* @param bool $hidden
* @return array
*/
public function allFiles($directory, $ignoreDotFiles = false)
public function allFiles($directory, $hidden = false)
{
return iterator_to_array(
Finder::create()->files()->ignoreDotFiles(! $ignoreDotFiles)->in($directory),
Finder::create()->files()->ignoreDotFiles(! $hidden)->in($directory),
false
);
}
Expand Down

0 comments on commit 7073457

Please sign in to comment.