File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ + (SPLStudyplus*)studyplusWithConsumerKey:(NSString*)consumerKey
5050}
5151
5252- (id )__initWithConsumerKey : (NSString *)consumerKey
53- andConsumerSecret : (NSString *)consumerSecret {
53+ andConsumerSecret : (NSString *)consumerSecret
54+ {
5455
5556 if (self = [super init ]) {
5657 self.consumerKey = consumerKey;
@@ -164,7 +165,8 @@ - (BOOL)openURL:(NSURL*)url
164165
165166#pragma mark - privates
166167
167- - (id )init {
168+ - (id )init
169+ {
168170 @throw [NSException exceptionWithName: NSInternalInconsistencyException
169171 reason: @" -init method is not available."
170172 userInfo: nil ];
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ - (void)sendRequestWithPath:(NSString*)path
8383 failed : (void (^)(NSInteger httpStatusCode, NSError *error))failed
8484{
8585 AFHTTPResponseSerializer *responseSerializer = [AFHTTPResponseSerializer serializer ];
86- AFJSONRequestSerializer * requestSerializer = [AFJSONRequestSerializer serializer ];
86+ AFJSONRequestSerializer *requestSerializer = [AFJSONRequestSerializer serializer ];
8787 [requestSerializer setValue: [NSString stringWithFormat: @" OAuth %@ " , self .accessToken]
8888 forHTTPHeaderField: @" HTTP_AUTHORIZATION" ];
8989
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ + (SPLStudyplusRecord*)recordWithDuration: (NSTimeInterval)duration options:(NSD
4343 return [[[self class ] alloc ] initWithDuration: duration options: options];
4444}
4545
46- - (id )getKey : (NSString *)key from : (NSDictionary *)dict orElse : (id )elseValue {
46+ - (id )getKey : (NSString *)key from : (NSDictionary *)dict orElse : (id )elseValue
47+ {
4748 id value = dict[key];
4849 if (value == [NSNull null ] || value == nil ) {
4950 value = elseValue;
You can’t perform that action at this time.
0 commit comments