Skip to content

Commit bf24bf2

Browse files
committed
fix: fix linting issues
1 parent 82203d7 commit bf24bf2

12 files changed

+57
-57
lines changed

iphone/Classes/ContactsModule.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ - (void)dealloc
9090
RELEASE_TO_NIL(contactStore)
9191
saveRequest = nil;
9292
RELEASE_TO_NIL(contactPicker)
93-
[[NSNotificationCenterdefaultCenter] removeObserver:self
94-
name:CNContactStoreDidChangeNotification
95-
object:nil];
93+
[[NSNotificationCenterdefaultCenter] removeObserver:self
94+
name:CNContactStoreDidChangeNotification
95+
object:nil];
9696
[superdealloc];
9797
}
9898

iphone/Classes/TiAppPropertiesProxy.m

+8-8
Original file line numberDiff line numberDiff line change
@@ -179,32 +179,32 @@ - (NSDictionary *)bridgedDictionaryFromDictionary:(NSDictionary *)dictionary wit
179179
- (void)setBool:(id)args
180180
{
181181
SETPROP
182-
[defaultsObject setBool:[TiUtils boolValue:value]
183-
forKey:key];
182+
[defaultsObject setBool:[TiUtils boolValue:value]
183+
forKey:key];
184184
[defaultsObject synchronize];
185185
}
186186

187187
- (void)setDouble:(id)args
188188
{
189189
SETPROP
190-
[defaultsObject setDouble:[TiUtils doubleValue:value]
191-
forKey:key];
190+
[defaultsObject setDouble:[TiUtils doubleValue:value]
191+
forKey:key];
192192
[defaultsObject synchronize];
193193
}
194194

195195
- (void)setInt:(id)args
196196
{
197197
SETPROP
198-
[defaultsObject setInteger:[TiUtils intValue:value]
199-
forKey:key];
198+
[defaultsObject setInteger:[TiUtils intValue:value]
199+
forKey:key];
200200
[defaultsObject synchronize];
201201
}
202202

203203
- (void)setString:(id)args
204204
{
205205
SETPROP
206-
[defaultsObject setObject:[TiUtils stringValue:value]
207-
forKey:key];
206+
[defaultsObject setObject:[TiUtils stringValue:value]
207+
forKey:key];
208208
[defaultsObject synchronize];
209209
}
210210

iphone/Classes/TiAppiOSUserDefaultsProxy.m

+8-8
Original file line numberDiff line numberDiff line change
@@ -138,32 +138,32 @@ - (id)getObject:(id)args
138138
- (void)setBool:(id)args
139139
{
140140
SETPROP
141-
[self.defaultsObject setBool:[TiUtils boolValue:value]
142-
forKey:key];
141+
[self.defaultsObject setBool:[TiUtils boolValue:value]
142+
forKey:key];
143143
[self.defaultsObject synchronize];
144144
}
145145

146146
- (void)setDouble:(id)args
147147
{
148148
SETPROP
149-
[self.defaultsObject setDouble:[TiUtils doubleValue:value]
150-
forKey:key];
149+
[self.defaultsObject setDouble:[TiUtils doubleValue:value]
150+
forKey:key];
151151
[self.defaultsObject synchronize];
152152
}
153153

154154
- (void)setInt:(id)args
155155
{
156156
SETPROP
157-
[self.defaultsObject setInteger:[TiUtils intValue:value]
158-
forKey:key];
157+
[self.defaultsObject setInteger:[TiUtils intValue:value]
158+
forKey:key];
159159
[self.defaultsObject synchronize];
160160
}
161161

162162
- (void)setString:(id)args
163163
{
164164
SETPROP
165-
[self.defaultsObject setObject:[TiUtils stringValue:value]
166-
forKey:key];
165+
[self.defaultsObject setObject:[TiUtils stringValue:value]
166+
forKey:key];
167167
[self.defaultsObject synchronize];
168168
}
169169

iphone/Classes/TiMediaVideoPlayerProxy.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ - (void)setOverlayView:(id)proxy
226226
- (void)setBackgroundView:(id)proxy
227227
{
228228
DEPRECATED_REPLACED(@"Media.VideoPlayer.backgroundView", @"7.0.0", @"Media.VideoPlayer.overlayView")
229-
[selfsetOverlayView:proxy];
229+
[selfsetOverlayView:proxy];
230230
}
231231

