File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ + (SPLStudyplus*)studyplusWithConsumerKey:(NSString*)consumerKey
50
50
}
51
51
52
52
- (id )__initWithConsumerKey : (NSString *)consumerKey
53
- andConsumerSecret : (NSString *)consumerSecret {
53
+ andConsumerSecret : (NSString *)consumerSecret
54
+ {
54
55
55
56
if (self = [super init ]) {
56
57
self.consumerKey = consumerKey;
@@ -164,7 +165,8 @@ - (BOOL)openURL:(NSURL*)url
164
165
165
166
#pragma mark - privates
166
167
167
- - (id )init {
168
+ - (id )init
169
+ {
168
170
@throw [NSException exceptionWithName: NSInternalInconsistencyException
169
171
reason: @" -init method is not available."
170
172
userInfo: nil ];
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ - (void)sendRequestWithPath:(NSString*)path
83
83
failed : (void (^)(NSInteger httpStatusCode, NSError *error))failed
84
84
{
85
85
AFHTTPResponseSerializer *responseSerializer = [AFHTTPResponseSerializer serializer ];
86
- AFJSONRequestSerializer * requestSerializer = [AFJSONRequestSerializer serializer ];
86
+ AFJSONRequestSerializer *requestSerializer = [AFJSONRequestSerializer serializer ];
87
87
[requestSerializer setValue: [NSString stringWithFormat: @" OAuth %@ " , self .accessToken]
88
88
forHTTPHeaderField: @" HTTP_AUTHORIZATION" ];
89
89
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ + (SPLStudyplusRecord*)recordWithDuration: (NSTimeInterval)duration options:(NSD
43
43
return [[[self class ] alloc ] initWithDuration: duration options: options];
44
44
}
45
45
46
- - (id )getKey : (NSString *)key from : (NSDictionary *)dict orElse : (id )elseValue {
46
+ - (id )getKey : (NSString *)key from : (NSDictionary *)dict orElse : (id )elseValue
47
+ {
47
48
id value = dict[key];
48
49
if (value == [NSNull null ] || value == nil ) {
49
50
value = elseValue;
You can’t perform that action at this time.
0 commit comments