| 1 | <?php |
||
| 8 | class RemoveChartsFromHttp2ServerPush |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Handle an incoming request. |
||
| 12 | * |
||
| 13 | * @param \Illuminate\Http\Request $request |
||
| 14 | * @param \Closure $next |
||
| 15 | * @return mixed |
||
| 16 | */ |
||
| 17 | public function handle($request, Closure $next) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param Request $request |
||
| 32 | * |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | protected function shouldUseServerPush(Request $request) : bool |
||
| 39 | } |
||
| 40 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: