Completed
Push — master ( 2a60ef...645aad )
by Zack
53:50 queued 48:17
created

GVLogic_Shortcode::process_elseif()   B

Complexity

Conditions 5
Paths 9

Size

Total Lines 42

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 18
CRAP Score 5

Importance

Changes 0
Metric Value
cc 5
nc 9
nop 1
dl 0
loc 42
ccs 18
cts 18
cp 1
crap 5
rs 8.9368
c 0
b 0
f 0
1
<?php
2
/**
3
 * Shortcode to handle showing/hiding content in merge tags. Works great with GravityView Custom Content fields
4
 *
5
 * @deprecated
6
 * @since develop
7
 * @see \GV\Shortcodes\gvlogic
8
 */
9
class GVLogic_Shortcode {
10
	public static $instance = null;
11
12 2
	public static function get_instance() {
13 2
		if ( is_null( self::$instance ) ) {
14
			return self::$instance = new self(); // Nothing
0 ignored issues
show
Deprecated Code introduced by
The class GVLogic_Shortcode has been deprecated.

This class, trait or interface has been deprecated.

Loading history...
15
		}
16
17 2
		return self::$instance;
18
	}
19
20 2
	public function shortcode( $atts, $content = '', $tag = '') {
21 2
		$shortcode = new \GV\Shortcodes\gvlogic();
22 2
		return $shortcode->callback( $atts, $content, $tag );
23
	}
24
}
25