{"action":"closed","issue":{"url":"https://api.github.com/repos/DoSomething/ios-RBReviewer/issues/34","labels_url":"https://api.github.com/repos/DoSomething/ios-RBReviewer/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/ios-RBReviewer/issues/34/comments","events_url":"https://api.github.com/repos/DoSomething/ios-RBReviewer/issues/34/events","html_url":"https://github.com/DoSomething/ios-RBReviewer/issues/34","id":58753087,"number":34,"title":"Move any inputs besides blocks to beginning of method declaration in API Client","user":{"login":"jmburges","id":58342,"avatar_url":"https://avatars.githubusercontent.com/u/58342?v=3","gravatar_id":"","url":"https://api.github.com/users/jmburges","html_url":"https://github.com/jmburges","followers_url":"https://api.github.com/users/jmburges/followers","following_url":"https://api.github.com/users/jmburges/following{/other_user}","gists_url":"https://api.github.com/users/jmburges/gists{/gist_id}","starred_url":"https://api.github.com/users/jmburges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmburges/subscriptions","organizations_url":"https://api.github.com/users/jmburges/orgs","repos_url":"https://api.github.com/users/jmburges/repos","events_url":"https://api.github.com/users/jmburges/events{/privacy}","received_events_url":"https://api.github.com/users/jmburges/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-24T15:20:04Z","updated_at":"2015-03-03T23:20:55Z","closed_at":"2015-03-03T23:20:55Z","body":"Generally if you have a method like [this](https://github.com/DoSomething/ios-RBReviewer/blob/master/RBReviewer%2FDSODoSomethingAPIClient.h#L28) you will want to put the normal variable inputs (like `tid` in this case) to the beginning and the accept the blocks at the end. So a better declaration for this one would be\r\n\r\n```objc\r\n- (void)getSingleInboxReportbackWithTid:(NSInteger) tid CompletionHandler:(void(^)(NSMutableArray *))completionHandler;\r\n```\r\n\r\nIt makes it such that the inputs don't kinda get lost like they do [in this code at the bottom](https://github.com/DoSomething/ios-RBReviewer/blob/master/RBReviewer%2FDSODetailViewController.m#L61-L72)\r\n\r\nApply this to the other methods in that file"}}