Passed
Push — master ( a989f9...7a70bb )
by Benjamin
01:25
created
tests/bootstrap.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
 $_tests_dir = getenv( 'WP_TESTS_DIR' );
9 9
 
10 10
 if ( ! $_tests_dir ) {
11
-	$_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
11
+    $_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
12 12
 }
13 13
 
14 14
 if ( ! file_exists( $_tests_dir . '/includes/functions.php' ) ) {
15
-	throw new Exception( "Could not find $_tests_dir/includes/functions.php, have you run bin/install-wp-tests.sh ?" );
15
+    throw new Exception( "Could not find $_tests_dir/includes/functions.php, have you run bin/install-wp-tests.sh ?" );
16 16
 }
17 17
 
18 18
 // Give access to tests_add_filter() function.
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  * Manually load the plugin being tested.
23 23
  */
24 24
 function _manually_load_plugin() {
25
-	require dirname( dirname( __FILE__ ) ) . '/wp-site-monitor.php';
25
+    require dirname( dirname( __FILE__ ) ) . '/wp-site-monitor.php';
26 26
 }
27 27
 tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
28 28
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,26 +5,26 @@
 block discarded – undo
5 5
  * @package WP_Site_Monitor
6 6
  */
7 7
 
8
-$_tests_dir = getenv( 'WP_TESTS_DIR' );
8
+$_tests_dir = getenv('WP_TESTS_DIR');
9 9
 
10
-if ( ! $_tests_dir ) {
11
-	$_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
10
+if (!$_tests_dir) {
11
+	$_tests_dir = rtrim(sys_get_temp_dir(), '/\\').'/wordpress-tests-lib';
12 12
 }
13 13
 
14
-if ( ! file_exists( $_tests_dir . '/includes/functions.php' ) ) {
15
-	throw new Exception( "Could not find $_tests_dir/includes/functions.php, have you run bin/install-wp-tests.sh ?" );
14
+if (!file_exists($_tests_dir.'/includes/functions.php')) {
15
+	throw new Exception("Could not find $_tests_dir/includes/functions.php, have you run bin/install-wp-tests.sh ?");
16 16
 }
17 17
 
18 18
 // Give access to tests_add_filter() function.
19
-require_once $_tests_dir . '/includes/functions.php';
19
+require_once $_tests_dir.'/includes/functions.php';
20 20
 
21 21
 /**
22 22
  * Manually load the plugin being tested.
23 23
  */
24 24
 function _manually_load_plugin() {
25
-	require dirname( dirname( __FILE__ ) ) . '/wp-site-monitor.php';
25
+	require dirname(dirname(__FILE__)).'/wp-site-monitor.php';
26 26
 }
27
-tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
27
+tests_add_filter('muplugins_loaded', '_manually_load_plugin');
28 28
 
29 29
 // Start up the WP testing environment.
30
-require $_tests_dir . '/includes/bootstrap.php';
30
+require $_tests_dir.'/includes/bootstrap.php';
Please login to merge, or discard this patch.