Showing 122 of 122 total issues
Function exports
has 203 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
/**
* Files added to WordPress SVN, don't include 'assets/**' here.
* @type {Array}
Plugin_Customizer
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class Plugin_Customizer implements Plugin_Customizer_Interface {
private $customize_register_priority = 9; // Priority must be between 2 and 9
private $slug;
private $org_theme;
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' );
}
Method init
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init( $config = array() ) {
if ( ! count( $config ) ) {
wp_die( /*$message = '', $title = '', $args = array()*/ );
}
Function PluginCustomizer
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PluginCustomizer = (function( api, $ ) {
'use strict';
var component = {
data: {
Function PluginCustomizerBlankSlate
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PluginCustomizerBlankSlate = (function( api, $ ) {
'use strict';
var component = {
data: {
Function init
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
component.init = function init( home, sections ) {
_.extend( component.data, home );
_.extend( {}, sections );
if ( ! home || ! home.url ) {
throw new Error( 'Missing args' );
Spaces must be used for mid-line alignment; tabs are not allowed Open
Open
'type' => 'option',
- Exclude checks
Array double arrow not aligned correctly; expected 1 space(s) between "'capability'" and double arrow, but found 4. Open
Open
'capability' => 'manage_options',
- Exclude checks
Please spell "WordPress" correctly. Found 1 misspelling(s): WordPres Open
Open
* WordPres Customizer is dependant on functionality in the theme. Just in case
- Exclude checks
Spaces must be used for mid-line alignment; tabs are not allowed Open
Open
* @param Array $query_vars All defined query variables.
- Exclude checks
Found precision alignment of 2 spaces. Open
Open
justify-content: center;
- Exclude checks
Found precision alignment of 2 spaces. Open
Open
justify-content: center;
- Exclude checks
Expected 1 space after comma in function call; 2 found Open
Open
$src = plugins_url( 'js/plugin-customizer-init.js' , __FILE__ );
- Exclude checks
Array double arrow not aligned correctly; expected 2 space(s) between "'capability'" and double arrow, but found 4. Open
Open
'capability' => 'manage_options',
- Exclude checks
Array double arrow not aligned correctly; expected 5 space(s) between "'type'" and double arrow, but found 1. Open
Open
'type' => 'textarea',
- Exclude checks
Expected 1 space before opening brace; found 0 Open
Open
add_filter( 'pre_option_template', function(){
- Exclude checks
Array item not aligned correctly; expected 17 spaces but found 18 Open
Open
sprintf( '%s/templates/(.*)$', $this->slug ) => sprintf( 'index.php?plugin-customizer-template-%s=%s', $this->slug, $wp_rewrite->preg_index( 1 ) ),
- Exclude checks
Array double arrow not aligned correctly; expected 3 space(s) between "'newsletter_title_section'" and double arrow, but found 1. Open
Open
'newsletter_title_section' => parent::template_url( 'title.php' ), // translates to templates/title.php
- Exclude checks
Spaces must be used for mid-line alignment; tabs are not allowed Open
Open
'title' => __( 'Content', 'plugin-customizer' ),
- Exclude checks