Completed
Branch master (69418b)
by Daryl
01:50
created

custom-sidebars.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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 28 and the first side effect is on line 32.

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
This program is free software; you can redistribute it and/or
4
modify it under the terms of the GNU General Public License
5
as published by the Free Software Foundation; either version 2
6
of the License, or (at your option) any later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; if not, write to the Free Software
15
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
16
*/
17
18
/*
19
Plugin Name: Custom Sidebars
20
Plugin URI: http://github.com/clubduece/custom-sidebars
21
Description: Allows users to create custom sidebars on a page/post basis.
22
Version: 0.3
23
Author: clubDuece
24
Author URI: http://github.com/clubduece
25
License: GPLv2 or later
26
*/
27
if ( ! defined( 'CUSTOM_SIDEBARS' ) ) {
28
	define( 'CUSTOM_SIDEBARS', true );
29
}
30
31
if ( CUSTOM_SIDEBARS ) {
32
	require_once 'includes/class-custom-sidebars.php';
33
	require_once 'includes/class-sidebar-details.php';
34
35
	$Custom_Sidebars = new Custom_Sidebars();
36
}
37