1 | <?php |
||
14 | class Localization |
||
15 | { |
||
16 | /** |
||
17 | * Handle an incoming request. |
||
18 | * |
||
19 | * @param \Illuminate\Http\Request $request |
||
20 | * @param \Closure $next |
||
21 | * |
||
22 | * @return mixed |
||
23 | */ |
||
24 | public function handle($request, Closure $next) |
||
41 | |||
42 | /** |
||
43 | * @param $lang |
||
44 | * |
||
45 | * @return string|Exception |
||
46 | */ |
||
47 | private function validateLanguage($lang) |
||
57 | |||
58 | /** |
||
59 | * @param $request |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | private function findLanguage($request) |
||
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | private function getSupportedLanguages() |
||
76 | |||
77 | } |
||
78 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.