Skip to content

Commit

Permalink
Update to WPCS 2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Jan 16, 2019
1 parent 54ab5ea commit c73fd82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"squizlabs/php_codesniffer": "^3.2",
"phpcompatibility/phpcompatibility-wp": "^2.0",
"danieltj27/dark-mode": "3.2",
"wp-coding-standards/wpcs": "^1.2",
"wp-coding-standards/wpcs": "^2",
"phpunit/phpunit": "^5"
}
}
4 changes: 2 additions & 2 deletions output/html/environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ public function output() {

foreach ( $db['variables'] as $setting ) {

// phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$key = $setting->Variable_name;
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$val = $setting->Value;

$append = '';
Expand Down
2 changes: 1 addition & 1 deletion wp-content/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,5 @@ public function query( $query ) {

}

// phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
$wpdb = new QM_DB( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );

0 comments on commit c73fd82

Please sign in to comment.