ThatGerber/dfp-ads

View on GitHub
plugin.php

Summary

Maintainability
A
0 mins
Test Coverage

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 48 and the first side effect is on line 25.
Open

<?php
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

if ( is_admin() ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between argument "$fields" and closing bracket; 1 found
Open

add_filter( DFP_Ads_Post_Type::FIELDS_FILTER, ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between argument "$sections" and closing bracket; 1 found
Open

    add_filter( 'dfp_ads_settings_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$fields"; 1 found
Open

    add_filter( 'dfp_ads_settings_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between argument "$fields" and closing bracket; 1 found
Open

    add_filter( 'dfp_ads_settings_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

if ( ! defined( 'DFP_CONCAT_SCRIPTS' ) ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between argument "$fields" and closing bracket; 1 found
Open

    add_filter( 'dfp_ads_import_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between argument "$pos" and closing bracket; 1 found
Open

add_filter( 'dfp_ads_menu_position', ( function ( $pos ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$sections"; 1 found
Open

    add_filter( 'dfp_ads_settings_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$pos"; 1 found
Open

add_filter( 'dfp_ads_menu_position', ( function ( $pos ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$fields"; 1 found
Open

    add_filter( 'dfp_ads_import_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$sections"; 1 found
Open

    add_filter( 'dfp_ads_import_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$fields"; 1 found
Open

add_filter( DFP_Ads_Post_Type::FIELDS_FILTER, ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between argument "$sections" and closing bracket; 1 found
Open

    add_filter( 'dfp_ads_import_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between argument "$fields" and closing bracket; 1 found
Open

add_action( 'widgets_init', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$fields"; 1 found
Open

add_action( 'widgets_init', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

    array( $dfp_post_type, 'shortcode_column_value' ), 10, 1 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

    array( $dfp_post_type, 'shortcode_column_value' ), 10, 1 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'id'    => 'dfp_ad_code', // Input ID
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    // Out of Page
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'id'    => 'dfp_out_of_page',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        )
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'label' => 'Code',        // Label / Setting Name
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'id'    => 'dfp_position_name',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'type'  => 'text',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'label' => 'Name',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'type'  => 'textarea',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'type'  => 'checkbox',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    return $fields;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    } ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'callback'    => 'text',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'id'          => 'dfp_synchronous_tags',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin              = new DFP_Ads_Admin( $ad_form );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    add_action( 'admin_init', array( $ad_admin, 'menu_page_init' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    define( 'DFP_CONCAT_SCRIPTS', true );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'name'  => 'dfp_position_name',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'name'  => 'dfp_position_sizes',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    add_filter( 'dfp_ads_settings_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $sections['ad_positions'] = array(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'field'       => 'checkbox',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'value' => '',            // Value for the field
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'section'     => 'general_settings',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $fields[] = new DFP_Ads_Input(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'label' => 'Out of Page Slot',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'value' => '',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'title' => 'General Settings'
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    add_filter( 'dfp_ads_settings_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'title'       => 'Use Synchronous Ad Tags',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->user_cap    = 'manage_options';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    return 79;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    // Ad Position Name
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'name'  => 'dfp_out_of_page',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->options_grp = 'DFP_Ads_Settings_group';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    add_action( 'admin_menu', array( $ad_admin, 'register_menu_page' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    add_filter( 'dfp_ads_import_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    array( $dfp_post_type, 'shortcode_column_value' ), 10, 1 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'name'  => 'dfp_ad_code', // Name of Input
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'id'          => 'import_csv',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'section'     => 'import_data',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->plugin_slug = 'import';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->options_grp = 'DFP_Ads_Import_group';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    add_action( 'admin_init', array( $ad_admin, 'menu_page_init' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    register_widget( "DFP_Ads_Widget" );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /* Section headings */
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->plugin_slug = 'settings';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        )
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        array(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        array(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'id'    => 'dfp_position_sizes',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'title'       => 'DFP Property Code',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'section'     => 'general_settings',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return $fields;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'value' => '',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        )
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'field'       => 'file',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        array(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'callback'    => 'checkbox',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->options_str = 'DFP_Ads_Settings';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin              = new DFP_Ads_Admin( $import_form );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'label' => 'Ad Sizes',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'value' => '',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /* Section Fields */
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $fields[] = new DFP_Ads_Input(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        )
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        array(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'id'    => 'general_settings',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    } ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    // Settings Page
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->menu_title  = 'Settings';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'id'    => 'import_data',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $fields['file_import'] = array(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    array( $dfp_post_type, 'add_shortcode_column' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'description' => 'Upload a CSV File directly from DoubleClick for Publishers'
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $fields['dfp_property_code']    = array(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'id'          => 'dfp_property_code',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'field'       => 'text',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_form               = new DFP_Ads_Settings_Form;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->post_type   = $dfp_post_type->name;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'callback'    => 'file',
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return $fields;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->page_title  = 'Import Positions';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    // Ad Code
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'type'  => 'text',        // Type of Input
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $fields[] = new DFP_Ads_Input(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    // Sizes
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $fields[] = new DFP_Ads_Input(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return $sections;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->page_title  = 'Ad Manager Settings';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $import_form           = new DFP_Ads_Import_Form;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->options_str = 'DFP_Ads_Import';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->user_cap    = 'manage_options';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return $sections;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    add_action( 'admin_menu', array( $ad_admin, 'register_menu_page' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /*
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $fields['dfp_synchronous_tags'] = array(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->post_type   = $dfp_post_type->name;
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'description' => 'Enter your DoubleClick for Publishers Property Code.'
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    add_filter( 'dfp_ads_import_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'title' => 'Import from CSV'
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    } ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    } ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $ad_admin->menu_title  = 'Import';
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'description' => '<em>DFP Ad Manager uses asynchronous tags by default. Choose this option if
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $sections['import_data'] = array(
Severity: Minor
Found in plugin.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'title'       => 'Import CSV from DFP',
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    define( 'DFP_CONCAT_SCRIPTS', true );
Severity: Minor
Found in plugin.php by phpcodesniffer

Opening parenthesis of a multi-line function call must be the last content on the line
Open

add_action( "manage_{$dfp_post_type->name}_posts_custom_column",
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'wp_enqueue_scripts', array( $dfp_ads, 'scripts_and_styles' ), 100 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'init', array( $dfp_post_type, 'create_post_type' ), 0, 0 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'wp_enqueue_scripts', array( $dfp_ads, 'scripts_and_styles' ), 100 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    add_action( 'admin_init', array( $ad_admin, 'menu_page_init' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

if ( ! defined( 'DFP_CONCAT_SCRIPTS' ) ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Multi-line function call not indented correctly; expected 0 spaces but found 4
Open

    array( $dfp_post_type, 'shortcode_column_value' ), 10, 1 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'add_meta_boxes', array( $dfp_post_type, 'add_meta_boxes' ), 10, 2 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

$dfp_ads->set_account_id( dfp_get_settings_value( 'dfp_property_code' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

$dfp_ads->set_asynchronous_loading( dfp_get_settings_value( 'dfp_synchronous_tags' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_filter( 'dfp_ads_menu_position', ( function ( $pos ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    add_filter( 'dfp_ads_settings_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    add_filter( 'dfp_ads_settings_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( "save_post_{$dfp_post_type->name}", array( $dfp_post_type, 'save_meta_box' ), 10, 2 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

if ( ! defined( 'DFP_CONCAT_SCRIPTS' ) ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'dfp_ads_metabox_middle', array( $dfp_post_type, 'settings_table' ), 9 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_filter( 'pre_dfp_ads_to_js', array( $dfp_ads, 'send_ads_to_js' ), 1 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    add_filter( 'dfp_ads_import_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'dfp_ads_metabox_middle', array( $dfp_post_type, 'settings_table' ), 9 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'init', array( $dfp_post_type, 'create_post_type' ), 0, 0 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'add_meta_boxes', array( $dfp_post_type, 'add_meta_boxes' ), 10, 2 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Opening parenthesis of a multi-line function call must be the last content on the line
Open

add_filter( "manage_{$dfp_post_type->name}_posts_columns",
Severity: Minor
Found in plugin.php by phpcodesniffer

Closing parenthesis of a multi-line function call must be on a line by itself
Open

    array( $dfp_post_type, 'add_shortcode_column' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'dfp_ads_metabox_top', array( $dfp_post_type, 'ad_position_shortcode' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

if ( is_admin() ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( "save_post_{$dfp_post_type->name}", array( $dfp_post_type, 'save_meta_box' ), 10, 2 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

$dfp_ads->dir_uri = plugins_url( null, __FILE__ );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_filter( 'pre_dfp_ads_to_js', array( $dfp_ads, 'send_ads_to_js' ), 1 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    add_filter( 'dfp_ads_settings_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    add_filter( 'dfp_ads_settings_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

$dfp_ads->set_account_id( dfp_get_settings_value( 'dfp_property_code' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_filter( DFP_Ads_Post_Type::FIELDS_FILTER, ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    add_action( 'admin_init', array( $ad_admin, 'menu_page_init' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    add_action( 'admin_menu', array( $ad_admin, 'register_menu_page' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    $ad_admin              = new DFP_Ads_Admin( $import_form );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'dfp_ads_fields', array( $dfp_post_type, 'add_inputs' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'dfp_ads_metabox_top', array( $dfp_post_type, 'ad_position_shortcode' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

$dfp_ads->dir_uri = plugins_url( null, __FILE__ );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

$dfp_ads->set_account_id( dfp_get_settings_value( 'dfp_property_code' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

$dfp_ads->set_asynchronous_loading( dfp_get_settings_value( 'dfp_synchronous_tags' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_filter( DFP_Ads_Post_Type::FIELDS_FILTER, ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    $ad_admin              = new DFP_Ads_Admin( $ad_form );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    add_filter( 'dfp_ads_import_fields', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

$dfp_ads->set_asynchronous_loading( dfp_get_settings_value( 'dfp_synchronous_tags' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

$dfp_ads->set_asynchronous_loading( dfp_get_settings_value( 'dfp_synchronous_tags' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    add_action( 'admin_menu', array( $ad_admin, 'register_menu_page' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Closing parenthesis of a multi-line function call must be on a line by itself
Open

    array( $dfp_post_type, 'shortcode_column_value' ), 10, 1 );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    add_action( 'admin_init', array( $ad_admin, 'menu_page_init' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_filter( 'dfp_ads_menu_position', ( function ( $pos ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    add_action( 'admin_menu', array( $ad_admin, 'register_menu_page' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    define( 'DFP_CONCAT_SCRIPTS', true );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'dfp_ads_fields', array( $dfp_post_type, 'add_inputs' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    add_filter( 'dfp_ads_import_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

if ( ! defined( 'DFP_CONCAT_SCRIPTS' ) ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Multi-line function call not indented correctly; expected 0 spaces but found 4
Open

    array( $dfp_post_type, 'add_shortcode_column' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

$dfp_ads->set_account_id( dfp_get_settings_value( 'dfp_property_code' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    $ad_admin              = new DFP_Ads_Admin( $ad_form );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    add_action( 'admin_menu', array( $ad_admin, 'register_menu_page' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    add_filter( 'dfp_ads_import_sections', ( function ( $sections ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'widgets_init', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    register_widget( "DFP_Ads_Widget" );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    add_action( 'admin_init', array( $ad_admin, 'menu_page_init' ) );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    $ad_admin              = new DFP_Ads_Admin( $import_form );
Severity: Minor
Found in plugin.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    register_widget( "DFP_Ads_Widget" );
Severity: Minor
Found in plugin.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'widgets_init', ( function ( $fields ) {
Severity: Minor
Found in plugin.php by phpcodesniffer

There are no issues that match your filters.

Category
Status