Coding Standards: Fix and whitelist variable names.

From the `WordPress.NamingConventions.ValidVariableName` sniff, this commit fixes/whitelists all `NotSnakeCaseMemberVar`, `MemberNotSnakeCase`, and `StringNotSnakeCase` violations. It also fixes a handful of the `NotSnakeCase` violations.

See #45934.



git-svn-id: https://develop.svn.wordpress.org/trunk@44573 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast
2019-01-12 06:05:55 +00:00
parent cf5be804c7
commit a139c8cbf7
8 changed files with 250 additions and 194 deletions

View File

@@ -13,7 +13,7 @@
abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
// You can use your own version of data/WPHTTP-testcase-redirection-script.php here.
var $redirection_script = 'http://api.wordpress.org/core/tests/1.0/redirection.php';
var $fileStreamUrl = 'http://s.w.org/screenshots/3.9/dashboard.png';
var $file_stream_url = 'http://s.w.org/screenshots/3.9/dashboard.png';
protected $http_request_args;
@@ -254,7 +254,7 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
}
function test_file_stream() {
$url = $this->fileStreamUrl;
$url = $this->file_stream_url;
$size = 153204;
$res = wp_remote_request(
$url,
@@ -282,7 +282,7 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
* @ticket 26726
*/
function test_file_stream_limited_size() {
$url = $this->fileStreamUrl;
$url = $this->file_stream_url;
$size = 10000;
$res = wp_remote_request(
$url,
@@ -311,7 +311,7 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
* @ticket 31172
*/
function test_request_limited_size() {
$url = $this->fileStreamUrl;
$url = $this->file_stream_url;
$size = 10000;
$res = wp_remote_request(

View File

@@ -15,7 +15,7 @@ class Tests_HTTP_curl extends WP_HTTP_UnitTestCase {
public function test_http_api_curl_stream_parameter_is_a_reference() {
add_action( 'http_api_curl', array( $this, '_action_test_http_api_curl_stream_parameter_is_a_reference' ), 10, 3 );
wp_remote_request(
$this->fileStreamUrl,
$this->file_stream_url,
array(
'stream' => true,
'timeout' => 30,