@@ -109,8 +109,8 @@ discard block |
||
| 109 | 109 | * Load all directory file translation (multiple group) into translations collection. |
| 110 | 110 | * |
| 111 | 111 | * @param $directory |
| 112 | - * @param $locale |
|
| 113 | - * @param $namespace |
|
| 112 | + * @param string $locale |
|
| 113 | + * @param null|string $namespace |
|
| 114 | 114 | */ |
| 115 | 115 | private function loadTranslationsInDirectory($directory, $locale, $namespace) |
| 116 | 116 | { |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | * Return relative path of language file. |
| 180 | 180 | * |
| 181 | 181 | * @param $file |
| 182 | - * @return mixed |
|
| 182 | + * @return string |
|
| 183 | 183 | */ |
| 184 | 184 | private function sourceFile($file) |
| 185 | 185 | { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | /** |
| 190 | 190 | * Return relative path related to base_path(). |
| 191 | 191 | * |
| 192 | - * @param $path |
|
| 192 | + * @param string $path |
|
| 193 | 193 | * @return string |
| 194 | 194 | */ |
| 195 | 195 | private function toRelative($path) |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Filesystem\Filesystem; |
| 6 | 6 | use Illuminate\Foundation\Application; |
| 7 | -use Illuminate\Support\Collection; |
|
| 8 | 7 | use Illuminate\Support\Arr; |
| 8 | +use Illuminate\Support\Collection; |
|
| 9 | 9 | |
| 10 | 10 | class Reader |
| 11 | 11 | { |