| @@ -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 | |
| @@ -245,7 +245,7 @@ | ||
| 245 | 245 | |
| 246 | 246 | add_rewrite_endpoint( $endpoint, EP_ROOT ); | 
| 247 | 247 | |
| 248 | -		$this->logging->log( "Endpoint {$endpoint} added.", __METHOD__, 'debug' ); | |
| 248 | +		$this->logging->log( "endpoint {$endpoint} added.", __METHOD__, 'debug' ); | |
| 249 | 249 | |
| 250 | 250 |  		if ( get_site_option( self::PERMALINK_FLUSH_OPTION_NAME ) ) { | 
| 251 | 251 | return; | 
| @@ -1130,7 +1130,7 @@ | ||
| 1130 | 1130 | <button id="tl-%1\$s-copy" class="tl-%1\$s-auth__accesskey_copy button" aria-live="off" title="%7\$s"><span class="screen-reader-text">%5\$s</span></button> | 
| 1131 | 1131 | </div> | 
| 1132 | 1132 | </%6\$s> | 
| 1133 | -EOD; | |
| 1133 | +eod; | |
| 1134 | 1134 | |
| 1135 | 1135 | |
| 1136 | 1136 | $access_key_output = sprintf( | 
| @@ -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); |