{"action":"created","issue":{"url":"https://api.github.com/repos/webSPELL/webSPELL/issues/269","labels_url":"https://api.github.com/repos/webSPELL/webSPELL/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/webSPELL/webSPELL/issues/269/comments","events_url":"https://api.github.com/repos/webSPELL/webSPELL/issues/269/events","html_url":"https://github.com/webSPELL/webSPELL/issues/269","id":102128444,"number":269,"title":"Ternäre Operatoren nutzen","user":{"login":"Huskynarr","id":11574473,"avatar_url":"https://avatars.githubusercontent.com/u/11574473?v=3","gravatar_id":"","url":"https://api.github.com/users/Huskynarr","html_url":"https://github.com/Huskynarr","followers_url":"https://api.github.com/users/Huskynarr/followers","following_url":"https://api.github.com/users/Huskynarr/following{/other_user}","gists_url":"https://api.github.com/users/Huskynarr/gists{/gist_id}","starred_url":"https://api.github.com/users/Huskynarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huskynarr/subscriptions","organizations_url":"https://api.github.com/users/Huskynarr/orgs","repos_url":"https://api.github.com/users/Huskynarr/repos","events_url":"https://api.github.com/users/Huskynarr/events{/privacy}","received_events_url":"https://api.github.com/users/Huskynarr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webSPELL/webSPELL/labels/status:pull-requests-encouraged","name":"status:pull-requests-encouraged","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-20T12:34:22Z","updated_at":"2015-10-03T12:58:46Z","closed_at":null,"body":"Bsp. in der Login.php\r\n```php\r\nif ($anz) { \r\n    $newmessages = $anz; \r\n} else { \r\n    $newmessages = ''; \r\n}\r\n```\r\nAls Ternärer operator\r\n```php\r\n$newmessages = $anz ? $anz : '';\r\n```\r\nGeht noch hübscher ... aber nur so als Ansatz für die Übersichtlichkeit des Codes. \r\n;) "},"comment":{"url":"https://api.github.com/repos/webSPELL/webSPELL/issues/comments/145246177","html_url":"https://github.com/webSPELL/webSPELL/issues/269#issuecomment-145246177","issue_url":"https://api.github.com/repos/webSPELL/webSPELL/issues/269","id":145246177,"user":{"login":"Phhere","id":1415280,"avatar_url":"https://avatars.githubusercontent.com/u/1415280?v=3","gravatar_id":"","url":"https://api.github.com/users/Phhere","html_url":"https://github.com/Phhere","followers_url":"https://api.github.com/users/Phhere/followers","following_url":"https://api.github.com/users/Phhere/following{/other_user}","gists_url":"https://api.github.com/users/Phhere/gists{/gist_id}","starred_url":"https://api.github.com/users/Phhere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phhere/subscriptions","organizations_url":"https://api.github.com/users/Phhere/orgs","repos_url":"https://api.github.com/users/Phhere/repos","events_url":"https://api.github.com/users/Phhere/events{/privacy}","received_events_url":"https://api.github.com/users/Phhere/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T12:58:46Z","updated_at":"2015-10-03T12:58:46Z","body":"Ehrlich gesagt finde ich, dass dieser Code (besonders für unerfahrene Entwickler) schwieriger zu lesen ist. Und es können sich schneller Fehler einschleppen"}}