Skip to content

Commit b841009

Browse files
authored
Run scripts/style.sh on Functions (#949)
1 parent b7f35a0 commit b841009

File tree

7 files changed

+96
-96
lines changed

7 files changed

+96
-96
lines changed

Functions/Example/FirebaseFunctions/FIRAppDelegate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
@import UIKit;
1616

17-
@interface FIRAppDelegate : UIResponder <UIApplicationDelegate>
17+
@interface FIRAppDelegate : UIResponder<UIApplicationDelegate>
1818

19-
@property (strong, nonatomic) UIWindow *window;
19+
@property(strong, nonatomic) UIWindow *window;
2020

2121
@end

Functions/Example/FirebaseFunctions/FIRAppDelegate.m

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,40 @@
1616

1717
@implementation FIRAppDelegate
1818

19-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
20-
{
21-
// Override point for customization after application launch.
22-
return YES;
19+
- (BOOL)application:(UIApplication *)application
20+
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
21+
// Override point for customization after application launch.
22+
return YES;
2323
}
2424

25-
- (void)applicationWillResignActive:(UIApplication *)application
26-
{
27-
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
28-
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25+
- (void)applicationWillResignActive:(UIApplication *)application {
26+
// Sent when the application is about to move from active to inactive state. This can occur for
27+
// certain types of temporary interruptions (such as an incoming phone call or SMS message) or
28+
// when the user quits the application and it begins the transition to the background state. Use
29+
// this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates.
30+
// Games should use this method to pause the game.
2931
}
3032

31-
- (void)applicationDidEnterBackground:(UIApplication *)application
32-
{
33-
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
34-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
33+
- (void)applicationDidEnterBackground:(UIApplication *)application {
34+
// Use this method to release shared resources, save user data, invalidate timers, and store
35+
// enough application state information to restore your application to its current state in case
36+
// it is terminated later. If your application supports background execution, this method is
37+
// called instead of applicationWillTerminate: when the user quits.
3538
}
3639

37-
- (void)applicationWillEnterForeground:(UIApplication *)application
38-
{
39-
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
40+
- (void)applicationWillEnterForeground:(UIApplication *)application {
41+
// Called as part of the transition from the background to the inactive state; here you can undo
42+
// many of the changes made on entering the background.
4043
}
4144

42-
- (void)applicationDidBecomeActive:(UIApplication *)application
43-
{
44-
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
45+
- (void)applicationDidBecomeActive:(UIApplication *)application {
46+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If
47+
// the application was previously in the background, optionally refresh the user interface.
4548
}
4649

47-
- (void)applicationWillTerminate:(UIApplication *)application
48-
{
49-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
50+
- (void)applicationWillTerminate:(UIApplication *)application {
51+
// Called when the application is about to terminate. Save data if appropriate. See also
52+
// applicationDidEnterBackground:.
5053
}
5154

5255
@end

Functions/Example/FirebaseFunctions/FIRViewController.m

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,14 @@ @interface FIRViewController ()
2020

2121
@implementation FIRViewController
2222

23-
- (void)viewDidLoad
24-
{
25-
[super viewDidLoad];
26-
// Do any additional setup after loading the view, typically from a nib.
23+
- (void)viewDidLoad {
24+
[super viewDidLoad];
25+
// Do any additional setup after loading the view, typically from a nib.
2726
}
2827

29-
- (void)didReceiveMemoryWarning
30-
{
31-
[super didReceiveMemoryWarning];
32-
// Dispose of any resources that can be recreated.
28+
- (void)didReceiveMemoryWarning {
29+
[super didReceiveMemoryWarning];
30+
// Dispose of any resources that can be recreated.
3331
}
3432

3533
@end

Functions/Example/FirebaseFunctions/main.m

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
@import UIKit;
1616
#import "FIRAppDelegate.h"
1717

18-
int main(int argc, char * argv[])
19-
{
20-
@autoreleasepool {
21-
return UIApplicationMain(argc, argv, nil, NSStringFromClass([FIRAppDelegate class]));
22-
}
18+
int main(int argc, char* argv[]) {
19+
@autoreleasepool {
20+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([FIRAppDelegate class]));
21+
}
2322
}

Functions/FirebaseFunctions/Public/FIRError.h

Lines changed: 59 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -20,71 +20,72 @@ NS_ASSUME_NONNULL_BEGIN
2020
FOUNDATION_EXPORT NSString *const FIRFunctionsErrorDomain NS_SWIFT_NAME(FunctionsErrorDomain);
2121

2222
// The key for finding error details in the NSError userInfo.
23-
FOUNDATION_EXPORT NSString *const FIRFunctionsErrorDetailsKey NS_SWIFT_NAME(FunctionsErrorDetailsKey);
23+
FOUNDATION_EXPORT NSString *const FIRFunctionsErrorDetailsKey
24+
NS_SWIFT_NAME(FunctionsErrorDetailsKey);
2425

2526
/**
2627
* The set of error status codes that can be returned from a Callable HTTPS tigger. These are the
2728
* canonical error codes for Google APIs, as documented here:
2829
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto#L26
2930
*/
3031
typedef NS_ENUM(NSInteger, FIRFunctionsErrorCode) {
31-
/** The operation completed successfully. */
32-
FIRFunctionsErrorCodeOK = 0,
33-
/** The operation was cancelled (typically by the caller). */
34-
FIRFunctionsErrorCodeCancelled = 1,
35-
/** Unknown error or an error from a different error domain. */
36-
FIRFunctionsErrorCodeUnknown = 2,
37-
/**
38-
* Client specified an invalid argument. Note that this differs from `FailedPrecondition`.
39-
* `InvalidArgument` indicates arguments that are problematic regardless of the state of the
40-
* system (e.g., an invalid field name).
41-
*/
42-
FIRFunctionsErrorCodeInvalidArgument = 3,
43-
/**
44-
* Deadline expired before operation could complete. For operations that change the state of the
45-
* system, this error may be returned even if the operation has completed successfully. For
46-
* example, a successful response from a server could have been delayed long enough for the
47-
* deadline to expire.
48-
*/
49-
FIRFunctionsErrorCodeDeadlineExceeded = 4,
50-
/** Some requested document was not found. */
51-
FIRFunctionsErrorCodeNotFound = 5,
52-
/** Some document that we attempted to create already exists. */
53-
FIRFunctionsErrorCodeAlreadyExists = 6,
54-
/** The caller does not have permission to execute the specified operation. */
55-
FIRFunctionsErrorCodePermissionDenied = 7,
56-
/**
57-
* Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system
58-
* is out of space.
59-
*/
60-
FIRFunctionsErrorCodeResourceExhausted = 8,
61-
/**
62-
* Operation was rejected because the system is not in a state required for the operation's
63-
* execution.
64-
*/
65-
FIRFunctionsErrorCodeFailedPrecondition = 9,
66-
/**
67-
* The operation was aborted, typically due to a concurrency issue like transaction aborts, etc.
68-
*/
69-
FIRFunctionsErrorCodeAborted = 10,
70-
/** Operation was attempted past the valid range. */
71-
FIRFunctionsErrorCodeOutOfRange = 11,
72-
/** Operation is not implemented or not supported/enabled. */
73-
FIRFunctionsErrorCodeUnimplemented = 12,
74-
/**
75-
* Internal errors. Means some invariant expected by underlying system has been broken. If you
76-
* see one of these errors, something is very broken.
77-
*/
78-
FIRFunctionsErrorCodeInternal = 13,
79-
/**
80-
* The service is currently unavailable. This is a most likely a transient condition and may be
81-
* corrected by retrying with a backoff.
82-
*/
83-
FIRFunctionsErrorCodeUnavailable = 14,
84-
/** Unrecoverable data loss or corruption. */
85-
FIRFunctionsErrorCodeDataLoss = 15,
86-
/** The request does not have valid authentication credentials for the operation. */
87-
FIRFunctionsErrorCodeUnauthenticated = 16,
32+
/** The operation completed successfully. */
33+
FIRFunctionsErrorCodeOK = 0,
34+
/** The operation was cancelled (typically by the caller). */
35+
FIRFunctionsErrorCodeCancelled = 1,
36+
/** Unknown error or an error from a different error domain. */
37+
FIRFunctionsErrorCodeUnknown = 2,
38+
/**
39+
* Client specified an invalid argument. Note that this differs from `FailedPrecondition`.
40+
* `InvalidArgument` indicates arguments that are problematic regardless of the state of the
41+
* system (e.g., an invalid field name).
42+
*/
43+
FIRFunctionsErrorCodeInvalidArgument = 3,
44+
/**
45+
* Deadline expired before operation could complete. For operations that change the state of the
46+
* system, this error may be returned even if the operation has completed successfully. For
47+
* example, a successful response from a server could have been delayed long enough for the
48+
* deadline to expire.
49+
*/
50+
FIRFunctionsErrorCodeDeadlineExceeded = 4,
51+
/** Some requested document was not found. */
52+
FIRFunctionsErrorCodeNotFound = 5,
53+
/** Some document that we attempted to create already exists. */
54+
FIRFunctionsErrorCodeAlreadyExists = 6,
55+
/** The caller does not have permission to execute the specified operation. */
56+
FIRFunctionsErrorCodePermissionDenied = 7,
57+
/**
58+
* Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system
59+
* is out of space.
60+
*/
61+
FIRFunctionsErrorCodeResourceExhausted = 8,
62+
/**
63+
* Operation was rejected because the system is not in a state required for the operation's
64+
* execution.
65+
*/
66+
FIRFunctionsErrorCodeFailedPrecondition = 9,
67+
/**
68+
* The operation was aborted, typically due to a concurrency issue like transaction aborts, etc.
69+
*/
70+
FIRFunctionsErrorCodeAborted = 10,
71+
/** Operation was attempted past the valid range. */
72+
FIRFunctionsErrorCodeOutOfRange = 11,
73+
/** Operation is not implemented or not supported/enabled. */
74+
FIRFunctionsErrorCodeUnimplemented = 12,
75+
/**
76+
* Internal errors. Means some invariant expected by underlying system has been broken. If you
77+
* see one of these errors, something is very broken.
78+
*/
79+
FIRFunctionsErrorCodeInternal = 13,
80+
/**
81+
* The service is currently unavailable. This is a most likely a transient condition and may be
82+
* corrected by retrying with a backoff.
83+
*/
84+
FIRFunctionsErrorCodeUnavailable = 14,
85+
/** Unrecoverable data loss or corruption. */
86+
FIRFunctionsErrorCodeDataLoss = 15,
87+
/** The request does not have valid authentication credentials for the operation. */
88+
FIRFunctionsErrorCodeUnauthenticated = 16,
8889
};
8990

9091
NS_ASSUME_NONNULL_END

Functions/FirebaseFunctions/Public/FIRFunctions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ NS_SWIFT_NAME(Functions)
5656
// clang-format on
5757

5858
/**
59-
* Creates a reference to the Callable HTTPS trigger with the given name.
59+
* Creates a reference to the Callable HTTPS trigger with the given name.
6060
* @param name The name of the Callable HTTPS trigger.
6161
*/
6262
- (FIRHTTPSCallable *)HTTPSCallableWithName:(NSString *)name NS_SWIFT_NAME(httpsCallable(_:));

Functions/FirebaseFunctions/Public/FIRHTTPSCallable.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ NS_SWIFT_NAME(HTTPSCallableResult)
2424

2525
- (id)init NS_UNAVAILABLE;
2626

27-
2827
/**
2928
* The data that was returned from the Callable HTTPS trigger.
3029
*

0 commit comments

Comments
 (0)