{"action":"created","issue":{"url":"https://api.github.com/repos/ubirimi/ubirimi/issues/48","labels_url":"https://api.github.com/repos/ubirimi/ubirimi/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/ubirimi/ubirimi/issues/48/comments","events_url":"https://api.github.com/repos/ubirimi/ubirimi/issues/48/events","html_url":"https://github.com/ubirimi/ubirimi/issues/48","id":79995422,"number":48,"title":"$clientId is set in multiple places","user":{"login":"w2pc","id":885461,"avatar_url":"https://avatars.githubusercontent.com/u/885461?v=3","gravatar_id":"","url":"https://api.github.com/users/w2pc","html_url":"https://github.com/w2pc","followers_url":"https://api.github.com/users/w2pc/followers","following_url":"https://api.github.com/users/w2pc/following{/other_user}","gists_url":"https://api.github.com/users/w2pc/gists{/gist_id}","starred_url":"https://api.github.com/users/w2pc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w2pc/subscriptions","organizations_url":"https://api.github.com/users/w2pc/orgs","repos_url":"https://api.github.com/users/w2pc/repos","events_url":"https://api.github.com/users/w2pc/events{/privacy}","received_events_url":"https://api.github.com/users/w2pc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ubirimi/ubirimi/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-24T00:18:17Z","updated_at":"2015-05-24T14:30:06Z","closed_at":null,"body":"The following are set in index.php but also set in many controllers. \r\n\r\n$clientId = $session->has('client/id') ? $session->get('client/id') : null;\r\n\r\nWe need to remove from index.php and set in one central location. We can just use that method everywhere and have it return false if not set or return the client object if it is set. All the other methods that set $clientId should be refactored to use the the new method."},"comment":{"url":"https://api.github.com/repos/ubirimi/ubirimi/issues/comments/105021238","html_url":"https://github.com/ubirimi/ubirimi/issues/48#issuecomment-105021238","issue_url":"https://api.github.com/repos/ubirimi/ubirimi/issues/48","id":105021238,"user":{"login":"domnulnopcea","id":9075617,"avatar_url":"https://avatars.githubusercontent.com/u/9075617?v=3","gravatar_id":"","url":"https://api.github.com/users/domnulnopcea","html_url":"https://github.com/domnulnopcea","followers_url":"https://api.github.com/users/domnulnopcea/followers","following_url":"https://api.github.com/users/domnulnopcea/following{/other_user}","gists_url":"https://api.github.com/users/domnulnopcea/gists{/gist_id}","starred_url":"https://api.github.com/users/domnulnopcea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domnulnopcea/subscriptions","organizations_url":"https://api.github.com/users/domnulnopcea/orgs","repos_url":"https://api.github.com/users/domnulnopcea/repos","events_url":"https://api.github.com/users/domnulnopcea/events{/privacy}","received_events_url":"https://api.github.com/users/domnulnopcea/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T14:30:06Z","updated_at":"2015-05-24T14:30:06Z","body":"the lines are already commented and can be removed I guess"}}