Skip to content

Commit 911ebd7

Browse files
authored
Merge pull request #2548 from rodrigoprimo/remove-superfluous-whitespaces
2 parents 5466170 + 8ba6513 commit 911ebd7

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

WordPress/Tests/DB/RestrictedClassesUnitTest.2.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace My;
66

77
class DBlayer {
88
const VERSION = '1.0';
9-
9+
1010
public static $property = true;
1111

1212
public static function connect() {

WordPress/Tests/DB/RestrictedClassesUnitTest.3.inc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,42 @@ namespace My {
66

77
class DBlayer {
88
const VERSION = '1.0';
9-
9+
1010
public static $property = true;
11-
11+
1212
public static function connect() {
1313
}
1414
}
15-
15+
1616
class DBextended extends DBlayer { // Bad.
1717
}
18-
18+
1919
class DBextender implements PDO { // Ok -> resolves to \My\PDO.
2020
}
21-
21+
2222
class DBextendes implements \PDO { // Bad -> fully qualified as \PDO.
2323
}
24-
24+
2525
$db0 = new \DBlayer; // Ok - fully qualified as \DBlayer.
2626
$db1 = new DBlayer; // Bad - resolves to \My\DBlayer.
2727
$db2 = new DBlayer(); // Bad - resolves to \My\DBlayer.
28-
28+
2929
echo DBlayer::VERSION; // Bad - resolves to \My\DBlayer.
3030
echo DBlayer::$property; // Bad - resolves to \My\DBlayer.
3131
echo DBlayer::connect(); // Bad - resolves to \My\DBlayer.
32-
32+
3333
$db3 = new Yours\DBlayer; // Ok - resolves to \My\Yours\DBlayer.
34-
34+
3535
echo Yours\DBlayer::VERSION; // Ok - resolves to \My\Yours\DBlayer.
3636
echo Yours\DBlayer::$property; // Ok - resolves to \My\Yours\DBlayer.
3737
echo Yours\DBlayer::connect(); // Ok - resolves to \My\Yours\DBlayer.
38-
38+
3939
$db4 = new \My\DBlayer; // Bad - fully qualified as \My\DBlayer.
40-
40+
4141
echo \My\DBlayer::VERSION; // Bad - fully qualified as \My\DBlayer.
4242
echo \My\DBlayer::$property; // Bad - fully qualified as \My\DBlayer.
4343
echo \My\DBlayer::connect(); // Bad - fully qualified as \My\DBlayer.
44-
44+
4545
echo namespace\DBlayer::VERSION; // Bad - resolves to \My\DBlayer.
4646
echo namespace\DBlayer::$property; // Bad - resolves to \My\DBlayer.
4747
echo namespace\DBlayer::connect(); // Bad - resolves to \My\DBlayer.
@@ -82,7 +82,7 @@ namespace AdoDb {
8282
class Tester {}
8383

8484
class TestAgain extends Test {} // Bad.
85-
85+
8686
class TestYetAgain extends Tester {} // Bad.
8787

8888
$db5 = new Test; // Bad.

WordPress/Tests/NamingConventions/PrefixAllGlobalsUnitTest.9.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
function acronym_unfinished_global_statement($param) {
1313
global $var1, $var2 // Deliberately missing semi-colon.
14-
14+
1515
foreach ($param as $var2) {}
1616
}
1717

WordPress/Tests/Security/NonceVerificationUnitTest.1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ function function_containing_nested_enum_with_nonce_check() {
466466
wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['my_nonce'] ) ), 'the_nonce' );
467467
}
468468
}
469-
469+
470470
echo $_POST['foo']; // Bad.
471471
}
472472

WordPress/Tests/Security/NonceVerificationUnitTest.5.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
if ( isset ( $_POST['prefix_myfield'] ) { // OK.
8-
8+
99
do_something();
1010
do_something();
1111
do_something();

WordPress/Tests/WP/CapitalPDangitUnitTest.1.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if ( $counts['wordpress'] ) { // OK.
102102
*
103103
* @link OK: http://justintadlock.com/archives/2011/07/01/captions-in-wordpress
104104
*/
105-
105+
106106
if ( file_exists( ABSPATH . 'wp-content/plugins/wordpress-importer/wordpress-importer.php' ) ) { // OK.
107107
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
108108

@@ -129,8 +129,8 @@ $default_editor_settings = [
129129
'label' => __( 'Arouse Documentation', 'arouse' ),
130130
'content' => __( '<a class="button" href="https://themezhut.com/arouse-wordpress-theme-documentation/" target="_blank">Read the documentation.</a>', 'arouse' ), // OK.
131131
)
132-
)
133-
);
132+
)
133+
);
134134

135135
?>
136136

WordPress/Tests/WP/CapitalPDangitUnitTest.1.inc.fixed

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if ( $counts['wordpress'] ) { // OK.
102102
*
103103
* @link OK: http://justintadlock.com/archives/2011/07/01/captions-in-wordpress
104104
*/
105-
105+
106106
if ( file_exists( ABSPATH . 'wp-content/plugins/wordpress-importer/wordpress-importer.php' ) ) { // OK.
107107
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
108108

@@ -129,8 +129,8 @@ $default_editor_settings = [
129129
'label' => __( 'Arouse Documentation', 'arouse' ),
130130
'content' => __( '<a class="button" href="https://themezhut.com/arouse-wordpress-theme-documentation/" target="_blank">Read the documentation.</a>', 'arouse' ), // OK.
131131
)
132-
)
133-
);
132+
)
133+
);
134134

135135
?>
136136

0 commit comments

Comments
 (0)