From 32db98784da4df55ac749cb6b90acfee1be1fc5b Mon Sep 17 00:00:00 2001 From: Aleksi Lahikainen Date: Tue, 8 Sep 2020 16:28:32 +0300 Subject: [PATCH] Fix indentations --- src/ios/FileOpener2.m | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ios/FileOpener2.m b/src/ios/FileOpener2.m index 3bc1d66..0c93a61 100644 --- a/src/ios/FileOpener2.m +++ b/src/ios/FileOpener2.m @@ -69,15 +69,15 @@ NSString* callbackId = nil; localFile = fileURL.path; - NSLog(@"looking for file at %@", fileURL); - NSFileManager *fm = [NSFileManager defaultManager]; + NSLog(@"looking for file at %@", fileURL); + NSFileManager *fm = [NSFileManager defaultManager]; - if (![fm fileExistsAtPath:localFile]) { + if (![fm fileExistsAtPath:localFile]) { NSDictionary *jsonObj = @{@"status" : @"9", @"message" : @"File does not exist"}; CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsDictionary:jsonObj]; - [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; - return; + [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; + return; } docController = [UIDocumentInteractionController interactionControllerWithURL:fileURL]; @@ -91,7 +91,7 @@ NSString* callbackId = nil; NSArray *positionValues = [command.arguments objectAtIndex:3]; if (![positionValues isEqual:[NSNull null]] && [positionValues count] >= 2) { - rect = CGRectMake(0, 0, [[positionValues objectAtIndex:0] floatValue], [[positionValues objectAtIndex:1] floatValue]); + rect = CGRectMake(0, 0, [[positionValues objectAtIndex:0] floatValue], [[positionValues objectAtIndex:1] floatValue]); } else { rect = CGRectMake(0, 0, 0, 0); } @@ -118,7 +118,7 @@ NSString* callbackId = nil; nil ]; pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsDictionary:jsonObj]; - [self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId]; + [self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId]; } }); } @@ -127,11 +127,11 @@ NSString* callbackId = nil; @implementation FileOpener2 (UIDocumentInteractionControllerDelegate) - (void)documentInteractionControllerDidDismissOpenInMenu:(UIDocumentInteractionController *)controller { - [self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId]; + [self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId]; } - (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller { - [self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId]; + [self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId]; } - (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller { @@ -141,7 +141,7 @@ NSString* callbackId = nil; presentingViewController = [UIApplication sharedApplication].keyWindow.rootViewController; } - while (presentingViewController.presentedViewController != nil && ![presentingViewController.presentedViewController isBeingDismissed]) { + while (presentingViewController.presentedViewController != nil && ![presentingViewController.presentedViewController isBeingDismissed]) { presentingViewController = presentingViewController.presentedViewController; }