Skip to content

Commit

Permalink
Merge pull request AFNetworking#4002 from LeeHongHwa/fix_coding_conve…
Browse files Browse the repository at this point in the history
…ntion

fix space used in Objective-C method (coding style)
  • Loading branch information
SlaunchaMan authored Jun 8, 2018
2 parents 48b63fa + 27c8195 commit b158887
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Tests/Tests/AFURLSessionManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ - (NSURLRequest *)_delayURLRequest {
return [NSURLRequest requestWithURL:self.delayURL];
}

- (IMP)_implementationForTask:(NSURLSessionTask *)task selector:(SEL)selector {
- (IMP)_implementationForTask:(NSURLSessionTask *)task selector:(SEL)selector {
return [self _implementationForClass:[task class] selector:selector];
}

Expand Down
4 changes: 2 additions & 2 deletions UIKit+AFNetworking/AFAutoPurgingImageCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ @interface AFCachedImage : NSObject

@implementation AFCachedImage

-(instancetype)initWithImage:(UIImage *)image identifier:(NSString *)identifier {
- (instancetype)initWithImage:(UIImage *)image identifier:(NSString *)identifier {
if (self = [self init]) {
self.image = image;
self.identifier = identifier;
Expand All @@ -51,7 +51,7 @@ -(instancetype)initWithImage:(UIImage *)image identifier:(NSString *)identifier
return self;
}

- (UIImage*)accessImage {
- (UIImage *)accessImage {
self.lastAccessDate = [NSDate date];
return self.image;
}
Expand Down
14 changes: 7 additions & 7 deletions UIKit+AFNetworking/AFImageDownloader.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

@interface AFImageDownloaderResponseHandler : NSObject
@property (nonatomic, strong) NSUUID *uuid;
@property (nonatomic, copy) void (^successBlock)(NSURLRequest*, NSHTTPURLResponse*, UIImage*);
@property (nonatomic, copy) void (^failureBlock)(NSURLRequest*, NSHTTPURLResponse*, NSError*);
@property (nonatomic, copy) void (^successBlock)(NSURLRequest *, NSHTTPURLResponse *, UIImage *);
@property (nonatomic, copy) void (^failureBlock)(NSURLRequest *, NSHTTPURLResponse *, NSError *);
@end

@implementation AFImageDownloaderResponseHandler
Expand Down Expand Up @@ -71,11 +71,11 @@ - (instancetype)initWithURLIdentifier:(NSString *)URLIdentifier identifier:(NSUU
return self;
}

- (void)addResponseHandler:(AFImageDownloaderResponseHandler*)handler {
- (void)addResponseHandler:(AFImageDownloaderResponseHandler *)handler {
[self.responseHandlers addObject:handler];
}

- (void)removeResponseHandler:(AFImageDownloaderResponseHandler*)handler {
- (void)removeResponseHandler:(AFImageDownloaderResponseHandler *)handler {
[self.responseHandlers removeObject:handler];
}

Expand Down Expand Up @@ -261,7 +261,7 @@ - (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)
for (AFImageDownloaderResponseHandler *handler in mergedTask.responseHandlers) {
if (handler.failureBlock) {
dispatch_async(dispatch_get_main_queue(), ^{
handler.failureBlock(request, (NSHTTPURLResponse*)response, error);
handler.failureBlock(request, (NSHTTPURLResponse *)response, error);
});
}
}
Expand All @@ -273,7 +273,7 @@ - (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)
for (AFImageDownloaderResponseHandler *handler in mergedTask.responseHandlers) {
if (handler.successBlock) {
dispatch_async(dispatch_get_main_queue(), ^{
handler.successBlock(request, (NSHTTPURLResponse*)response, responseObject);
handler.successBlock(request, (NSHTTPURLResponse *)response, responseObject);
});
}
}
Expand Down Expand Up @@ -340,7 +340,7 @@ - (void)cancelTaskForImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloa
});
}

- (AFImageDownloaderMergedTask*)safelyRemoveMergedTaskWithURLIdentifier:(NSString *)URLIdentifier {
- (AFImageDownloaderMergedTask *)safelyRemoveMergedTaskWithURLIdentifier:(NSString *)URLIdentifier {
__block AFImageDownloaderMergedTask *mergedTask = nil;
dispatch_sync(self.synchronizationQueue, ^{
mergedTask = [self removeMergedTaskWithURLIdentifier:URLIdentifier];
Expand Down
2 changes: 1 addition & 1 deletion UIKit+AFNetworking/UIImage+AFNetworking.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@interface UIImage (AFNetworking)

+ (UIImage*) safeImageWithData:(NSData*)data;
+ (UIImage *)safeImageWithData:(NSData *)data;

@end

Expand Down
2 changes: 1 addition & 1 deletion UIKit+AFNetworking/UIWebView+AFNetworking.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ - (void)af_setURLSessionTask:(NSURLSessionDataTask *)af_URLSessionTask {

@implementation UIWebView (AFNetworking)

- (AFHTTPSessionManager *)sessionManager {
- (AFHTTPSessionManager *)sessionManager {
static AFHTTPSessionManager *_af_defaultHTTPSessionManager = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
Expand Down

0 comments on commit b158887

Please sign in to comment.