| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public static function get() |
||
| 11 | { |
||
| 12 | $files = collect(File::glob(resource_path('lang/*_panel.json'))); |
||
| 13 | |||
| 14 | return $files->mapWithKeys(function ($file, $key){ |
||
|
|
|||
| 15 | preg_match('/(\w+)_panel\.json/i', $file, $m); |
||
| 16 | $key = "$m[1]_panel"; |
||
| 17 | $value = Str::upper($m[1]); |
||
| 18 | return [$key => $value]; |
||
| 19 | })->toArray(); |
||
| 20 | } |
||
| 22 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.