{"action":"opened","issue":{"url":"https://api.github.com/repos/Tjoosten/laravel/issues/10","labels_url":"https://api.github.com/repos/Tjoosten/laravel/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Tjoosten/laravel/issues/10/comments","events_url":"https://api.github.com/repos/Tjoosten/laravel/issues/10/events","html_url":"https://github.com/Tjoosten/laravel/issues/10","id":80156580,"number":10,"title":"[Insight] Object parameters should be type hinted - in app/Http/Middleware/AdminMiddleware.php, line 16","user":{"login":"Tjoosten","id":5157609,"avatar_url":"https://avatars.githubusercontent.com/u/5157609?v=3","gravatar_id":"","url":"https://api.github.com/users/Tjoosten","html_url":"https://github.com/Tjoosten","followers_url":"https://api.github.com/users/Tjoosten/followers","following_url":"https://api.github.com/users/Tjoosten/following{/other_user}","gists_url":"https://api.github.com/users/Tjoosten/gists{/gist_id}","starred_url":"https://api.github.com/users/Tjoosten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tjoosten/subscriptions","organizations_url":"https://api.github.com/users/Tjoosten/orgs","repos_url":"https://api.github.com/users/Tjoosten/repos","events_url":"https://api.github.com/users/Tjoosten/events{/privacy}","received_events_url":"https://api.github.com/users/Tjoosten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-24T13:04:03Z","updated_at":"2015-05-24T13:04:03Z","closed_at":null,"body":"**[in app/Http/Middleware/AdminMiddleware.php, line 16](https://github.com/Tjoosten/laravel/blob/a383629e7cd02b5672b97921161712f49ea3c029/app/Http/Middleware/AdminMiddleware.php#L16)**\r\n\r\n> The parameter `request`, which is an object, should be typehinted.\r\n\r\n```php\r\n\t\t *\r\n\t\t * @param  \\Illuminate\\Http\\Request  $request\r\n\t\t * @param  \\Closure  $next\r\n\t\t * @return mixed\r\n\t\t */\r\n\t\tpublic function handle($request, Closure $next) {\r\n\t\t\tif($request->ajax()) {\r\n\t\t\t\tresponse('Not permitted', 403);\r\n\t\t\t}\r\n\r\n\t\t\tif(Auth::check()) {\r\n```\r\n\r\n---------------------\r\n\r\n_Posted from [SensioLabsInsight](https://insight.sensiolabs.com/projects/b397c23b-9d78-434b-a2ad-5f8663254701/analyses/1)_"}}