GitHub PullRequestReviewCommentEvent at 2014-05-27 20:28:05
Repository: mbc-transactional-email
Actor: jonuy
Payload: {"comment":{"url":"https://api.github.com/repos/DoSomething/mbc-transactional-email/pulls/comments/13100373","id":13100373,"diff_hunk":"@@ -197,44 +148,105 @@ function BuildMessage($payload) {\n    * @param string $payload\n    *  An JSON array of the details of the message to be sent\n    */\n-function ConsumeCallback($payload) {\n+  public function consumeTransactionalQueue($payload) {\n \n     // Use the Mandrill service\n     $Mandrill = new Mandrill();\n \n-    echo '------- ' . date('D M j G:i:s:u T Y') . ' -------', \"\\n\";\n-    echo ' [x] Received payload:' . $payload->body, \"\\n\\n\";\n-\n     // Assemble message details\n     // $payloadDetails = unserialize($payload->body);\n     $payloadDetails = unserialize($payload->body);\n-    list($templateName, $templateContent, $message) = BuildMessage($payloadDetails);\n+    list($templateName, $templateContent, $message) = $this->buildMessage($payloadDetails);\n \n     // Send message if no errors from building message\n     if ($templateName != FALSE) {","path":"mbc-transactional-email.php","position":335,"original_position":335,"commit_id":"b41e65feb0970dcceb8dd03ef3f5a9667a13f65c","original_commit_id":"b41e65feb0970dcceb8dd03ef3f5a9667a13f65c","user":{"login":"jonuy","id":696595,"avatar_url":"https://avatars.githubusercontent.com/u/696595?","gravatar_id":"475059e42b06897c808ed0bf3dd1ca49","url":"https://api.github.com/users/jonuy","html_url":"https://github.com/jonuy","followers_url":"https://api.github.com/users/jonuy/followers","following_url":"https://api.github.com/users/jonuy/following{/other_user}","gists_url":"https://api.github.com/users/jonuy/gists{/gist_id}","starred_url":"https://api.github.com/users/jonuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonuy/subscriptions","organizations_url":"https://api.github.com/users/jonuy/orgs","repos_url":"https://api.github.com/users/jonuy/repos","events_url":"https://api.github.com/users/jonuy/events{/privacy}","received_events_url":"https://api.github.com/users/jonuy/received_events","type":"User","site_admin":false},"body":"Could be a good idea to report an error to StatHat if there is an error from building the message.","created_at":"2014-05-27T20:28:05Z","updated_at":"2014-05-27T20:28:05Z","html_url":"https://github.com/DoSomething/mbc-transactional-email/pull/15#discussion_r13100373","pull_request_url":"https://api.github.com/repos/DoSomething/mbc-transactional-email/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/mbc-transactional-email/pulls/comments/13100373"},"html":{"href":"https://github.com/DoSomething/mbc-transactional-email/pull/15#discussion_r13100373"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/mbc-transactional-email/pulls/15"}}}}