Passed
Push — master ( eb4b8f...b3d235 )
by Warwick
02:38
created

general.php ➔ lsx_optinmonster_move_js()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * LSX functions and definitions for general plugins.
4
 *
5
 * @package    lsx
6
 * @subpackage plugins
7
 */
8
9
/**
10
 * Moves the loading of the optinmonster plugin JS to the footer.
11
 * @param $located
12
 * @param $template_name
13
 *
14
 * @return array
15
 */
16
function lsx_optinmonster_move_js( ) {
17
	if ( class_exists( 'OMAPI_Output' ) ) {
18
		//remove_action( 'wp_enqueue_scripts', array( $this, 'api_script' ) );
19
	}
20
	return $located;
0 ignored issues
show
Bug introduced by
The variable $located does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
21
}
22
add_filter( 'init', 'lsx_optinmonster_move_js' );
23