{"action":"closed","issue":{"url":"https://api.github.com/repos/vektorprogrammet/vektorprogrammet/issues/276","repository_url":"https://api.github.com/repos/vektorprogrammet/vektorprogrammet","labels_url":"https://api.github.com/repos/vektorprogrammet/vektorprogrammet/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/vektorprogrammet/vektorprogrammet/issues/276/comments","events_url":"https://api.github.com/repos/vektorprogrammet/vektorprogrammet/issues/276/events","html_url":"https://github.com/vektorprogrammet/vektorprogrammet/issues/276","id":177439196,"number":276,"title":"[Insight] Commented code should not be committed - in src/…/Type/SurveyQuestionType.php, line 50","user":{"login":"kristandre","id":6992505,"avatar_url":"https://avatars.githubusercontent.com/u/6992505?v=3","gravatar_id":"","url":"https://api.github.com/users/kristandre","html_url":"https://github.com/kristandre","followers_url":"https://api.github.com/users/kristandre/followers","following_url":"https://api.github.com/users/kristandre/following{/other_user}","gists_url":"https://api.github.com/users/kristandre/gists{/gist_id}","starred_url":"https://api.github.com/users/kristandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristandre/subscriptions","organizations_url":"https://api.github.com/users/kristandre/orgs","repos_url":"https://api.github.com/users/kristandre/repos","events_url":"https://api.github.com/users/kristandre/events{/privacy}","received_events_url":"https://api.github.com/users/kristandre/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vektorprogrammet/vektorprogrammet/labels/Easy","name":"Easy","color":"0e8a16"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T14:27:31Z","updated_at":"2016-09-19T06:40:32Z","closed_at":"2016-09-19T06:40:32Z","body":"**[in src/AppBundle/Form/Type/SurveyQuestionType.php, line 50](https://github.com/vektorprogrammet/vektorprogrammet/blob/3564c72532535574f8fd1148371be82cc4cad34f/src/AppBundle/Form/Type/SurveyQuestionType.php#L50)**\r\n\r\n> Commented out code reduces readability and lowers the code confidence for other developers. If it's common usage for debug, it should not be committed. Using a version control system, such code can be safely removed.\r\n\r\n```php\r\n                '0' => 'Nei',\r\n                '1' => 'Ja',\r\n            ),\r\n        ));\r\n\r\n        /*\r\n        $builder->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {\r\n            $iq = $event->getData();\r\n            $form = $event->getForm();\r\n\r\n            $id =  null === $iq ? 0 : $iq->id;\r\n```\r\n\r\n---------------------\r\n\r\n_Posted from [SensioLabsInsight](https://insight.sensiolabs.com/projects/ec066ae0-5658-4365-af0c-4ab7492d2ad7/analyses/1?status=violations)_"}}
{"actor":{"display_login":"kristandre"}}