232232
- (NSNumber *)playing

iphone/Classes/TiNetworkHTTPClientProxy.m

+18-18
Original file line numberDiff line numberDiff line change
@@ -395,53 +395,53 @@ - (void)request:(APSHTTPRequest *)request onRedirect:(APSHTTPResponse *)response
395395
- (void)setOnload:(id)callback
396396
{
397397
ENSURE_SINGLE_ARG_OR_NIL(callback, KrollCallback)
398-
[selfreplaceValue:callback
399-
forKey:@"onload"
400-
notification:NO];
398+
[selfreplaceValue:callback
399+
forKey:@"onload"
400+
notification:NO];
401401
hasOnload = (callback == nil) ? NO : YES;
402402
}
403403
- (void)setOnerror:(id)callback
404404
{
405405
ENSURE_SINGLE_ARG_OR_NIL(callback, KrollCallback)
406-
[selfreplaceValue:callback
407-
forKey:@"onerror"
408-
notification:NO];
406+
[selfreplaceValue:callback
407+
forKey:@"onerror"
408+
notification:NO];
409409
hasOnerror = (callback == nil) ? NO : YES;
410410
;
411411
}
412412
- (void)setOnreadystatechange:(id)callback
413413
{
414414
ENSURE_SINGLE_ARG_OR_NIL(callback, KrollCallback)
415-
[selfreplaceValue:callback
416-
forKey:@"onreadystatechange"
417-
notification:NO];
415+
[selfreplaceValue:callback
416+
forKey:@"onreadystatechange"
417+
notification:NO];
418418
hasOnreadystatechange = (callback == nil) ? NO : YES;
419419
;
420420
}
421421
- (void)setOndatastream:(id)callback
422422
{
423423
ENSURE_SINGLE_ARG_OR_NIL(callback, KrollCallback)
424-
[selfreplaceValue:callback
425-
forKey:@"ondatastream"
426-
notification:NO];
424+
[selfreplaceValue:callback
425+
forKey:@"ondatastream"
426+
notification:NO];
427427
hasOndatastream = (callback == nil) ? NO : YES;
428428
;
429429
}
430430
- (void)setOnsendstream:(id)callback
431431
{
432432
ENSURE_SINGLE_ARG_OR_NIL(callback, KrollCallback)
433-
[selfreplaceValue:callback
434-
forKey:@"onsendstream"
435-
notification:NO];
433+
[selfreplaceValue:callback
434+
forKey:@"onsendstream"
435+
notification:NO];
436436
hasOnsendstream = (callback == nil) ? NO : YES;
437437
;
438438
}
439439
- (void)setOnredirect:(id)callback
440440
{
441441
ENSURE_SINGLE_ARG_OR_NIL(callback, KrollCallback)
442-
[selfreplaceValue:callback
443-
forKey:@"onredirect"
444-
notification:NO];
442+
[selfreplaceValue:callback
443+
forKey:@"onredirect"
444+
notification:NO];
445445
hasOnredirect = (callback == nil) ? NO : YES;
446446
;
447447
}

