From c61e42db647faa311e47a15281a381d77ec18ed2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 29 Apr 2020 17:23:30 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issues in `tests/formatting/SanitizeFileName.php`. Follow-up to [47638]. git-svn-id: https://develop.svn.wordpress.org/trunk@47664 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/formatting/SanitizeFileName.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/tests/formatting/SanitizeFileName.php b/tests/phpunit/tests/formatting/SanitizeFileName.php index 37ce764a12..b715960e76 100644 --- a/tests/phpunit/tests/formatting/SanitizeFileName.php +++ b/tests/phpunit/tests/formatting/SanitizeFileName.php @@ -78,10 +78,10 @@ class Tests_Formatting_SanitizeFileName extends WP_UnitTestCase { function data_wp_filenames() { return array( - [ urldecode( '%B1myfile.png' ), 'myfile.png' ], - [ urldecode( '%B1myfile' ), 'myfile' ], - [ 'demo bar.png', 'demo-bar.png' ], - [ 'demo' . json_decode( '"\u00a0"' ) . 'bar.png', 'demo-bar.png' ], + array( urldecode( '%B1myfile.png' ), 'myfile.png' ), + array( urldecode( '%B1myfile' ), 'myfile' ), + array( 'demo bar.png', 'demo-bar.png' ), + array( 'demo' . json_decode( '"\u00a0"' ) . 'bar.png', 'demo-bar.png' ), ); } }