Skip to content

Commit

Permalink
Counter::getFileInfo() -> Counter::getFolderInfo()
Browse files Browse the repository at this point in the history
  • Loading branch information
NhanAZ committed Aug 17, 2023
1 parent 7d98e8e commit 36e0174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NhanAZ/libBedrock/Counter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
class Counter {

/**
* Get file information for all files in a directory with a given extension.
* Get folder information for all files in a directory with a given extension.
*
* @param string $dir The directory to scan.
* @param string $extension The file extension to filter by.
* @return array{"totalFiles": int, "totalLines": int, "totalWords": int, "totalChars": int} An array of file information.
*/
public static function getFileInfo(string $dir, string $extension) : array {
public static function getFolderInfo(string $dir, string $extension) : array {
$files = new \RecursiveIteratorIterator(
iterator: new \RecursiveDirectoryIterator($dir),
mode: \RecursiveIteratorIterator::CHILD_FIRST
Expand Down

0 comments on commit 36e0174

Please sign in to comment.