Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Commit c3a756f

Browse files
committed
💄
1 parent 206c158 commit c3a756f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Generator.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ private function allocateLocaleArray($path)
4747
continue;
4848
}
4949

50-
// Check if the "file" is a subdirectory which has to be scanned.
5150
if ($fileinfo->isDir()) {
52-
// Recursivley iterate through subdirs, until everything was allocated.
51+
// Recursivley iterate through subdirs, until everything is allocated.
5352
$data[$fileinfo->getFilename()] =
5453
$this->allocateLocaleArray($path . '/' . $fileinfo->getFilename());
5554
} else {
@@ -73,6 +72,10 @@ private function allocateLocaleArray($path)
7372
return $data;
7473
}
7574

75+
/**
76+
* @param array $arr
77+
* @return array
78+
*/
7679
private function adjustArray(array $arr)
7780
{
7881
$res = [];
@@ -109,6 +112,7 @@ function ($matches) {
109112
}
110113

111114
/**
115+
* Returns filename, with extension stripped
112116
* @param string $filename
113117
* @return string
114118
*/

0 commit comments

Comments
 (0)