@@ -66,7 +66,7 @@ |
||
66 | 66 | $table_name = GFFormsModel::get_lead_meta_table_name(); |
67 | 67 | } |
68 | 68 | |
69 | - $sql = "UPDATE {$table_name} SET `meta_value` = %s WHERE `meta_key` = 'is_approved' AND `meta_value` = %s"; |
|
69 | + $sql = "update {$table_name} SET `meta_value` = %s WHERE `meta_key` = 'is_approved' AND `meta_value` = %s"; |
|
70 | 70 | |
71 | 71 | $approved_result = $wpdb->query( $wpdb->prepare( $sql, GravityView_Entry_Approval_Status::APPROVED, 'Approved' ) ); |
72 | 72 |
@@ -526,7 +526,7 @@ |
||
526 | 526 | $column = 'lead_id'; |
527 | 527 | } |
528 | 528 | |
529 | - $results = $wpdb->get_results( $wpdb->prepare( "SELECT $column, meta_value FROM $table WHERE form_id = (SELECT form_id FROM $table WHERE $column = %d LIMIT 1) AND meta_key = 'gravityview_unique_id'", $id_or_string ) ); |
|
529 | + $results = $wpdb->get_results( $wpdb->prepare( "select $column, meta_value FROM $table WHERE form_id = (SELECT form_id FROM $table WHERE $column = %d LIMIT 1) AND meta_key = 'gravityview_unique_id'", $id_or_string ) ); |
|
530 | 530 | |
531 | 531 | if ( $results ) { |
532 | 532 | $cache = array_replace( $cache, array_combine( wp_list_pluck( $results, $column ), wp_list_pluck( $results, 'meta_value' ) ) ); |
@@ -326,6 +326,6 @@ |
||
326 | 326 | <a href="#" data-approved="{$choices['approved']['value']}" aria-role="button" aria-live="polite" class="gv-approval-toggle gv-approval-approved popover" title="{$choices['approved']['action']}"><span class="screen-reader-text">{$choices['approved']['action']}</span></a> |
327 | 327 | <a href="#" data-approved="{$choices['disapproved']['value']}" aria-role="button" aria-live="polite" class="gv-approval-toggle gv-approval-disapproved popover" title="{$choices['disapproved']['action']}"><span class="screen-reader-text">{$choices['disapproved']['action']}</span></a> |
328 | 328 | <a href="#" data-approved="{$choices['unapproved']['value']}" aria-role="button" aria-live="polite" class="gv-approval-toggle gv-approval-unapproved popover" title="{$choices['unapproved']['action']}"><span class="screen-reader-text">{$choices['unapproved']['action']}</span></a> |
329 | -TEMPLATE; |
|
329 | +template; |
|
330 | 330 | } |
331 | 331 | } |
@@ -421,7 +421,7 @@ |
||
421 | 421 | </header> |
422 | 422 | <div class="gform-settings-panel__content" style="padding: 0 1rem 1.25rem"> |
423 | 423 | |
424 | -HTML; |
|
424 | +html; |
|
425 | 425 | } else { |
426 | 426 | echo '<div class="gv-uninstall-form-wrapper" style="font-size: 110%; padding: 15px 0;">'; |
427 | 427 | } |
@@ -308,7 +308,7 @@ |
||
308 | 308 | {{field_settings}} |
309 | 309 | {{hidden_fields}} |
310 | 310 | </div> |
311 | -EOD; |
|
311 | +eod; |
|
312 | 312 | |
313 | 313 | $output = $template; |
314 | 314 |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | } |
50 | 50 | } |
51 | -EOD; |
|
51 | +eod; |
|
52 | 52 | |
53 | 53 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
54 | 54 | file_put_contents($tmpfname, $composerExtraStraussJson); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | } |
111 | 111 | } |
112 | 112 | } |
113 | -EOD; |
|
113 | +eod; |
|
114 | 114 | |
115 | 115 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
116 | 116 | file_put_contents($tmpfname, $composerExtraStraussJson); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | } |
162 | 162 | } |
163 | 163 | } |
164 | -EOD; |
|
164 | +eod; |
|
165 | 165 | |
166 | 166 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
167 | 167 | file_put_contents($tmpfname, $composerExtraStraussJson); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | } |
193 | 193 | } |
194 | 194 | } |
195 | -EOD; |
|
195 | +eod; |
|
196 | 196 | |
197 | 197 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
198 | 198 | file_put_contents($tmpfname, $composerExtraStraussJson); |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | } |
225 | 225 | } |
226 | -EOD; |
|
226 | +eod; |
|
227 | 227 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
228 | 228 | file_put_contents($tmpfname, $composerExtraStraussJson); |
229 | 229 | |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | "league/container": "*" |
250 | 250 | } |
251 | 251 | } |
252 | -EOD; |
|
252 | +eod; |
|
253 | 253 | |
254 | 254 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
255 | 255 | file_put_contents($tmpfname, $composerExtraStraussJson); |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | } |
281 | 281 | } |
282 | 282 | } |
283 | -EOD; |
|
283 | +eod; |
|
284 | 284 | |
285 | 285 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
286 | 286 | file_put_contents($tmpfname, $composerExtraStraussJson); |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | } |
312 | 312 | } |
313 | 313 | } |
314 | -EOD; |
|
314 | +eod; |
|
315 | 315 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
316 | 316 | file_put_contents($tmpfname, $composerExtraStraussJson); |
317 | 317 | |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | } |
340 | 340 | |
341 | 341 | } |
342 | -EOD; |
|
342 | +eod; |
|
343 | 343 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
344 | 344 | file_put_contents($tmpfname, $composerExtraStraussJson); |
345 | 345 | |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | } |
386 | 386 | } |
387 | 387 | |
388 | -EOD; |
|
388 | +eod; |
|
389 | 389 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
390 | 390 | file_put_contents($tmpfname, $composerExtraStraussJson); |
391 | 391 | |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | } |
428 | 428 | } |
429 | 429 | } |
430 | -EOD; |
|
430 | +eod; |
|
431 | 431 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
432 | 432 | file_put_contents($tmpfname, $composerExtraStraussJson); |
433 | 433 | |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | } |
469 | 469 | } |
470 | 470 | } |
471 | -EOD; |
|
471 | +eod; |
|
472 | 472 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
473 | 473 | file_put_contents($tmpfname, $composerExtraStraussJson); |
474 | 474 | |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | } |
512 | 512 | } |
513 | 513 | } |
514 | -EOD; |
|
514 | +eod; |
|
515 | 515 | $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-'); |
516 | 516 | file_put_contents($tmpfname, $composerExtraStraussJson); |
517 | 517 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | class MyClass { |
32 | 32 | } |
33 | -EOD; |
|
33 | +eod; |
|
34 | 34 | |
35 | 35 | $config = $this->createMock(StraussConfig::class); |
36 | 36 | $config->method('getNamespacePrefix')->willReturn('Prefix'); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | class MyClass { |
54 | 54 | } |
55 | 55 | } |
56 | -EOD; |
|
56 | +eod; |
|
57 | 57 | |
58 | 58 | $config = $this->createMock(StraussConfig::class); |
59 | 59 | $sut = new ChangeEnumerator($config); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | class MyClass { |
78 | 78 | } |
79 | 79 | } |
80 | -EOD; |
|
80 | +eod; |
|
81 | 81 | |
82 | 82 | $config = $this->createMock(StraussConfig::class); |
83 | 83 | $sut = new ChangeEnumerator($config); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | class MyOtherClass { |
108 | 108 | } |
109 | 109 | } |
110 | -EOD; |
|
110 | +eod; |
|
111 | 111 | |
112 | 112 | $config = $this->createMock(StraussConfig::class); |
113 | 113 | $sut = new ChangeEnumerator($config); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | class MyOtherClass { |
135 | 135 | |
136 | 136 | } |
137 | -EOD; |
|
137 | +eod; |
|
138 | 138 | |
139 | 139 | $config = $this->createMock(StraussConfig::class); |
140 | 140 | $sut = new ChangeEnumerator($config); |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | /** |
287 | 287 | * |
288 | 288 | */ |
289 | -EOD; |
|
289 | +eod; |
|
290 | 290 | |
291 | 291 | $config = $this->createMock(StraussConfig::class); |
292 | 292 | $changeEnumerator = new ChangeEnumerator($config); |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | return @clone($object); |
418 | 418 | } |
419 | 419 | } |
420 | -EOD; |
|
420 | +eod; |
|
421 | 421 | |
422 | 422 | $config = $this->createMock(StraussConfig::class); |
423 | 423 | $changeEnumerator = new ChangeEnumerator($config); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | } |
38 | 38 | } |
39 | -EOD; |
|
39 | +eod; |
|
40 | 40 | |
41 | 41 | $composerConfig = new Config(false); |
42 | 42 | $composerConfig->merge(json_decode($composerJson, true)); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | ); |
122 | 122 | } |
123 | 123 | } |
124 | -EOD; |
|
124 | +eod; |
|
125 | 125 | $config = $this->createMock(StraussConfig::class); |
126 | 126 | |
127 | 127 | $replacer = new Prefixer($config, __DIR__); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | protected $offsets; // array of object offsets |
160 | 160 | protected $buffer; // buffer holding in-memory PDF |
161 | 161 | } |
162 | -EOD; |
|
162 | +eod; |
|
163 | 163 | |
164 | 164 | $config = $this->createMock(StraussConfig::class); |
165 | 165 |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | <?php |
92 | 92 | |
93 | 93 | namespace net\authorize\api\contract\v1; |
94 | -EOD; |
|
94 | +eod; |
|
95 | 95 | |
96 | 96 | // "license": "proprietary", |
97 | 97 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | |
107 | 107 | namespace net\authorize\api\contract\v1; |
108 | -EOD; |
|
108 | +eod; |
|
109 | 109 | |
110 | 110 | $actual = $sut->addChangeDeclarationToPhpString($given, '25-April-2021', 'proprietary'); |
111 | 111 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | |
137 | 137 | namespace Yeah; |
138 | -EOD; |
|
138 | +eod; |
|
139 | 139 | |
140 | 140 | $expected = <<<'EOD' |
141 | 141 | <?php // phpcs:ignore WordPress.Files.FileName |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | */ |
154 | 154 | |
155 | 155 | namespace Yeah; |
156 | -EOD; |
|
156 | +eod; |
|
157 | 157 | |
158 | 158 | $actual = $sut->addChangeDeclarationToPhpString($given, '25-April-2021', 'GPL-2.0-or-later'); |
159 | 159 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * Exit if called directly. |
193 | 193 | */ |
194 | 194 | if ( ! defined( 'WPINC' ) ) { |
195 | -EOD; |
|
195 | +eod; |
|
196 | 196 | |
197 | 197 | $expected = <<<'EOD' |
198 | 198 | <?php |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * Exit if called directly. |
217 | 217 | */ |
218 | 218 | if ( ! defined( 'WPINC' ) ) { |
219 | -EOD; |
|
219 | +eod; |
|
220 | 220 | |
221 | 221 | |
222 | 222 | $actual = $sut->addChangeDeclarationToPhpString($given, '25-April-2021', 'MIT'); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | *******************************************************************************/ |
246 | 246 | |
247 | 247 | define('FPDF_VERSION','1.82'); |
248 | -EOD; |
|
248 | +eod; |
|
249 | 249 | |
250 | 250 | $expected = <<<'EOD' |
251 | 251 | <?php |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | */ |
263 | 263 | |
264 | 264 | define('FPDF_VERSION','1.82'); |
265 | -EOD; |
|
265 | +eod; |
|
266 | 266 | |
267 | 267 | $actual = $sut->addChangeDeclarationToPhpString($given, '25-April-2021', 'proprietary'); |
268 | 268 | |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | */ |
296 | 296 | |
297 | 297 | namespace Your_Domain\Assert; |
298 | -EOD; |
|
298 | +eod; |
|
299 | 299 | |
300 | 300 | $expected = <<<'EOD' |
301 | 301 | <?php |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | */ |
317 | 317 | |
318 | 318 | namespace Your_Domain\Assert; |
319 | -EOD; |
|
319 | +eod; |
|
320 | 320 | |
321 | 321 | $actual = $sut->addChangeDeclarationToPhpString($given, '25-April-2021', 'MIT'); |
322 | 322 | |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | if ( ! defined( 'WPINC' ) ) { |
360 | 360 | die; |
361 | 361 | } |
362 | -EOD; |
|
362 | +eod; |
|
363 | 363 | |
364 | 364 | // Attempt to replicate the failing test, since the contents seem the same but the input manner is different. |
365 | 365 | $tmpfname = tempnam(sys_get_temp_dir(), 'Strauss-' . __CLASS__ . '-' . __FUNCTION__); |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | if ( ! defined( 'WPINC' ) ) { |
391 | 391 | die; |
392 | 392 | } |
393 | -EOD; |
|
393 | +eod; |
|
394 | 394 | |
395 | 395 | |
396 | 396 | $actual = $sut->addChangeDeclarationToPhpString($given, '25-April-2021', 'MIT'); |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | <?php |
417 | 417 | |
418 | 418 | ?> |
419 | -EOD; |
|
419 | +eod; |
|
420 | 420 | |
421 | 421 | $expected = <<<'EOD' |
422 | 422 | <?php |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | <?php |
433 | 433 | |
434 | 434 | ?> |
435 | -EOD; |
|
435 | +eod; |
|
436 | 436 | |
437 | 437 | |
438 | 438 | $actual = $sut->addChangeDeclarationToPhpString($fileContents, '25-April-2021', 'MIT'); |