Skip to content

Commit 0168203

Browse files
author
Chuan Ren
committed
Fix indent
1 parent 670f9d9 commit 0168203

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

Auth/FirebaseAuthUI/FUIAuthPickerViewController.m

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,37 @@
2525
#import "FUIPrivacyAndTermsOfServiceView.h"
2626

2727
/** @var kSignInButtonWidth
28-
@brief The width of the sign in buttons.
28+
@brief The width of the sign in buttons.
2929
*/
3030
static const CGFloat kSignInButtonWidth = 220.0f;
3131

3232
/** @var kSignInButtonHeight
33-
@brief The height of the sign in buttons.
33+
@brief The height of the sign in buttons.
3434
*/
3535
static const CGFloat kSignInButtonHeight = 40.0f;
3636

3737
/** @var kSignInButtonVerticalMargin
38-
@brief The vertical margin between sign in buttons.
38+
@brief The vertical margin between sign in buttons.
3939
*/
4040
static const CGFloat kSignInButtonVerticalMargin = 24.0f;
4141

4242
/** @var kButtonContainerBottomMargin
43-
@brief The magin between sign in buttons and the bottom of the content view.
43+
@brief The magin between sign in buttons and the bottom of the content view.
4444
*/
4545
static const CGFloat kButtonContainerBottomMargin = 48.0f;
4646

4747
/** @var kButtonContainerTopMargin
48-
@brief The margin between sign in buttons and the top of the content view.
48+
@brief The margin between sign in buttons and the top of the content view.
4949
*/
5050
static const CGFloat kButtonContainerTopMargin = 16.0f;
5151

5252
/** @var kTOSViewBottomMargin
53-
@brief The margin between privacy policy and TOS view and the bottom of the content view.
53+
@brief The margin between privacy policy and TOS view and the bottom of the content view.
5454
*/
5555
static const CGFloat kTOSViewBottomMargin = 24.0f;
5656

5757
/** @var kTOSViewHorizontalMargin
58-
@brief The margin between privacy policy and TOS view and the left or right of the content view.
58+
@brief The margin between privacy policy and TOS view and the left or right of the content view.
5959
*/
6060
static const CGFloat kTOSViewHorizontalMargin = 16.0f;
6161

@@ -93,21 +93,21 @@ - (void)viewDidLoad {
9393

9494
if (!self.authUI.shouldHideCancelButton) {
9595
UIBarButtonItem *cancelBarButton =
96-
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel
97-
target:self
98-
action:@selector(cancelAuthorization)];
96+
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel
97+
target:self
98+
action:@selector(cancelAuthorization)];
9999
self.navigationItem.leftBarButtonItem = cancelBarButton;
100100
}
101101
self.navigationItem.backBarButtonItem =
102-
[[UIBarButtonItem alloc] initWithTitle:FUILocalizedString(kStr_Back)
103-
style:UIBarButtonItemStylePlain
104-
target:nil
105-
action:nil];
102+
[[UIBarButtonItem alloc] initWithTitle:FUILocalizedString(kStr_Back)
103+
style:UIBarButtonItemStylePlain
104+
target:nil
105+
action:nil];
106106

107107
NSInteger numberOfButtons = self.authUI.providers.count;
108108

109109
CGFloat buttonContainerViewHeight =
110-
kSignInButtonHeight * numberOfButtons + kSignInButtonVerticalMargin * (numberOfButtons);
110+
kSignInButtonHeight * numberOfButtons + kSignInButtonVerticalMargin * (numberOfButtons);
111111
CGRect buttonContainerViewFrame = CGRectMake(0, 0, kSignInButtonWidth, buttonContainerViewHeight);
112112
_buttonContainerView = [[UIView alloc] initWithFrame:buttonContainerViewFrame];
113113
if (_scrollView) {
@@ -121,7 +121,7 @@ - (void)viewDidLoad {
121121
CGRect buttonFrame = CGRectMake(0, 0, kSignInButtonWidth, kSignInButtonHeight);
122122
for (id<FUIAuthProvider> providerUI in self.authUI.providers) {
123123
UIButton *providerButton =
124-
[[FUIAuthSignInButton alloc] initWithFrame:buttonFrame providerUI:providerUI];
124+
[[FUIAuthSignInButton alloc] initWithFrame:buttonFrame providerUI:providerUI];
125125
[providerButton addTarget:self
126126
action:@selector(didTapSignInButton:)
127127
forControlEvents:UIControlEventTouchUpInside];
@@ -144,7 +144,7 @@ - (void)viewDidLayoutSubviews {
144144
// old layout behavior.
145145
if (!_scrollView) {
146146
CGFloat distanceFromCenterToBottom =
147-
CGRectGetHeight(_buttonContainerView.frame) / 2.0f + kButtonContainerBottomMargin + kTOSViewBottomMargin;
147+
CGRectGetHeight(_buttonContainerView.frame) / 2.0f + kButtonContainerBottomMargin + kTOSViewBottomMargin;
148148
CGFloat centerY = CGRectGetHeight(self.view.bounds) - distanceFromCenterToBottom;
149149
// Compensate for bounds adjustment if any.
150150
centerY += self.view.bounds.origin.y;
@@ -155,16 +155,16 @@ - (void)viewDidLayoutSubviews {
155155
CGFloat buttonContainerHeight = CGRectGetHeight(_buttonContainerView.frame);
156156
CGFloat buttonContainerWidth = CGRectGetWidth(_buttonContainerView.frame);
157157
CGFloat contentViewHeight = kButtonContainerTopMargin + buttonContainerHeight
158-
+ kButtonContainerBottomMargin + kTOSViewBottomMargin;
158+
+ kButtonContainerBottomMargin + kTOSViewBottomMargin;
159159
CGFloat contentViewWidth = CGRectGetWidth(self.view.bounds);
160160
_scrollView.frame = self.view.frame;
161161
CGFloat scrollViewHeight;
162162
if (@available(iOS 11.0, *)) {
163163
scrollViewHeight = CGRectGetHeight(_scrollView.frame) - _scrollView.safeAreaInsets.top;
164164
} else {
165165
scrollViewHeight = CGRectGetHeight(_scrollView.frame)
166-
- CGRectGetHeight(self.navigationController.navigationBar.frame)
167-
- CGRectGetHeight([UIApplication sharedApplication].statusBarFrame);
166+
- CGRectGetHeight(self.navigationController.navigationBar.frame)
167+
- CGRectGetHeight([UIApplication sharedApplication].statusBarFrame);
168168
}
169169
CGFloat contentViewY = scrollViewHeight - contentViewHeight;
170170
if (contentViewY < 0) {

0 commit comments

Comments
 (0)