{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/7855","labels_url":"https://api.github.com/repos/contao/core/issues/7855/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7855/comments","events_url":"https://api.github.com/repos/contao/core/issues/7855/events","html_url":"https://github.com/contao/core/issues/7855","id":84067343,"number":7855,"title":"Widget::getPost() minor issue","user":{"login":"qzminski","id":193483,"avatar_url":"https://avatars.githubusercontent.com/u/193483?v=3","gravatar_id":"","url":"https://api.github.com/users/qzminski","html_url":"https://github.com/qzminski","followers_url":"https://api.github.com/users/qzminski/followers","following_url":"https://api.github.com/users/qzminski/following{/other_user}","gists_url":"https://api.github.com/users/qzminski/gists{/gist_id}","starred_url":"https://api.github.com/users/qzminski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qzminski/subscriptions","organizations_url":"https://api.github.com/users/qzminski/orgs","repos_url":"https://api.github.com/users/qzminski/repos","events_url":"https://api.github.com/users/qzminski/events{/privacy}","received_events_url":"https://api.github.com/users/qzminski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-06-02T15:14:35Z","updated_at":"2015-06-03T09:02:02Z","closed_at":null,"body":"This statement in ```Widget::getPost()``` is always true and will be always executed:\r\n\r\nhttps://github.com/contao/core/blob/master/system/modules/core/library/Contao/Widget.php#L828\r\n\r\nThus the last line of the method will never be executed:\r\n\r\nhttps://github.com/contao/core/blob/master/system/modules/core/library/Contao/Widget.php#L845"},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/108255000","html_url":"https://github.com/contao/core/issues/7855#issuecomment-108255000","issue_url":"https://api.github.com/repos/contao/core/issues/7855","id":108255000,"user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T09:02:02Z","updated_at":"2015-06-03T09:02:02Z","body":"it wouldn't, but the `if (!empty($arrParts))` is unnecessary (if Kamil is right)."}}