Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit 52612f7

Browse files
committed
jscs fixes
1 parent 210a236 commit 52612f7

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

src/mocks/actionSheet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ngCordovaMocks.factory('$cordovaActionSheet', ['$q', function ($q) {
2222
*/
2323
throwsError: throwsError,
2424

25-
show: function() {
25+
show: function () {
2626
var defer = $q.defer();
2727

2828
if (this.throwsError) {

src/mocks/network.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ ngCordovaMocks.factory('$cordovaNetwork', ['$rootScope',function ($rootScope) {
3434
**/
3535
isConnected: isConnected,
3636

37-
switchToOnline: function(){
37+
switchToOnline: function (){
3838
this.isConnected = true;
3939
$rootScope.$broadcast('$cordovaNetwork:online');
4040
},
4141

42-
switchToOffline: function(){
42+
switchToOffline: function (){
4343
this.isConnected = false;
4444
$rootScope.$broadcast('$cordovaNetwork:offline');
4545
},

src/mocks/progressIndicator.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
*/
99

1010
ngCordovaMocks.factory('$cordovaProgress', [
11-
'$timeout', function($timeout) {
11+
'$timeout', function ($timeout) {
1212

1313
return {
14-
show: function(_message) {
14+
show: function (_message) {
1515
var message = _message || 'Please wait...';
1616
console.info('$cordovaProgress.message', message);
1717
},
1818

19-
showSimple: function(_dim) {
19+
showSimple: function (_dim) {
2020
var dim = _dim || false;
2121
console.info('$cordovaProgress.dim', dim);
2222
},
2323

24-
showSimpleWithLabel: function(_dim, _label) {
24+
showSimpleWithLabel: function (_dim, _label) {
2525
var dim = _dim || false;
2626
var label = _label || 'Loading...';
2727
console.group();
@@ -30,7 +30,7 @@ ngCordovaMocks.factory('$cordovaProgress', [
3030
console.groupEnd();
3131
},
3232

33-
showSimpleWithLabelDetail: function(_dim, _label, _detail) {
33+
showSimpleWithLabelDetail: function (_dim, _label, _detail) {
3434
var dim = _dim || false;
3535
var label = _label || 'Loading...';
3636
var detail = _detail || 'Please wait';
@@ -42,19 +42,19 @@ ngCordovaMocks.factory('$cordovaProgress', [
4242
console.groupEnd();
4343
},
4444

45-
showDeterminate: function(_dim, _timeout) {
45+
showDeterminate: function (_dim, _timeout) {
4646
var dim = _dim || false;
4747
var timeout = _timeout || 50000;
4848
console.group();
4949
console.info('$cordovaProgress.dim show', dim);
5050
console.info('$cordovaProgress.timeout', timeout);
5151
console.groupEnd();
52-
$timeout(function() {
52+
$timeout(function () {
5353
console.info('$cordovaProgress.dim timeout', dim);
5454
}, timeout);
5555
},
5656

57-
showDeterminateWithLabel: function(_dim, _timeout, _label) {
57+
showDeterminateWithLabel: function (_dim, _timeout, _label) {
5858
var dim = _dim || false;
5959
var timeout = _timeout || 50000;
6060
var label = _label || 'Loading...';
@@ -64,25 +64,25 @@ ngCordovaMocks.factory('$cordovaProgress', [
6464
console.info('$cordovaProgress.timeout', timeout);
6565
console.info('$cordovaProgress.label', label);
6666
console.groupEnd();
67-
$timeout(function() {
67+
$timeout(function () {
6868
console.info('$cordovaProgress[dim, label] timeout', [dim, label]);
6969
}, timeout);
7070
},
7171

72-
showAnnular: function(_dim, _timeout) {
72+
showAnnular: function (_dim, _timeout) {
7373
var dim = _dim || false;
7474
var timeout = _timeout || 50000;
7575

7676
console.group();
7777
console.info('$cordovaProgress.dim', dim);
7878
console.info('$cordovaProgress.timeout', timeout);
7979
console.groupEnd();
80-
$timeout(function() {
80+
$timeout(function () {
8181
console.info('$cordovaProgress.dim timeout', dim);
8282
}, timeout);
8383
},
8484

85-
showAnnularWithLabel: function(_dim, _timeout, _label) {
85+
showAnnularWithLabel: function (_dim, _timeout, _label) {
8686
var dim = _dim || false;
8787
var timeout = _timeout || 50000;
8888
var label = _label || 'Loading...';
@@ -92,25 +92,25 @@ ngCordovaMocks.factory('$cordovaProgress', [
9292
console.info('$cordovaProgress.timeout', timeout);
9393
console.info('$cordovaProgress.label', label);
9494
console.groupEnd();
95-
$timeout(function() {
95+
$timeout(function () {
9696
console.info('$cordovaProgress[dim, label] timeout', [dim, label]);
9797
}, timeout);
9898
},
9999

100-
showBar: function(_dim, _timeout) {
100+
showBar: function (_dim, _timeout) {
101101
var dim = _dim || false;
102102
var timeout = _timeout || 50000;
103103

104104
console.group();
105105
console.info('$cordovaProgress.dim', dim);
106106
console.info('$cordovaProgress.timeout', timeout);
107107
console.groupEnd();
108-
$timeout(function() {
108+
$timeout(function () {
109109
console.info('$cordovaProgress.dim timeout', dim);
110110
}, timeout);
111111
},
112112

113-
showBarWithLabel: function(_dim, _timeout, _label) {
113+
showBarWithLabel: function (_dim, _timeout, _label) {
114114
var dim = _dim || false;
115115
var timeout = _timeout || 50000;
116116
var label = _label || 'Loading...';
@@ -119,12 +119,12 @@ ngCordovaMocks.factory('$cordovaProgress', [
119119
console.info('$cordovaProgress.label', label);
120120
console.info('$cordovaProgress.timeout', timeout);
121121
console.groupEnd();
122-
$timeout(function() {
122+
$timeout(function () {
123123
console.info('$cordovaProgress[dim, label] timeout', [dim, label]);
124124
}, timeout);
125125
},
126126

127-
showSuccess: function(_dim, _label) {
127+
showSuccess: function (_dim, _label) {
128128
var dim = _dim || false;
129129
var label = _label || 'Success';
130130
console.group();
@@ -133,7 +133,7 @@ ngCordovaMocks.factory('$cordovaProgress', [
133133
console.groupEnd();
134134
},
135135

136-
showText: function(_dim, _text, _position) {
136+
showText: function (_dim, _text, _position) {
137137
var dim = _dim || false;
138138
var text = _text || 'Warning';
139139
var position = _position || 'center';
@@ -144,7 +144,7 @@ ngCordovaMocks.factory('$cordovaProgress', [
144144
console.groupEnd();
145145
},
146146

147-
hide: function() {
147+
hide: function () {
148148
console.info('$cordovaProgress.hide');
149149
}
150150
};

0 commit comments

Comments
 (0)