src/Blank_Slate.php
Method init
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init( $slug = '', $plugin_url, $plugin_root ) {
// self::$param_name = sanitize_title( get_called_class() , 'plugin_customizer' );
if ( '' == $slug ) {
wp_die( 'slug missing', $title = 'BlankSlate::init' );
}
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space Open
Open
$this->plugin_url = $plugin_url;
- Exclude checks
Assignments must be the first block of code on a line Open
Open
wp_die( 'slug missing', $title = 'BlankSlate::init' );
- Exclude checks
Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space Open
Open
$src = $this->plugin_url . 'assets/js/plugin-customizer-blank-slate.js';
- Exclude checks
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space Open
Open
$this->slug = $slug;
- Exclude checks
Array double arrow not aligned correctly; expected 2 space(s) between "'queryParamName'" and double arrow, but found 1. Open
Open
'queryParamName' => $this->slug,
- Exclude checks
Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space Open
Open
$ver = false;
- Exclude checks
Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space Open
Open
$deps = array( 'customize-controls' );
- Exclude checks
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space Open
Open
$handle = 'plugin-customizer-blank-slate';
- Exclude checks