{"comment":{"url":"https://api.github.com/repos/andela/pibbble/comments/14557407","html_url":"https://github.com/andela/pibbble/commit/f84ceb0fc4d7272355abf890fe8f933d0b150547#commitcomment-14557407","id":14557407,"user":{"login":"andela-oogunjimi","id":13238644,"avatar_url":"https://avatars.githubusercontent.com/u/13238644?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-oogunjimi","html_url":"https://github.com/andela-oogunjimi","followers_url":"https://api.github.com/users/andela-oogunjimi/followers","following_url":"https://api.github.com/users/andela-oogunjimi/following{/other_user}","gists_url":"https://api.github.com/users/andela-oogunjimi/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-oogunjimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-oogunjimi/subscriptions","organizations_url":"https://api.github.com/users/andela-oogunjimi/orgs","repos_url":"https://api.github.com/users/andela-oogunjimi/repos","events_url":"https://api.github.com/users/andela-oogunjimi/events{/privacy}","received_events_url":"https://api.github.com/users/andela-oogunjimi/received_events","type":"User","site_admin":false},"position":21,"line":21,"path":"app/Http/Middleware/ValidateEmail.php","commit_id":"f84ceb0fc4d7272355abf890fe8f933d0b150547","created_at":"2015-11-23T11:20:23Z","updated_at":"2015-11-23T11:20:23Z","body":"There are 3 conditions right there.\nI could choose to cascade the if statements and put 1 condition in each.\nWhat do you think?\n\nOn Mon, Nov 23, 2015 at 12:03 PM, Prosper Otemuyiwa <\nnotifications@github.com> wrote:\n\n> *Code Quality - Critical*\n>\n> $request->has('_token') && $request->session()->has('_token')  && $request->_token === $request->session()->pull('_token')\n>\n> This is very very messy, why is it written this way?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/andela/pibbble/commit/f84ceb0fc4d7272355abf890fe8f933d0b150547#commitcomment-14557077>\n> .\n>\n\n\n\n-- \n*Opeyemi Ogunjimi | Software Developer | Andela*\n(c) +234-703-936-2475 | Andela.com <http://andela.com/>\n"}}