Skip to content

Commit 028b910

Browse files
須藤将史須藤将史
authored andcommitted
refactor
1 parent 3aef713 commit 028b910

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

StudyplusSDK/SPLStudyplus.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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];

StudyplusSDK/SPLStudyplusAPIRequest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

StudyplusSDK/SPLStudyplusRecord.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)