Completed
Push — develop ( ab6671...011f6a )
by
unknown
07:54
created

_shims.php ➔ gv_shim_GV_View_Settings_defaults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * A collection of shims for PHP 5.2 calling syntax support.
4
 *
5
 * PHP 5.2 considers namespace usage a syntax error, so we have to
6
 *  put function shims in place where we're stubbing code out, i.e. everywhere.
7
 *
8
 * Sad!
9
 *
10
 * Note: the functions themselves are never called or loaded in PHP 5.2.
11
 */
12
13
function gv_shim_GV_Entry_get_endpoint_name() {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_Entry_get_endpoint_name is in camel caps, but expected gv_shim_g_v_entry_get_endpoint_name instead as per the coding standard.
Loading history...
14 3
	return \GV\Entry::get_endpoint_name();
15
}
16
17
function gv_shim_GV_View_Collection_from_post( $post ) {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_View_Collection_from_post is in camel caps, but expected gv_shim_g_v_view_collection_from_post instead as per the coding standard.
Loading history...
18 3
	return \GV\View_Collection::from_post( $post );
19
}
20
21
function gv_shim_GV_View_exists( $id ) {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_View_exists is in camel caps, but expected gv_shim_g_v_view_exists instead as per the coding standard.
Loading history...
22 3
	return \GV\View::exists( $id );
23
}
24
25
function gv_shim_GV_View_Settings_defaults( $detailed = false, $group = null ) {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_View_Settings_defaults is in camel caps, but expected gv_shim_g_v_view_settings_defaults instead as per the coding standard.
Loading history...
26 6
	return \GV\View_Settings::defaults( $detailed, $group );
27
}
28
29
function gv_shim_view_ID_getter( $view ) {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_view_ID_getter is in camel caps, but expected gv_shim_view_i_d_getter instead as per the coding standard.
Loading history...
30
	return $view->ID;
31
}
32
33
function gv_shim_view_as_data_caller( $view ) {
34
	return $view->as_data();
35
}
36
37
function gv_shim_GV_View_by_id( $id ) {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_View_by_id is in camel caps, but expected gv_shim_g_v_view_by_id instead as per the coding standard.
Loading history...
38 3
	return \GV\View::by_id( $id );
39
}
40
41
function gv_shim_GV_Mocks_GravityView_frontend_get_view_entries( $args, $form_id, $parameters, $count ) {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_Mocks_Gravity...ontend_get_view_entries is in camel caps, but expected gv_shim_g_v_mocks_gravit...ontend_get_view_entries instead as per the coding standard.
Loading history...
42
	 return \GV\Mocks\GravityView_frontend_get_view_entries( $args, $form_id, $parameters, $count );
43
}
44
45
function gv_shim_GV_View_register_post_type() {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_View_register_post_type is in camel caps, but expected gv_shim_g_v_view_register_post_type instead as per the coding standard.
Loading history...
46
	return \GV\View::register_post_type();
47
}
48
49
function gv_shim_GV_Entry_add_rewrite_endpoint() {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_Entry_add_rewrite_endpoint is in camel caps, but expected gv_shim_g_v_entry_add_rewrite_endpoint instead as per the coding standard.
Loading history...
50
	return \GV\Entry::add_rewrite_endpoint();
51
}
52
53
function gv_shim_new_GV_Dummy_Request() {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_new_GV_Dummy_Request is in camel caps, but expected gv_shim_new_g_v_dummy_request instead as per the coding standard.
Loading history...
54 3
	return new \GV\Dummy_Request();
55
}
56
57
function gv_shim_GV_Shortcode_parse( $arg ) {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_Shortcode_parse is in camel caps, but expected gv_shim_g_v_shortcode_parse instead as per the coding standard.
Loading history...
58
	return \GV\Shortcode::parse( $arg );
59
}
60
61
function gv_shim_GV_Mocks_GravityView_View_Data_add_view( $view_id, $atts ) {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_GV_Mocks_GravityView_View_Data_add_view is in camel caps, but expected gv_shim_g_v_mocks_gravity_view_view_data_add_view instead as per the coding standard.
Loading history...
62
	return \GV\Mocks\GravityView_View_Data_add_view( $view_id, $atts );
63
}
64
65
function gv_shim_new_GV_View_Settings() {
0 ignored issues
show
Coding Style introduced by
The function name gv_shim_new_GV_View_Settings is in camel caps, but expected gv_shim_new_g_v_view_settings instead as per the coding standard.
Loading history...
66
	return new \GV\View_Settings();
67
}
68