| @@ -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 | } | 
| @@ -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 | <a href="https://github.com/php-gettext/Languages" class="hidden-xs"><img style="position: fixed; top: 0; right: 0; border: 0; z-index: 2000" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | 
| 49 | 49 | <div class="container-fluid"> | 
| 50 | 50 | |
| 51 | -EOT; | |
| 51 | +eot; | |
| 52 | 52 | $result .= static::buildTable($languages, true); | 
| 53 | 53 | $result .= <<<'EOT' | 
| 54 | 54 | |
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | <script src="script.js"></script> | 
| 58 | 58 | </body> | 
| 59 | 59 | </html> | 
| 60 | -EOT; | |
| 60 | +eot; | |
| 61 | 61 | |
| 62 | 62 | return $result; | 
| 63 | 63 | } | 
| @@ -49,7 +49,7 @@ discard block | ||
| 49 | 49 | public static function __callStatic($method, $parameters) | 
| 50 | 50 |      { | 
| 51 | 51 |          if (! static::hasMacro($method)) { | 
| 52 | -            throw new BadMethodCallException("Method {$method} does not exist."); | |
| 52 | +            throw new BadMethodCallException("method {$method} does not exist."); | |
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | 55 |          if (static::$macros[$method] instanceof Closure) { | 
| @@ -71,7 +71,7 @@ discard block | ||
| 71 | 71 | public function __call($method, $parameters) | 
| 72 | 72 |      { | 
| 73 | 73 |          if (! static::hasMacro($method)) { | 
| 74 | -            throw new BadMethodCallException("Method {$method} does not exist."); | |
| 74 | +            throw new BadMethodCallException("method {$method} does not exist."); | |
| 75 | 75 | } | 
| 76 | 76 | |
| 77 | 77 |          if (static::$macros[$method] instanceof Closure) { | 
| @@ -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; | 
| @@ -1158,7 +1158,7 @@ discard block | ||
| 1158 | 1158 | <h3>%2\$s</h3> | 
| 1159 | 1159 | <p>%4\$s <samp>%5\$s</samp></p> | 
| 1160 | 1160 | </%3\$s> | 
| 1161 | -EOD; | |
| 1161 | +eod; | |
| 1162 | 1162 | $access_key_output = sprintf( | 
| 1163 | 1163 | $access_key_template, | 
| 1164 | 1164 | /* %1$s */ sanitize_title( $this->config->ns() ), | 
| @@ -1180,7 +1180,7 @@ discard block | ||
| 1180 | 1180 | <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> | 
| 1181 | 1181 | </div> | 
| 1182 | 1182 | </%6\$s> | 
| 1183 | -EOD; | |
| 1183 | +eod; | |
| 1184 | 1184 | $access_key_output = sprintf( | 
| 1185 | 1185 | $access_key_template, | 
| 1186 | 1186 | /* %1$s */ sanitize_title( $this->config->ns() ), | 
| @@ -49,7 +49,7 @@ discard block | ||
| 49 | 49 | public static function __callStatic($method, $parameters) | 
| 50 | 50 |      { | 
| 51 | 51 |          if (! static::hasMacro($method)) { | 
| 52 | -            throw new BadMethodCallException("Method {$method} does not exist."); | |
| 52 | +            throw new BadMethodCallException("method {$method} does not exist."); | |
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | 55 |          if (static::$macros[$method] instanceof Closure) { | 
| @@ -71,7 +71,7 @@ discard block | ||
| 71 | 71 | public function __call($method, $parameters) | 
| 72 | 72 |      { | 
| 73 | 73 |          if (! static::hasMacro($method)) { | 
| 74 | -            throw new BadMethodCallException("Method {$method} does not exist."); | |
| 74 | +            throw new BadMethodCallException("method {$method} does not exist."); | |
| 75 | 75 | } | 
| 76 | 76 | |
| 77 | 77 |          if (static::$macros[$method] instanceof Closure) { |