Completed
Push — try/find_latest_autoloader ( 4ce307...807460 )
by
unknown
06:53
created

bootstrap.php ➔ trailingslashit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Bootstrap file for the autoloader test suite.
4
 *
5
 * @package automattic/jetpack-autoloader
6
 */
7
8
if ( ! function_exists( 'trailingslashit' ) ) {
9
10
	/**
11
	 * A drop-in for a WordPress core function.
12
	 *
13
	 * @param String $string string.
14
	 * @return String
15
	 */
16
	function trailingslashit( $string ) {
17
		return rtrim( $string, '/\\' ) . '/';
18
	}
19
}
20
21
require_once __DIR__ . '/../../vendor/autoload.php';
22
require_once __DIR__ . '/../../src/functions.php';
23