Passed
Push — master ( 9a7a16...e17332 )
by Atanas
01:51
created

functions-aliases.php ➔ app_view()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
if ( ! function_exists( 'app_response' ) ) {
4
	/**
5
	 * @codeCoverageIgnore
6
	 * @see \WPEmerge\response()
7
	 * @return \Psr\Http\Message\ResponseInterface
8
	 */
9
	function app_response() {
10
		return call_user_func_array( '\WPEmerge\response', func_get_args() );
11
	}
12
}
13
14
if ( ! function_exists( 'app_output' ) ) {
15
	/**
16
	 * @codeCoverageIgnore
17
	 * @see \WPEmerge\output()
18
	 * @return \Psr\Http\Message\ResponseInterface
19
	 */
20
	function app_output() {
21
		return call_user_func_array( '\WPEmerge\output', func_get_args() );
22
	}
23
}
24
25
if ( ! function_exists( 'app_view' ) ) {
26
	/**
27
	 * @codeCoverageIgnore
28
	 * @see \WPEmerge\view()
29
	 * @return \Psr\Http\Message\ResponseInterface
30
	 */
31
	function app_view() {
32
		return call_user_func_array( '\WPEmerge\view', func_get_args() );
33
	}
34
}
35
36
if ( ! function_exists( 'app_json' ) ) {
37
	/**
38
	 * @codeCoverageIgnore
39
	 * @see \WPEmerge\json()
40
	 * @return \Psr\Http\Message\ResponseInterface
41
	 */
42
	function app_json() {
43
		return call_user_func_array( '\WPEmerge\json', func_get_args() );
44
	}
45
}
46
47
if ( ! function_exists( 'app_redirect' ) ) {
48
	/**
49
	 * @codeCoverageIgnore
50
	 * @see \WPEmerge\redirect()
51
	 * @return \Psr\Http\Message\ResponseInterface
52
	 */
53
	function app_redirect() {
54
		return call_user_func_array( '\WPEmerge\redirect', func_get_args() );
55
	}
56
}
57
58
if ( ! function_exists( 'app_reload' ) ) {
59
	/**
60
	 * @codeCoverageIgnore
61
	 * @see \WPEmerge\reload()
62
	 * @return \Psr\Http\Message\ResponseInterface
63
	 */
64
	function app_reload() {
65
		return call_user_func_array( '\WPEmerge\reload', func_get_args() );
66
	}
67
}
68
69
if ( ! function_exists( 'app_error' ) ) {
70
	/**
71
	 * @codeCoverageIgnore
72
	 * @see \WPEmerge\error()
73
	 * @return \Psr\Http\Message\ResponseInterface
74
	 */
75
	function app_error() {
76
		return call_user_func_array( '\WPEmerge\error', func_get_args() );
77
	}
78
}
79
80
if ( ! function_exists( 'app_partial' ) ) {
81
	/**
82
	 * @codeCoverageIgnore
83
	 * @see \WPEmerge\partial()
84
	 * @return void
85
	 */
86
	function app_partial() {
87
		return call_user_func_array( '\WPEmerge\partial', func_get_args() );
88
	}
89
}
90