{"action":"closed","issue":{"url":"https://api.github.com/repos/rinvex/cluster-operations/issues/11","repository_url":"https://api.github.com/repos/rinvex/cluster-operations","labels_url":"https://api.github.com/repos/rinvex/cluster-operations/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/rinvex/cluster-operations/issues/11/comments","events_url":"https://api.github.com/repos/rinvex/cluster-operations/issues/11/events","html_url":"https://github.com/rinvex/cluster-operations/issues/11","id":142022777,"number":11,"title":"[Insight] Unused method, property, variable or parameter - in src/…/Backend/ExtensionsController.php, line 603","user":{"login":"Omranic","id":406705,"avatar_url":"https://avatars.githubusercontent.com/u/406705?v=3","gravatar_id":"","url":"https://api.github.com/users/Omranic","html_url":"https://github.com/Omranic","followers_url":"https://api.github.com/users/Omranic/followers","following_url":"https://api.github.com/users/Omranic/following{/other_user}","gists_url":"https://api.github.com/users/Omranic/gists{/gist_id}","starred_url":"https://api.github.com/users/Omranic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Omranic/subscriptions","organizations_url":"https://api.github.com/users/Omranic/orgs","repos_url":"https://api.github.com/users/Omranic/repos","events_url":"https://api.github.com/users/Omranic/events{/privacy}","received_events_url":"https://api.github.com/users/Omranic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-19T03:29:29Z","updated_at":"2016-04-29T00:40:43Z","closed_at":"2016-04-29T00:40:43Z","body":"**[in src/Http/Controllers/Backend/ExtensionsController.php, line 603](https://github.com/rinvex/cluster-operations/blob/111b4cd43dfe7b21ac09bad4a6c48869ee7c7968/src/Http/Controllers/Backend/ExtensionsController.php#L603)**\r\n\r\n> This `extension` local variable is declared but never used. You should remove it.\r\n\r\n```php\r\n     * @return \\Illuminate\\Http\\RedirectResponse\r\n     */\r\n    protected function modifyExtension($slug, $action)\r\n    {\r\n        // Get the extension information\r\n        if (! $extension = $this->extensions->find($slug)) {\r\n            return redirect()->route('backend.cluster.operations.extension.all');\r\n        }\r\n\r\n        $this->extensions->{$action}($slug);\r\n\r\n```\r\n\r\n---------------------\r\n\r\n_Posted from [SensioLabsInsight](https://insight.sensiolabs.com/projects/26f24ea2-c962-4270-9f06-20628ef0c87f/analyses/2)_"}}