iphone/Classes/TiUIDashboardViewProxy.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ - (void)setData:(id)data
7878
{
7979
for (TiViewProxy *proxy in data) {
8080
ENSURE_TYPE(proxy, TiUIDashboardItemProxy)
81-
[selfrememberProxy:proxy];
81+
[selfrememberProxy:proxy];
8282
}
8383

8484
[selfreplaceValue:data forKey:@"data"notification:NO];

iphone/Classes/TiUIScrollableView.m

+7-7
Original file line numberDiff line numberDiff line change
@@ -180,27 +180,27 @@ - (void)removeSubview:(nonnull UIView *)view
180180
- (void)addSubview:(nonnull UIView *)view
181181
{
182182
WRAP_TI_VIEW(view)
183-
[[selfcontentView] addSubview:wrapperView];
183+
[[selfcontentView] addSubview:wrapperView];
184184
}
185185

186186
- (void)insertSubview:(UIView *)viewaboveSubview:(UIView *)siblingSubview
187187
{
188188
WRAP_TI_VIEW(view)
189-
[[selfcontentView] insertSubview:wrapperView
190-
aboveSubview:siblingSubview];
189+
[[selfcontentView] insertSubview:wrapperView
190+
aboveSubview:siblingSubview];
191191
}
192192

193193
- (void)insertSubview:(UIView *)viewatIndex:(NSInteger)index
194194
{
195195
WRAP_TI_VIEW(view)
196-
[[selfcontentView] insertSubview:wrapperView
197-
atIndex:index];
196+
[[selfcontentView] insertSubview:wrapperView
197+
atIndex:index];
198198
}
199199
- (void)insertSubview:(UIView *)viewbelowSubview:(UIView *)siblingSubview
200200
{
201201
WRAP_TI_VIEW(view)
202-
[[selfcontentView] insertSubview:wrapperView
203-
belowSubview:siblingSubview];
202+
[[selfcontentView] insertSubview:wrapperView
203+
belowSubview:siblingSubview];
204204
}
205205
#endif
206206

iphone/Classes/TiUITableView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ - (void)setKeyboardDismissMode_:(id)value
16531653
- (void)setSeparatorInsets_:(id)arg
16541654
{
16551655
DEPRECATED_REPLACED(@"UI.TableView.separatorInsets", @"5.2.0", @"UI.TableView.tableSeparatorInsets")
1656-
[self setTableSeparatorInsets_:arg];
1656+
[self setTableSeparatorInsets_:arg];
16571657
}
16581658

16591659
- (void)setTableSeparatorInsets_:(id)arg

iphone/Classes/UIModule.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ - (NSString *)TEXT_STYLE_LARGE_TITLE
449449
- (void)setOverrideUserInterfaceStyle:(id)args
450450
{
451451
ENSURE_SINGLE_ARG(args, NSNumber)
452-
[selfreplaceValue:args
453-
forKey:@"overrideUserInterfaceStyle"
454-
notification:NO];
452+
[selfreplaceValue:args
453+
forKey:@"overrideUserInterfaceStyle"
454+
notification:NO];
455455
int style = [TiUtils intValue:args def:UIUserInterfaceStyleUnspecified];
456456
TiApp.app.window.overrideUserInterfaceStyle = style;
457457
}

iphone/Classes/WatchSessionModule.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ - (void)transferUserInfo:(id)value
243243
}
244244
ENSURE_SINGLE_ARG(value, NSDictionary)
245245

246-
[[selfwatchSession] transferUserInfo:value];
246+
[[selfwatchSession] transferUserInfo:value];
247247
}
248248

249249
// sent in background
@@ -280,7 +280,7 @@ - (void)transferCurrentComplication:(id)value
280280
}
281281
ENSURE_SINGLE_ARG(value, NSDictionary)
282282

283-
[[selfwatchSession] transferCurrentComplicationUserInfo:value];
283+
[[selfwatchSession] transferCurrentComplicationUserInfo:value];
284284
}
285285

286286
- (void)cancelAllUserInfoTransfers:(id)value

iphone/TitaniumKit/TitaniumKit/Sources/API/SBJSON.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -922,10 +922,10 @@ - (BOOL)scanHexQuad:(unichar *)x error:(NSError **)error
922922
int d = (uc >= '0' && uc <= '9')
923923
? uc - '0'
924924
: (uc >= 'a' && uc <= 'f')
925-
? (uc - 'a' + 10)
926-
: (uc >= 'A' && uc <= 'F')
927-
? (uc - 'A' + 10)
928-
: -1;
925+
? (uc - 'a' + 10)
926+
: (uc >= 'A' && uc <= 'F')
927+
? (uc - 'A' + 10)
928+
: -1;
929929
if (d == -1) {
930930
if (error)
931931
*error = err(EUNICODE, @"Missing hex digit in quad");

iphone/TitaniumKit/TitaniumKit/Sources/API/TiProxy.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ - (void)setValue:(id)value forUndefinedKey:(NSString *)key
11201120
- (void)applyProperties:(id)args
11211121
{
11221122
ENSURE_SINGLE_ARG(args, NSDictionary)
1123-
[self setValuesForKeysWithDictionary:args];
1123+
[self setValuesForKeysWithDictionary:args];
11241124
}
11251125

11261126
- (NSDictionary *)allProperties

0 commit comments

Comments
 (0)
close