Completed
Push — master ( dbd801...d0a1e5 )
by recca
02:19
created

src/Events/BeforeBarRender.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Recca0120\LaravelTracy\Events;
4
5
use Illuminate\Http\Request;
6
use Symfony\Component\HttpFoundation\Response;
7
8
class BeforeBarRender
9
{
10
    /**
11
     * The request instance.
12
     *
13
     * @var \Illuminate\Http\Request
14
     */
15
    public $request;
16
17
    /**
18
     * The response instance.
19
     *
20
     * @var \Symfony\Component\HttpFoundation\Response
21
     */
22
    public $response;
23
24
    /**
25
     * Create a new event instance.
26
     *
27
     * @param \Illuminate\Http\Request $request
28
     * @param \Symfony\Component\HttpFoundation\Response $response
29
     */
30 5
    public function __construct(Request $request, Response $response)
0 ignored issues
show
You have injected the Request via parameter $request. This is generally not recommended as there might be multiple instances during a request cycle (f.e. when using sub-requests). Instead, it is recommended to inject the RequestStack and retrieve the current request each time you need it via getCurrentRequest().
Loading history...
31
    {
32 5
        $this->request = $request;
33 5
        $this->response = $response;
34 5
    }
35
}
36