Skip to content

Commit

Permalink
Merge pull request barryvdh#410 from sebdesign/patch-1
Browse files Browse the repository at this point in the history
Type-hint appropriate arguments
  • Loading branch information
barryvdh committed Oct 26, 2015
2 parents 23672cb + 3ff50bd commit 3cc1de3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public function getJavascriptRenderer($baseUrl = null, $basePath = null)
* @param \Symfony\Component\HttpFoundation\Response $response
* @return \Symfony\Component\HttpFoundation\Response
*/
public function modifyResponse($request, $response)
public function modifyResponse(Request $request, Response $response)
{
$app = $this->app;
if ($app->runningInConsole() || !$this->isEnabled() || $this->isDebugbarRequest()) {
Expand Down Expand Up @@ -593,7 +593,7 @@ protected function isDebugbarRequest()
* @param \Symfony\Component\HttpFoundation\Request $request
* @return bool
*/
protected function isJsonRequest($request)
protected function isJsonRequest(Request $request)
{
// If XmlHttpRequest, return true
if ($request->isXmlHttpRequest()) {
Expand Down Expand Up @@ -841,7 +841,7 @@ protected function selectStorage(DebugBar $debugbar)
}
}

protected function addClockworkHeaders($response)
protected function addClockworkHeaders(Response $response)
{
$prefix = $this->app['config']->get('debugbar.route_prefix');
$response->headers->set('X-Clockwork-Id', $this->getCurrentRequestId(), true);
Expand Down

0 comments on commit 3cc1de3

Please sign in to comment.