Issues (823)

lsx-search.php (2 issues)

1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 19 and the first side effect is on line 16.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
/*
3
 * Plugin Name:	LSX Search
4
 * Plugin URI:	https://github.com/lightspeeddevelopment/lsx-search
5
 * Description:	The LSX Search extension improves the search result pages for LSX Theme.
6
 * Author:		LightSpeed
7
 * Version: 	1.5.4
8
 * Author URI: 	https://www.lsdev.biz/
9
 * License: 	GPL3
10
 * Text Domain: lsx-search
11
 * Domain Path: /languages/
12
 */
13
14
// If this file is called directly, abort.
15
if ( ! defined( 'WPINC' ) ) {
0 ignored issues
show
Expected 0 spaces before closing bracket; 1 found
Loading history...
16
	die;
17
}
18
19
define( 'LSX_SEARCH_PATH', plugin_dir_path( __FILE__ ) );
20
define( 'LSX_SEARCH_CORE', __FILE__ );
21
define( 'LSX_SEARCH_URL', plugin_dir_url( __FILE__ ) );
22
define( 'LSX_SEARCH_VER', '1.5.2' );
23
24
/* ======================= Below is the Plugin Class init ========================= */
25
26
require_once LSX_SEARCH_PATH . '/includes/template-tags.php';
27
require_once LSX_SEARCH_PATH . '/includes/functions.php';
28
require_once LSX_SEARCH_PATH . '/classes/class-lsx-search.php';
29