Skip to content

Commit 734b035

Browse files
committed
Fix spacing issues identified by uncrustify's "sp_before_sparen = add" option. Refs RestKit#614
1 parent 746f31c commit 734b035

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

Code/Network/RKRequest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ - (void)addHeadersToRequest {
373373
}
374374

375375
// OAuth 2 valid request
376-
if(self.authenticationType == RKRequestAuthenticationTypeOAuth2) {
376+
if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) {
377377
NSString *authorizationString = [NSString stringWithFormat:@"OAuth2 %@",self.OAuth2AccessToken];
378378
[_URLRequest setValue:authorizationString forHTTPHeaderField:@"Authorization"];
379379
}

Code/Network/RKRequestQueue.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ - (NSInteger)networkActivityCount {
555555
}
556556

557557
- (void)refreshActivityIndicator {
558-
if(![NSThread isMainThread]) {
558+
if (![NSThread isMainThread]) {
559559
SEL sel_refresh = @selector(refreshActivityIndicator);
560560
[self performSelectorOnMainThread:sel_refresh withObject:nil waitUntilDone:NO];
561561
return;

Code/ObjectMapping/RKObjectMappingOperation.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ - (NSDate*)parseDateFromString:(NSString*)string {
130130

131131
if (numeric) {
132132
date = [NSDate dateWithTimeIntervalSince1970:[numeric doubleValue]];
133-
} else if(![string isEqualToString:@""]) {
133+
} else if (![string isEqualToString:@""]) {
134134
for (NSFormatter *dateFormatter in self.objectMapping.dateFormatters) {
135135
BOOL success;
136136
@synchronized(dateFormatter) {

Code/ObjectMapping/RKObjectPropertyInspector.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ + (NSString*)propertyTypeFromAttributeString:(NSString*)attributeString {
5757
[typeScanner scanUpToCharactersFromSet:[NSCharacterSet characterSetWithCharactersInString:@"@"] intoString:NULL];
5858

5959
// we are not dealing with an object
60-
if([typeScanner isAtEnd]) {
60+
if ([typeScanner isAtEnd]) {
6161
return @"NULL";
6262
}
6363
[typeScanner scanCharactersFromSet:[NSCharacterSet characterSetWithCharactersInString:@"\"@"] intoString:NULL];

Code/Support/NSArray+RKAdditions.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ - (NSArray *)sectionsGroupedByKeyPath:(NSString *)keyPath
1616
NSMutableArray *sections = [NSMutableArray array];
1717

1818
// If we don't contain any items, return an empty collection of sections.
19-
if([self count] == 0) {
19+
if ([self count] == 0) {
2020
return sections;
2121
}
2222

Code/Support/NSDictionary+RKAdditions.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ - (NSDictionary *)dictionaryByReplacingPercentEscapesInEntries {
5757
// TODO: Unit tests...
5858
+ (NSDictionary *)dictionaryWithURLEncodedString:(NSString *)URLEncodedString {
5959
NSMutableDictionary *queryComponents = [NSMutableDictionary dictionary];
60-
for(NSString *keyValuePairString in [URLEncodedString componentsSeparatedByString:@"&"]) {
60+
for (NSString *keyValuePairString in [URLEncodedString componentsSeparatedByString:@"&"]) {
6161
NSArray *keyValuePairArray = [keyValuePairString componentsSeparatedByString:@"="];
6262
if ([keyValuePairArray count] < 2) continue; // Verify that there is at least one key, and at least one value. Ignore extra = signs
6363
NSString *key = [[keyValuePairArray objectAtIndex:0] stringByReplacingURLEncoding];
6464
NSString *value = [[keyValuePairArray objectAtIndex:1] stringByReplacingURLEncoding];
6565

6666
// URL spec says that multiple values are allowed per key
6767
id results = [queryComponents objectForKey:key];
68-
if(results) {
68+
if (results) {
6969
if ([results isKindOfClass:[NSMutableArray class]]) {
7070
[(NSMutableArray *)results addObject:value];
7171
} else {
@@ -100,7 +100,7 @@ - (void)URLEncodeParts:(NSMutableArray*)parts path:(NSString*)inPath {
100100
}
101101

102102
}
103-
} else if([value isKindOfClass:[NSDictionary class]] || [value isKindOfClass:[NSMutableDictionary class]]) {
103+
} else if ([value isKindOfClass:[NSDictionary class]] || [value isKindOfClass:[NSMutableDictionary class]]) {
104104
[value URLEncodeParts:parts path:path];
105105
}
106106
else {

Code/Support/RKLog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ lcl_configure_by_name("App", level);
136136
@finally { \
137137
lcl_configure_by_component(_component, _currentLevel); \
138138
} \
139-
} while(false);
139+
} while (false);
140140

141141
/**
142142
Temporarily turns off logging for the given logging component during execution of the block.

0 commit comments

Comments
 (0)