Completed
Push — try/composer-jetpack-logo-depe... ( 8eeb81 )
by
unknown
07:25
created

fixtures.php ➔ content_url()   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
$current = dirname( __FILE__ );
4
define( 'WP_CONTENT_DIR', realpath ( $current . '/../../../../..' ) );
5
6
function esc_url( $URL ) {
7
	return $URL;
8
}
9
10
function esc_attr__( $string, $namespace ) {
11
	return $string;
12
}
13
14
function content_url( $path ) {
15
	return 'https://example.com/wp-content'. $path;
16
}
17
18
function home_url( $path ) {
19
	return 'https://example.com' . $path;
20
}