Passed
Push — main ( aaef5c...e4c121 )
by TARIQ
71:39
created
plugins/woocommerce/i18n/phone.php 2 patches
Indentation   +257 added lines, -257 removed lines patch added patch discarded remove patch
@@ -10,261 +10,261 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 return array(
13
-	'BD' => '+880',
14
-	'BE' => '+32',
15
-	'BF' => '+226',
16
-	'BG' => '+359',
17
-	'BA' => '+387',
18
-	'BB' => '+1246',
19
-	'WF' => '+681',
20
-	'BL' => '+590',
21
-	'BM' => '+1441',
22
-	'BN' => '+673',
23
-	'BO' => '+591',
24
-	'BH' => '+973',
25
-	'BI' => '+257',
26
-	'BJ' => '+229',
27
-	'BT' => '+975',
28
-	'JM' => '+1876',
29
-	'BV' => '',
30
-	'BW' => '+267',
31
-	'WS' => '+685',
32
-	'BQ' => '+599',
33
-	'BR' => '+55',
34
-	'BS' => '+1242',
35
-	'JE' => '+441534',
36
-	'BY' => '+375',
37
-	'BZ' => '+501',
38
-	'RU' => '+7',
39
-	'RW' => '+250',
40
-	'RS' => '+381',
41
-	'TL' => '+670',
42
-	'RE' => '+262',
43
-	'TM' => '+993',
44
-	'TJ' => '+992',
45
-	'RO' => '+40',
46
-	'TK' => '+690',
47
-	'GW' => '+245',
48
-	'GU' => '+1671',
49
-	'GT' => '+502',
50
-	'GS' => '',
51
-	'GR' => '+30',
52
-	'GQ' => '+240',
53
-	'GP' => '+590',
54
-	'JP' => '+81',
55
-	'GY' => '+592',
56
-	'GG' => '+441481',
57
-	'GF' => '+594',
58
-	'GE' => '+995',
59
-	'GD' => '+1473',
60
-	'GB' => '+44',
61
-	'GA' => '+241',
62
-	'SV' => '+503',
63
-	'GN' => '+224',
64
-	'GM' => '+220',
65
-	'GL' => '+299',
66
-	'GI' => '+350',
67
-	'GH' => '+233',
68
-	'OM' => '+968',
69
-	'TN' => '+216',
70
-	'JO' => '+962',
71
-	'HR' => '+385',
72
-	'HT' => '+509',
73
-	'HU' => '+36',
74
-	'HK' => '+852',
75
-	'HN' => '+504',
76
-	'HM' => '',
77
-	'VE' => '+58',
78
-	'PR' => array(
79
-		'+1787',
80
-		'+1939',
81
-	),
82
-	'PS' => '+970',
83
-	'PW' => '+680',
84
-	'PT' => '+351',
85
-	'SJ' => '+47',
86
-	'PY' => '+595',
87
-	'IQ' => '+964',
88
-	'PA' => '+507',
89
-	'PF' => '+689',
90
-	'PG' => '+675',
91
-	'PE' => '+51',
92
-	'PK' => '+92',
93
-	'PH' => '+63',
94
-	'PN' => '+870',
95
-	'PL' => '+48',
96
-	'PM' => '+508',
97
-	'ZM' => '+260',
98
-	'EH' => '+212',
99
-	'EE' => '+372',
100
-	'EG' => '+20',
101
-	'ZA' => '+27',
102
-	'EC' => '+593',
103
-	'IT' => '+39',
104
-	'VN' => '+84',
105
-	'SB' => '+677',
106
-	'ET' => '+251',
107
-	'SO' => '+252',
108
-	'ZW' => '+263',
109
-	'SA' => '+966',
110
-	'ES' => '+34',
111
-	'ER' => '+291',
112
-	'ME' => '+382',
113
-	'MD' => '+373',
114
-	'MG' => '+261',
115
-	'MF' => '+590',
116
-	'MA' => '+212',
117
-	'MC' => '+377',
118
-	'UZ' => '+998',
119
-	'MM' => '+95',
120
-	'ML' => '+223',
121
-	'MO' => '+853',
122
-	'MN' => '+976',
123
-	'MH' => '+692',
124
-	'MK' => '+389',
125
-	'MU' => '+230',
126
-	'MT' => '+356',
127
-	'MW' => '+265',
128
-	'MV' => '+960',
129
-	'MQ' => '+596',
130
-	'MP' => '+1670',
131
-	'MS' => '+1664',
132
-	'MR' => '+222',
133
-	'IM' => '+441624',
134
-	'UG' => '+256',
135
-	'TZ' => '+255',
136
-	'MY' => '+60',
137
-	'MX' => '+52',
138
-	'IL' => '+972',
139
-	'FR' => '+33',
140
-	'IO' => '+246',
141
-	'SH' => '+290',
142
-	'FI' => '+358',
143
-	'FJ' => '+679',
144
-	'FK' => '+500',
145
-	'FM' => '+691',
146
-	'FO' => '+298',
147
-	'NI' => '+505',
148
-	'NL' => '+31',
149
-	'NO' => '+47',
150
-	'NA' => '+264',
151
-	'VU' => '+678',
152
-	'NC' => '+687',
153
-	'NE' => '+227',
154
-	'NF' => '+672',
155
-	'NG' => '+234',
156
-	'NZ' => '+64',
157
-	'NP' => '+977',
158
-	'NR' => '+674',
159
-	'NU' => '+683',
160
-	'CK' => '+682',
161
-	'XK' => '',
162
-	'CI' => '+225',
163
-	'CH' => '+41',
164
-	'CO' => '+57',
165
-	'CN' => '+86',
166
-	'CM' => '+237',
167
-	'CL' => '+56',
168
-	'CC' => '+61',
169
-	'CA' => '+1',
170
-	'CG' => '+242',
171
-	'CF' => '+236',
172
-	'CD' => '+243',
173
-	'CZ' => '+420',
174
-	'CY' => '+357',
175
-	'CX' => '+61',
176
-	'CR' => '+506',
177
-	'CW' => '+599',
178
-	'CV' => '+238',
179
-	'CU' => '+53',
180
-	'SZ' => '+268',
181
-	'SY' => '+963',
182
-	'SX' => '+599',
183
-	'KG' => '+996',
184
-	'KE' => '+254',
185
-	'SS' => '+211',
186
-	'SR' => '+597',
187
-	'KI' => '+686',
188
-	'KH' => '+855',
189
-	'KN' => '+1869',
190
-	'KM' => '+269',
191
-	'ST' => '+239',
192
-	'SK' => '+421',
193
-	'KR' => '+82',
194
-	'SI' => '+386',
195
-	'KP' => '+850',
196
-	'KW' => '+965',
197
-	'SN' => '+221',
198
-	'SM' => '+378',
199
-	'SL' => '+232',
200
-	'SC' => '+248',
201
-	'KZ' => '+7',
202
-	'KY' => '+1345',
203
-	'SG' => '+65',
204
-	'SE' => '+46',
205
-	'SD' => '+249',
206
-	'DO' => array(
207
-		'+1809',
208
-		'+1829',
209
-		'+1849',
210
-	),
211
-	'DM' => '+1767',
212
-	'DJ' => '+253',
213
-	'DK' => '+45',
214
-	'VG' => '+1284',
215
-	'DE' => '+49',
216
-	'YE' => '+967',
217
-	'DZ' => '+213',
218
-	'US' => '+1',
219
-	'UY' => '+598',
220
-	'YT' => '+262',
221
-	'UM' => '+1',
222
-	'LB' => '+961',
223
-	'LC' => '+1758',
224
-	'LA' => '+856',
225
-	'TV' => '+688',
226
-	'TW' => '+886',
227
-	'TT' => '+1868',
228
-	'TR' => '+90',
229
-	'LK' => '+94',
230
-	'LI' => '+423',
231
-	'LV' => '+371',
232
-	'TO' => '+676',
233
-	'LT' => '+370',
234
-	'LU' => '+352',
235
-	'LR' => '+231',
236
-	'LS' => '+266',
237
-	'TH' => '+66',
238
-	'TF' => '',
239
-	'TG' => '+228',
240
-	'TD' => '+235',
241
-	'TC' => '+1649',
242
-	'LY' => '+218',
243
-	'VA' => '+379',
244
-	'VC' => '+1784',
245
-	'AE' => '+971',
246
-	'AD' => '+376',
247
-	'AG' => '+1268',
248
-	'AF' => '+93',
249
-	'AI' => '+1264',
250
-	'VI' => '+1340',
251
-	'IS' => '+354',
252
-	'IR' => '+98',
253
-	'AM' => '+374',
254
-	'AL' => '+355',
255
-	'AO' => '+244',
256
-	'AQ' => '',
257
-	'AS' => '+1684',
258
-	'AR' => '+54',
259
-	'AU' => '+61',
260
-	'AT' => '+43',
261
-	'AW' => '+297',
262
-	'IN' => '+91',
263
-	'AX' => '+35818',
264
-	'AZ' => '+994',
265
-	'IE' => '+353',
266
-	'ID' => '+62',
267
-	'UA' => '+380',
268
-	'QA' => '+974',
269
-	'MZ' => '+258',
13
+    'BD' => '+880',
14
+    'BE' => '+32',
15
+    'BF' => '+226',
16
+    'BG' => '+359',
17
+    'BA' => '+387',
18
+    'BB' => '+1246',
19
+    'WF' => '+681',
20
+    'BL' => '+590',
21
+    'BM' => '+1441',
22
+    'BN' => '+673',
23
+    'BO' => '+591',
24
+    'BH' => '+973',
25
+    'BI' => '+257',
26
+    'BJ' => '+229',
27
+    'BT' => '+975',
28
+    'JM' => '+1876',
29
+    'BV' => '',
30
+    'BW' => '+267',
31
+    'WS' => '+685',
32
+    'BQ' => '+599',
33
+    'BR' => '+55',
34
+    'BS' => '+1242',
35
+    'JE' => '+441534',
36
+    'BY' => '+375',
37
+    'BZ' => '+501',
38
+    'RU' => '+7',
39
+    'RW' => '+250',
40
+    'RS' => '+381',
41
+    'TL' => '+670',
42
+    'RE' => '+262',
43
+    'TM' => '+993',
44
+    'TJ' => '+992',
45
+    'RO' => '+40',
46
+    'TK' => '+690',
47
+    'GW' => '+245',
48
+    'GU' => '+1671',
49
+    'GT' => '+502',
50
+    'GS' => '',
51
+    'GR' => '+30',
52
+    'GQ' => '+240',
53
+    'GP' => '+590',
54
+    'JP' => '+81',
55
+    'GY' => '+592',
56
+    'GG' => '+441481',
57
+    'GF' => '+594',
58
+    'GE' => '+995',
59
+    'GD' => '+1473',
60
+    'GB' => '+44',
61
+    'GA' => '+241',
62
+    'SV' => '+503',
63
+    'GN' => '+224',
64
+    'GM' => '+220',
65
+    'GL' => '+299',
66
+    'GI' => '+350',
67
+    'GH' => '+233',
68
+    'OM' => '+968',
69
+    'TN' => '+216',
70
+    'JO' => '+962',
71
+    'HR' => '+385',
72
+    'HT' => '+509',
73
+    'HU' => '+36',
74
+    'HK' => '+852',
75
+    'HN' => '+504',
76
+    'HM' => '',
77
+    'VE' => '+58',
78
+    'PR' => array(
79
+        '+1787',
80
+        '+1939',
81
+    ),
82
+    'PS' => '+970',
83
+    'PW' => '+680',
84
+    'PT' => '+351',
85
+    'SJ' => '+47',
86
+    'PY' => '+595',
87
+    'IQ' => '+964',
88
+    'PA' => '+507',
89
+    'PF' => '+689',
90
+    'PG' => '+675',
91
+    'PE' => '+51',
92
+    'PK' => '+92',
93
+    'PH' => '+63',
94
+    'PN' => '+870',
95
+    'PL' => '+48',
96
+    'PM' => '+508',
97
+    'ZM' => '+260',
98
+    'EH' => '+212',
99
+    'EE' => '+372',
100
+    'EG' => '+20',
101
+    'ZA' => '+27',
102
+    'EC' => '+593',
103
+    'IT' => '+39',
104
+    'VN' => '+84',
105
+    'SB' => '+677',
106
+    'ET' => '+251',
107
+    'SO' => '+252',
108
+    'ZW' => '+263',
109
+    'SA' => '+966',
110
+    'ES' => '+34',
111
+    'ER' => '+291',
112
+    'ME' => '+382',
113
+    'MD' => '+373',
114
+    'MG' => '+261',
115
+    'MF' => '+590',
116
+    'MA' => '+212',
117
+    'MC' => '+377',
118
+    'UZ' => '+998',
119
+    'MM' => '+95',
120
+    'ML' => '+223',
121
+    'MO' => '+853',
122
+    'MN' => '+976',
123
+    'MH' => '+692',
124
+    'MK' => '+389',
125
+    'MU' => '+230',
126
+    'MT' => '+356',
127
+    'MW' => '+265',
128
+    'MV' => '+960',
129
+    'MQ' => '+596',
130
+    'MP' => '+1670',
131
+    'MS' => '+1664',
132
+    'MR' => '+222',
133
+    'IM' => '+441624',
134
+    'UG' => '+256',
135
+    'TZ' => '+255',
136
+    'MY' => '+60',
137
+    'MX' => '+52',
138
+    'IL' => '+972',
139
+    'FR' => '+33',
140
+    'IO' => '+246',
141
+    'SH' => '+290',
142
+    'FI' => '+358',
143
+    'FJ' => '+679',
144
+    'FK' => '+500',
145
+    'FM' => '+691',
146
+    'FO' => '+298',
147
+    'NI' => '+505',
148
+    'NL' => '+31',
149
+    'NO' => '+47',
150
+    'NA' => '+264',
151
+    'VU' => '+678',
152
+    'NC' => '+687',
153
+    'NE' => '+227',
154
+    'NF' => '+672',
155
+    'NG' => '+234',
156
+    'NZ' => '+64',
157
+    'NP' => '+977',
158
+    'NR' => '+674',
159
+    'NU' => '+683',
160
+    'CK' => '+682',
161
+    'XK' => '',
162
+    'CI' => '+225',
163
+    'CH' => '+41',
164
+    'CO' => '+57',
165
+    'CN' => '+86',
166
+    'CM' => '+237',
167
+    'CL' => '+56',
168
+    'CC' => '+61',
169
+    'CA' => '+1',
170
+    'CG' => '+242',
171
+    'CF' => '+236',
172
+    'CD' => '+243',
173
+    'CZ' => '+420',
174
+    'CY' => '+357',
175
+    'CX' => '+61',
176
+    'CR' => '+506',
177
+    'CW' => '+599',
178
+    'CV' => '+238',
179
+    'CU' => '+53',
180
+    'SZ' => '+268',
181
+    'SY' => '+963',
182
+    'SX' => '+599',
183
+    'KG' => '+996',
184
+    'KE' => '+254',
185
+    'SS' => '+211',
186
+    'SR' => '+597',
187
+    'KI' => '+686',
188
+    'KH' => '+855',
189
+    'KN' => '+1869',
190
+    'KM' => '+269',
191
+    'ST' => '+239',
192
+    'SK' => '+421',
193
+    'KR' => '+82',
194
+    'SI' => '+386',
195
+    'KP' => '+850',
196
+    'KW' => '+965',
197
+    'SN' => '+221',
198
+    'SM' => '+378',
199
+    'SL' => '+232',
200
+    'SC' => '+248',
201
+    'KZ' => '+7',
202
+    'KY' => '+1345',
203
+    'SG' => '+65',
204
+    'SE' => '+46',
205
+    'SD' => '+249',
206
+    'DO' => array(
207
+        '+1809',
208
+        '+1829',
209
+        '+1849',
210
+    ),
211
+    'DM' => '+1767',
212
+    'DJ' => '+253',
213
+    'DK' => '+45',
214
+    'VG' => '+1284',
215
+    'DE' => '+49',
216
+    'YE' => '+967',
217
+    'DZ' => '+213',
218
+    'US' => '+1',
219
+    'UY' => '+598',
220
+    'YT' => '+262',
221
+    'UM' => '+1',
222
+    'LB' => '+961',
223
+    'LC' => '+1758',
224
+    'LA' => '+856',
225
+    'TV' => '+688',
226
+    'TW' => '+886',
227
+    'TT' => '+1868',
228
+    'TR' => '+90',
229
+    'LK' => '+94',
230
+    'LI' => '+423',
231
+    'LV' => '+371',
232
+    'TO' => '+676',
233
+    'LT' => '+370',
234
+    'LU' => '+352',
235
+    'LR' => '+231',
236
+    'LS' => '+266',
237
+    'TH' => '+66',
238
+    'TF' => '',
239
+    'TG' => '+228',
240
+    'TD' => '+235',
241
+    'TC' => '+1649',
242
+    'LY' => '+218',
243
+    'VA' => '+379',
244
+    'VC' => '+1784',
245
+    'AE' => '+971',
246
+    'AD' => '+376',
247
+    'AG' => '+1268',
248
+    'AF' => '+93',
249
+    'AI' => '+1264',
250
+    'VI' => '+1340',
251
+    'IS' => '+354',
252
+    'IR' => '+98',
253
+    'AM' => '+374',
254
+    'AL' => '+355',
255
+    'AO' => '+244',
256
+    'AQ' => '',
257
+    'AS' => '+1684',
258
+    'AR' => '+54',
259
+    'AU' => '+61',
260
+    'AT' => '+43',
261
+    'AW' => '+297',
262
+    'IN' => '+91',
263
+    'AX' => '+35818',
264
+    'AZ' => '+994',
265
+    'IE' => '+353',
266
+    'ID' => '+62',
267
+    'UA' => '+380',
268
+    'QA' => '+974',
269
+    'MZ' => '+258',
270 270
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  * @package WooCommerce\i18n
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12 12
 return array(
13 13
 	'BD' => '+880',
Please login to merge, or discard this patch.
lib/packages/League/Container/Argument/ArgumentResolverTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function resolveArguments(array $arguments) : array
18 18
     {
19
-        return array_map(function ($argument) {
19
+        return array_map(function($argument) {
20 20
             $justStringValue = false;
21 21
 
22 22
             if ($argument instanceof RawArgumentInterface) {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function reflectArguments(ReflectionFunctionAbstract $method, array $args = []) : array
72 72
     {
73
-        $arguments = array_map(function (ReflectionParameter $param) use ($method, $args) {
73
+        $arguments = array_map(function(ReflectionParameter $param) use ($method, $args) {
74 74
             $name = $param->getName();
75 75
             $type = $param->getType();
76 76
 
Please login to merge, or discard this patch.
plugins/woocommerce/lib/packages/League/Container/Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
         InflectorAggregateInterface       $inflectors = null
53 53
     ) {
54 54
         $this->definitions = $definitions ?? new DefinitionAggregate;
55
-        $this->providers   = $providers   ?? new ServiceProviderAggregate;
56
-        $this->inflectors  = $inflectors  ?? new InflectorAggregate;
55
+        $this->providers   = $providers ?? new ServiceProviderAggregate;
56
+        $this->inflectors  = $inflectors ?? new InflectorAggregate;
57 57
 
58 58
         if ($this->definitions instanceof ContainerAwareInterface) {
59 59
             $this->definitions->setLeagueContainer($this);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         if ($this->definitions->hasTag($id)) {
162 162
             $arrayOf = $this->definitions->resolveTagged($id, $new);
163 163
 
164
-            array_walk($arrayOf, function (&$resolved) {
164
+            array_walk($arrayOf, function(&$resolved) {
165 165
                 $resolved = $this->inflectors->inflect($resolved);
166 166
             });
167 167
 
Please login to merge, or discard this patch.
plugins/woocommerce/lib/packages/League/Container/ReflectionContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             return $this->cache[$id];
39 39
         }
40 40
 
41
-        if (! $this->has($id)) {
41
+        if (!$this->has($id)) {
42 42
             throw new NotFoundException(
43 43
                 sprintf('Alias (%s) is not an existing class and therefore cannot be resolved', $id)
44 44
             );
Please login to merge, or discard this patch.
woocommerce/lib/packages/League/Container/Inflector/InflectorAggregate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         foreach ($this->getIterator() as $inflector) {
46 46
             $type = $inflector->getType();
47 47
 
48
-            if (! $object instanceof $type) {
48
+            if (!$object instanceof $type) {
49 49
                 continue;
50 50
             }
51 51
 
Please login to merge, or discard this patch.
lib/packages/League/Container/Definition/DefinitionAggregate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function __construct(array $definitions = [])
24 24
     {
25
-        $this->definitions = array_filter($definitions, function ($definition) {
25
+        $this->definitions = array_filter($definitions, function($definition) {
26 26
             return ($definition instanceof DefinitionInterface);
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
woocommerce/includes/interfaces/class-wc-customer-data-store-interface.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -15,27 +15,27 @@
 block discarded – undo
15 15
  */
16 16
 interface WC_Customer_Data_Store_Interface {
17 17
 
18
-	/**
19
-	 * Gets the customers last order.
20
-	 *
21
-	 * @param WC_Customer $customer Customer object.
22
-	 * @return WC_Order|false
23
-	 */
24
-	public function get_last_order( &$customer );
18
+    /**
19
+     * Gets the customers last order.
20
+     *
21
+     * @param WC_Customer $customer Customer object.
22
+     * @return WC_Order|false
23
+     */
24
+    public function get_last_order( &$customer );
25 25
 
26
-	/**
27
-	 * Return the number of orders this customer has.
28
-	 *
29
-	 * @param WC_Customer $customer Customer object.
30
-	 * @return integer
31
-	 */
32
-	public function get_order_count( &$customer );
26
+    /**
27
+     * Return the number of orders this customer has.
28
+     *
29
+     * @param WC_Customer $customer Customer object.
30
+     * @return integer
31
+     */
32
+    public function get_order_count( &$customer );
33 33
 
34
-	/**
35
-	 * Return how much money this customer has spent.
36
-	 *
37
-	 * @param WC_Customer $customer Customer object.
38
-	 * @return float
39
-	 */
40
-	public function get_total_spent( &$customer );
34
+    /**
35
+     * Return how much money this customer has spent.
36
+     *
37
+     * @param WC_Customer $customer Customer object.
38
+     * @return float
39
+     */
40
+    public function get_total_spent( &$customer );
41 41
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 * @param WC_Customer $customer Customer object.
22 22
 	 * @return WC_Order|false
23 23
 	 */
24
-	public function get_last_order( &$customer );
24
+	public function get_last_order(&$customer);
25 25
 
26 26
 	/**
27 27
 	 * Return the number of orders this customer has.
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 * @param WC_Customer $customer Customer object.
30 30
 	 * @return integer
31 31
 	 */
32
-	public function get_order_count( &$customer );
32
+	public function get_order_count(&$customer);
33 33
 
34 34
 	/**
35 35
 	 * Return how much money this customer has spent.
@@ -37,5 +37,5 @@  discard block
 block discarded – undo
37 37
 	 * @param WC_Customer $customer Customer object.
38 38
 	 * @return float
39 39
 	 */
40
-	public function get_total_spent( &$customer );
40
+	public function get_total_spent(&$customer);
41 41
 }
Please login to merge, or discard this patch.
plugins/woocommerce/includes/interfaces/class-wc-logger-interface.php 2 patches
Indentation   +108 added lines, -108 removed lines patch added patch discarded remove patch
@@ -15,121 +15,121 @@
 block discarded – undo
15 15
  */
16 16
 interface WC_Logger_Interface {
17 17
 
18
-	/**
19
-	 * Add a log entry.
20
-	 *
21
-	 * This is not the preferred method for adding log messages. Please use log() or any one of
22
-	 * the level methods (debug(), info(), etc.). This method may be deprecated in the future.
23
-	 *
24
-	 * @param string $handle File handle.
25
-	 * @param string $message Log message.
26
-	 * @param string $level Log level.
27
-	 *
28
-	 * @return bool True if log was added, otherwise false.
29
-	 */
30
-	public function add( $handle, $message, $level = WC_Log_Levels::NOTICE );
18
+    /**
19
+     * Add a log entry.
20
+     *
21
+     * This is not the preferred method for adding log messages. Please use log() or any one of
22
+     * the level methods (debug(), info(), etc.). This method may be deprecated in the future.
23
+     *
24
+     * @param string $handle File handle.
25
+     * @param string $message Log message.
26
+     * @param string $level Log level.
27
+     *
28
+     * @return bool True if log was added, otherwise false.
29
+     */
30
+    public function add( $handle, $message, $level = WC_Log_Levels::NOTICE );
31 31
 
32
-	/**
33
-	 * Add a log entry.
34
-	 *
35
-	 * @param string $level One of the following:
36
-	 *     'emergency': System is unusable.
37
-	 *     'alert': Action must be taken immediately.
38
-	 *     'critical': Critical conditions.
39
-	 *     'error': Error conditions.
40
-	 *     'warning': Warning conditions.
41
-	 *     'notice': Normal but significant condition.
42
-	 *     'info': Informational messages.
43
-	 *     'debug': Debug-level messages.
44
-	 * @param string $message Log message.
45
-	 * @param array  $context Optional. Additional information for log handlers.
46
-	 */
47
-	public function log( $level, $message, $context = array() );
32
+    /**
33
+     * Add a log entry.
34
+     *
35
+     * @param string $level One of the following:
36
+     *     'emergency': System is unusable.
37
+     *     'alert': Action must be taken immediately.
38
+     *     'critical': Critical conditions.
39
+     *     'error': Error conditions.
40
+     *     'warning': Warning conditions.
41
+     *     'notice': Normal but significant condition.
42
+     *     'info': Informational messages.
43
+     *     'debug': Debug-level messages.
44
+     * @param string $message Log message.
45
+     * @param array  $context Optional. Additional information for log handlers.
46
+     */
47
+    public function log( $level, $message, $context = array() );
48 48
 
49
-	/**
50
-	 * Adds an emergency level message.
51
-	 *
52
-	 * System is unusable.
53
-	 *
54
-	 * @param string $message Log message.
55
-	 * @param array  $context Optional. Additional information for log handlers.
56
-	 */
57
-	public function emergency( $message, $context = array() );
49
+    /**
50
+     * Adds an emergency level message.
51
+     *
52
+     * System is unusable.
53
+     *
54
+     * @param string $message Log message.
55
+     * @param array  $context Optional. Additional information for log handlers.
56
+     */
57
+    public function emergency( $message, $context = array() );
58 58
 
59
-	/**
60
-	 * Adds an alert level message.
61
-	 *
62
-	 * Action must be taken immediately.
63
-	 * Example: Entire website down, database unavailable, etc.
64
-	 *
65
-	 * @param string $message Log message.
66
-	 * @param array  $context Optional. Additional information for log handlers.
67
-	 */
68
-	public function alert( $message, $context = array() );
59
+    /**
60
+     * Adds an alert level message.
61
+     *
62
+     * Action must be taken immediately.
63
+     * Example: Entire website down, database unavailable, etc.
64
+     *
65
+     * @param string $message Log message.
66
+     * @param array  $context Optional. Additional information for log handlers.
67
+     */
68
+    public function alert( $message, $context = array() );
69 69
 
70
-	/**
71
-	 * Adds a critical level message.
72
-	 *
73
-	 * Critical conditions.
74
-	 * Example: Application component unavailable, unexpected exception.
75
-	 *
76
-	 * @param string $message Log message.
77
-	 * @param array  $context Optional. Additional information for log handlers.
78
-	 */
79
-	public function critical( $message, $context = array() );
70
+    /**
71
+     * Adds a critical level message.
72
+     *
73
+     * Critical conditions.
74
+     * Example: Application component unavailable, unexpected exception.
75
+     *
76
+     * @param string $message Log message.
77
+     * @param array  $context Optional. Additional information for log handlers.
78
+     */
79
+    public function critical( $message, $context = array() );
80 80
 
81
-	/**
82
-	 * Adds an error level message.
83
-	 *
84
-	 * Runtime errors that do not require immediate action but should typically be logged
85
-	 * and monitored.
86
-	 *
87
-	 * @param string $message Log message.
88
-	 * @param array  $context Optional. Additional information for log handlers.
89
-	 */
90
-	public function error( $message, $context = array() );
81
+    /**
82
+     * Adds an error level message.
83
+     *
84
+     * Runtime errors that do not require immediate action but should typically be logged
85
+     * and monitored.
86
+     *
87
+     * @param string $message Log message.
88
+     * @param array  $context Optional. Additional information for log handlers.
89
+     */
90
+    public function error( $message, $context = array() );
91 91
 
92
-	/**
93
-	 * Adds a warning level message.
94
-	 *
95
-	 * Exceptional occurrences that are not errors.
96
-	 *
97
-	 * Example: Use of deprecated APIs, poor use of an API, undesirable things that are not
98
-	 * necessarily wrong.
99
-	 *
100
-	 * @param string $message Log message.
101
-	 * @param array  $context Optional. Additional information for log handlers.
102
-	 */
103
-	public function warning( $message, $context = array() );
92
+    /**
93
+     * Adds a warning level message.
94
+     *
95
+     * Exceptional occurrences that are not errors.
96
+     *
97
+     * Example: Use of deprecated APIs, poor use of an API, undesirable things that are not
98
+     * necessarily wrong.
99
+     *
100
+     * @param string $message Log message.
101
+     * @param array  $context Optional. Additional information for log handlers.
102
+     */
103
+    public function warning( $message, $context = array() );
104 104
 
105
-	/**
106
-	 * Adds a notice level message.
107
-	 *
108
-	 * Normal but significant events.
109
-	 *
110
-	 * @param string $message Log message.
111
-	 * @param array  $context Optional. Additional information for log handlers.
112
-	 */
113
-	public function notice( $message, $context = array() );
105
+    /**
106
+     * Adds a notice level message.
107
+     *
108
+     * Normal but significant events.
109
+     *
110
+     * @param string $message Log message.
111
+     * @param array  $context Optional. Additional information for log handlers.
112
+     */
113
+    public function notice( $message, $context = array() );
114 114
 
115
-	/**
116
-	 * Adds a info level message.
117
-	 *
118
-	 * Interesting events.
119
-	 * Example: User logs in, SQL logs.
120
-	 *
121
-	 * @param string $message Log message.
122
-	 * @param array  $context Optional. Additional information for log handlers.
123
-	 */
124
-	public function info( $message, $context = array() );
115
+    /**
116
+     * Adds a info level message.
117
+     *
118
+     * Interesting events.
119
+     * Example: User logs in, SQL logs.
120
+     *
121
+     * @param string $message Log message.
122
+     * @param array  $context Optional. Additional information for log handlers.
123
+     */
124
+    public function info( $message, $context = array() );
125 125
 
126
-	/**
127
-	 * Adds a debug level message.
128
-	 *
129
-	 * Detailed debug information.
130
-	 *
131
-	 * @param string $message Log message.
132
-	 * @param array  $context Optional. Additional information for log handlers.
133
-	 */
134
-	public function debug( $message, $context = array() );
126
+    /**
127
+     * Adds a debug level message.
128
+     *
129
+     * Detailed debug information.
130
+     *
131
+     * @param string $message Log message.
132
+     * @param array  $context Optional. Additional information for log handlers.
133
+     */
134
+    public function debug( $message, $context = array() );
135 135
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 *
28 28
 	 * @return bool True if log was added, otherwise false.
29 29
 	 */
30
-	public function add( $handle, $message, $level = WC_Log_Levels::NOTICE );
30
+	public function add($handle, $message, $level = WC_Log_Levels::NOTICE);
31 31
 
32 32
 	/**
33 33
 	 * Add a log entry.
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	 * @param string $message Log message.
45 45
 	 * @param array  $context Optional. Additional information for log handlers.
46 46
 	 */
47
-	public function log( $level, $message, $context = array() );
47
+	public function log($level, $message, $context = array());
48 48
 
49 49
 	/**
50 50
 	 * Adds an emergency level message.
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 * @param string $message Log message.
55 55
 	 * @param array  $context Optional. Additional information for log handlers.
56 56
 	 */
57
-	public function emergency( $message, $context = array() );
57
+	public function emergency($message, $context = array());
58 58
 
59 59
 	/**
60 60
 	 * Adds an alert level message.
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * @param string $message Log message.
66 66
 	 * @param array  $context Optional. Additional information for log handlers.
67 67
 	 */
68
-	public function alert( $message, $context = array() );
68
+	public function alert($message, $context = array());
69 69
 
70 70
 	/**
71 71
 	 * Adds a critical level message.
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 * @param string $message Log message.
77 77
 	 * @param array  $context Optional. Additional information for log handlers.
78 78
 	 */
79
-	public function critical( $message, $context = array() );
79
+	public function critical($message, $context = array());
80 80
 
81 81
 	/**
82 82
 	 * Adds an error level message.
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * @param string $message Log message.
88 88
 	 * @param array  $context Optional. Additional information for log handlers.
89 89
 	 */
90
-	public function error( $message, $context = array() );
90
+	public function error($message, $context = array());
91 91
 
92 92
 	/**
93 93
 	 * Adds a warning level message.
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 * @param string $message Log message.
101 101
 	 * @param array  $context Optional. Additional information for log handlers.
102 102
 	 */
103
-	public function warning( $message, $context = array() );
103
+	public function warning($message, $context = array());
104 104
 
105 105
 	/**
106 106
 	 * Adds a notice level message.
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	 * @param string $message Log message.
111 111
 	 * @param array  $context Optional. Additional information for log handlers.
112 112
 	 */
113
-	public function notice( $message, $context = array() );
113
+	public function notice($message, $context = array());
114 114
 
115 115
 	/**
116 116
 	 * Adds a info level message.
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	 * @param string $message Log message.
122 122
 	 * @param array  $context Optional. Additional information for log handlers.
123 123
 	 */
124
-	public function info( $message, $context = array() );
124
+	public function info($message, $context = array());
125 125
 
126 126
 	/**
127 127
 	 * Adds a debug level message.
@@ -131,5 +131,5 @@  discard block
 block discarded – undo
131 131
 	 * @param string $message Log message.
132 132
 	 * @param array  $context Optional. Additional information for log handlers.
133 133
 	 */
134
-	public function debug( $message, $context = array() );
134
+	public function debug($message, $context = array());
135 135
 }
Please login to merge, or discard this patch.
includes/interfaces/class-wc-customer-download-log-data-store-interface.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -13,20 +13,20 @@
 block discarded – undo
13 13
  */
14 14
 interface WC_Customer_Download_Log_Data_Store_Interface {
15 15
 
16
-	/**
17
-	 * Get array of download log ids by specified args.
18
-	 *
19
-	 * @param  array $args Arguments.
20
-	 * @return array of WC_Customer_Download_Log
21
-	 */
22
-	public function get_download_logs( $args = array() );
16
+    /**
17
+     * Get array of download log ids by specified args.
18
+     *
19
+     * @param  array $args Arguments.
20
+     * @return array of WC_Customer_Download_Log
21
+     */
22
+    public function get_download_logs( $args = array() );
23 23
 
24
-	/**
25
-	 * Get logs for a specific download permission.
26
-	 *
27
-	 * @param  int $permission_id Permission ID.
28
-	 * @return array
29
-	 */
30
-	public function get_download_logs_for_permission( $permission_id );
24
+    /**
25
+     * Get logs for a specific download permission.
26
+     *
27
+     * @param  int $permission_id Permission ID.
28
+     * @return array
29
+     */
30
+    public function get_download_logs_for_permission( $permission_id );
31 31
 
32 32
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 * @param  array $args Arguments.
20 20
 	 * @return array of WC_Customer_Download_Log
21 21
 	 */
22
-	public function get_download_logs( $args = array() );
22
+	public function get_download_logs($args = array());
23 23
 
24 24
 	/**
25 25
 	 * Get logs for a specific download permission.
@@ -27,6 +27,6 @@  discard block
 block discarded – undo
27 27
 	 * @param  int $permission_id Permission ID.
28 28
 	 * @return array
29 29
 	 */
30
-	public function get_download_logs_for_permission( $permission_id );
30
+	public function get_download_logs_for_permission($permission_id);
31 31
 
32 32
 }
Please login to merge, or discard this patch.