ThatGerber/dfp-ads

View on GitHub
includes/Post_Type.php

Summary

Maintainability
A
0 mins
Test Coverage

Method name "Post_Type::add_meta_boxes" is not in camel caps format
Open

    public function add_meta_boxes() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

PHP keywords must be lowercase; expected "const" but found "CONST"
Open

    CONST FIELDS_FILTER = 'dfp_ads_metabox_fields';
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::create_post_type" is not in camel caps format
Open

    public function create_post_type() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace of a class must be on the line after the definition
Open

class Post_Type {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space found after opening bracket of FOREACH loop
Open

        foreach ( $this->metaboxes as $box ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space found before closing bracket of FOREACH loop
Open

        foreach ( $this->metaboxes as $box ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Blank line found at start of control structure
Open

        switch ( $column ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::verify_nonce" is not in camel caps format
Open

    private function verify_nonce() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::save_meta_box" is not in camel caps format
Open

    public function save_meta_box( $post_id ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::settings_box" is not in camel caps format
Open

    public function settings_box( $post ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        if ( is_a( $post, 'WP_Post' ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        foreach ( $fields as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::shortcode_column_value" is not in camel caps format
Open

    public function shortcode_column_value( $column ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function shortcode_column_value( $column ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function shortcode_column_value( $column ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            if ( DFP_Ads_Globals::post_var_exists( $input->name ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function settings_box( $post ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space found before closing bracket of FOREACH loop
Open

            foreach ( dfp_get_fields() as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        foreach ( $this->metaboxes as $box ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::add_inputs" is not in camel caps format
Open

    public function add_inputs() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

There must be no space before the colon in a CASE statement
Open

            case 'short_code' :
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space found after opening bracket of FOREACH loop
Open

        foreach ( $fields as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Blank line found at start of control structure
Open

        ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function add_shortcode_column( $columns ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::ad_position_shortcode" is not in camel caps format
Open

    public function ad_position_shortcode() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::get_labels" is not in camel caps format
Open

    private function get_labels() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Blank line found at start of control structure
Open

        } else {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function save_meta_box( $post_id ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Blank line found at start of control structure
Open

        ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function settings_box( $post ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::settings_table" is not in camel caps format
Open

    public function settings_table() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function add_shortcode_column( $columns ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

There must be no space before the colon in a CASE statement
Open

            case 'post_id' :
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space found after opening bracket of FOREACH loop
Open

            foreach ( dfp_get_fields() as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::add_shortcode_column" is not in camel caps format
Open

    public function add_shortcode_column( $columns ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        switch ( $column ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

There must be no space before the colon in a CASE statement
Open

            case 'ad_code' :
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function save_meta_box( $post_id ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Blank line found at end of control structure
Open


Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            foreach ( dfp_get_fields() as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::get_args" is not in camel caps format
Open

    private function get_args() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    private function update_meta( $post_id, $fields ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space found before closing bracket of FOREACH loop
Open

        foreach ( $fields as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Method name "Post_Type::update_meta" is not in camel caps format
Open

    private function update_meta( $post_id, $fields ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    private function update_meta( $post_id, $fields ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    CONST FIELDS_FILTER = 'dfp_ads_metabox_fields';
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @var array
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public $inputs;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Create Post Type
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        global $post;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Name of the custom post type
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Metabox Nonce. For Security Reasons
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function create_post_type() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        $args['labels'] = $this->get_labels();
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        foreach ( $this->metaboxes as $box ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @const  Name of the action that runs in the metabox fields.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Add Meta Boxes
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Array of DFP_Ads_Input objects
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access private
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public $name = 'dfp_ads';
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function add_meta_boxes() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    private $nonce = 'dfp_meta_nonce';
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        $this->metaboxes[0]['name']          = $this->name;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        $this->metaboxes[0]['callback']      = array( $this, 'settings_box' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        $this->metaboxes[0]['callback_args'] = $post->ID;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Made private in 0.3.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Creates the custom post type for ad positions.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        register_post_type( $this->name, $args );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        $args           = $this->get_args();
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $box['context'],
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        /*
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        /*
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        do_action( 'dfp_ads_metabox_bottom' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * special input for grabbing the shortcode.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            case 'short_code' :
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                dfp_ads_shortcode_field( $post->ID );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        global $post;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Runs the action DFP_Ads_Field, which creates the input fields.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function settings_table() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            <tr>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'priority' => 'high'
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.3.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $box['id'],
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @param int $post_id The post ID.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'short_code' => __( 'Short Code', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        array(
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    private function get_args() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'public'              => false,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'show_in_admin_bar'   => false,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'menu_icon'           => 'dashicons-welcome-widgets-menus',
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            return false;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $box['title'],
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            wp_is_post_revision( $post_id ) ||
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        global $post;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'ad_code'    => __( 'Ad Code', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function add_inputs() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        </p>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        return array(
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            <tbody>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            </tbody>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access private
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'search_items'       => __( 'Search Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $box['callback'],
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $box['priority']
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'title'      => __( 'Title', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            foreach ( dfp_get_fields() as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        ?>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @return array Returns array of arguments
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'add_new_item'       => __( 'Add New Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'edit_item'          => __( 'Edit Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.3.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @return bool
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            return true;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function save_meta_box( $post_id ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            return;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @return array
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                <th><?php _e( 'Value', 'dfp-ads' ); ?></th>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        <?php
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access private
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    private function get_labels() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @param int   $post_id
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            if ( DFP_Ads_Globals::post_var_exists( $input->name ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $box['name'],
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        // Exits script depending on save status
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Settings Metabox
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @param $post WP_Post
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @param $column array Array of filter columns.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        global $post;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        /*
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            <thead>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            </thead>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function ad_position_shortcode() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Creates post_type labels
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'not_found_in_trash' => __( 'Not found in Trash', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @param $columns
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        if (
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Adds columns for codename for ad as well as a
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Adds custom fields to metabox from filter
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        if ( is_a( $post, 'WP_Post' ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $input->create_input();
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        ?>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        <table class="widefat">
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                <th><?php _e( 'Settings', 'dfp-ads' ); ?></th>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        <?php
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'menu_name'          => __( 'Ad Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Adds Shortcode Input box to metabox.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.3.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Verifies the nonce is correct.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'hierarchical'        => true,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'can_export'          => true,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'publicly_queryable'  => true,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            wp_is_post_autosave( $post_id ) ||
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                _e( $post->ID, 'dfp-ads' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Call back for the settings table
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    protected $metaboxes = array(
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'show_in_menu'        => true,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'rewrite'             => false,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.3.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                break;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            case 'ad_code' :
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'view_item'          => __( 'View Ad Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                break;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access private
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $input->value = get_post_meta( $post->ID, $input->name, true );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @param array $fields Array of \DFP_Ads\Admin\Input
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            ?>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        // Checks for input and sanitizes/saves if needed
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $new_value = ( DFP_Ads_Globals::post_var_exists( $input->name ) ? true : false );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        <p>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            <strong>Ad Position Shortcode</strong> : <?php dfp_ads_shortcode_field( $post->ID ); ?>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Creates post_type arguments.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        if (
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                $new_value = sanitize_text_field( DFP_Ads_Globals::get_post_var( $input->name ) );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    private function verify_nonce() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            ! $this->verify_nonce()
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        $this->update_meta( $post_id, dfp_get_fields() );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'cb'         => __( '', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Queued to run in the CPT meta box.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access protected
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'id'       => 'ad_pos_settings',
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'title'    => 'Ad Position Settings',
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'capability_type'     => 'page'
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        return array(
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'singular_name'      => _x( 'Ad Position', 'Post Type Singular Name', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'all_items'          => __( 'All Ad Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'not_found'          => __( 'Not found', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            add_meta_box(
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Saves a metabox
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        /*
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.0.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access public
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'post_id'    => __( 'Ad ID', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        switch ( $column ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            <?php
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        </table>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                echo get_post_meta( $post->ID, 'dfp_ad_code', true );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'supports'            => array( 'title' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            case 'post_id' :
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'show_ui'             => true,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        wp_nonce_field( basename( __FILE__ ), $this->nonce );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Customize Ad Positions Columns
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'menu_position'       => apply_filters( 'dfp_ads_menu_position', 20 ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            </tr>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'name'               => _x( 'Ad Positions', 'Post Type General Name', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function add_shortcode_column( $columns ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function settings_box( $post ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        return array(
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            /*
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'add_new'            => __( 'Add New', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    public function shortcode_column_value( $column ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        do_action( 'dfp_ads_metabox_top' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        global $post;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                break;
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'update_item'        => __( 'Update Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                 * @param \DFP_Ads\Admin\Input $input
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Update's the meta data for all supplied fields utilizing $_POST data.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        do_action( 'dfp_ads_metabox_middle' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @var array $metaboxes
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    private function update_meta( $post_id, $fields ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @since  0.3.1
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        foreach ( $fields as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'label'               => __( $this->name, 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * Runs action on the created columns.
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            && wp_verify_nonce( DFP_Ads_Globals::get_post_var( $this->nonce ), basename( __FILE__ ) )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            do_action( 'dfp_ads_fields' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'show_in_nav_menus'   => false,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'context'  => 'normal',
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'description'         => __( 'Ad Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

                 */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'exclude_from_search' => true,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    /**
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @return array Returns array of arguments
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'has_archive'         => false,
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            'parent_item_colon'  => __( 'Parent Positions:', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            update_post_meta( $post_id, $input->name, $new_value );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     *
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

    }
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            } else {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

            DFP_Ads_Globals::post_var_exists( $this->nonce )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     * @access private
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

     */
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

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

        } else {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        register_post_type( $this->name, $args );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function create_post_type() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        register_post_type( $this->name, $args );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Class name "Post_Type" is not in camel caps format
Open

class Post_Type {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function add_meta_boxes() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

        foreach ( $this->metaboxes as $box ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            wp_is_post_autosave( $post_id ) ||
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            wp_is_post_revision( $post_id ) ||
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        wp_nonce_field( basename( __FILE__ ), $this->nonce );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        wp_nonce_field( basename( __FILE__ ), $this->nonce );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                $input->value = get_post_meta( $post->ID, $input->name, true );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            do_action( 'dfp_ads_fields' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'parent_item_colon'  => __( 'Parent Positions:', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        wp_nonce_field( basename( __FILE__ ), $this->nonce );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                dfp_ads_shortcode_field( $post->ID );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function ad_position_shortcode() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            <strong>Ad Position Shortcode</strong> : <?php dfp_ads_shortcode_field( $post->ID ); ?>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'label'               => __( $this->name, 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'label'               => __( $this->name, 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'singular_name'      => _x( 'Ad Position', 'Post Type Singular Name', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'edit_item'          => __( 'Edit Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            if ( DFP_Ads_Globals::post_var_exists( $input->name ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        do_action( 'dfp_ads_metabox_top' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'short_code' => __( 'Short Code', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                <th><?php _e( 'Value', 'dfp-ads' ); ?></th>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                <th><?php _e( 'Value', 'dfp-ads' ); ?></th>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function add_inputs() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        if ( is_a( $post, 'WP_Post' ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'description'         => __( 'Ad Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'menu_position'       => apply_filters( 'dfp_ads_menu_position', 20 ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'view_item'          => __( 'View Ad Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

            if ( DFP_Ads_Globals::post_var_exists( $input->name ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'add_new_item'       => __( 'Add New Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'update_item'        => __( 'Update Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            update_post_meta( $post_id, $input->name, $new_value );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            && wp_verify_nonce( DFP_Ads_Globals::get_post_var( $this->nonce ), basename( __FILE__ ) )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        do_action( 'dfp_ads_metabox_middle' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function shortcode_column_value( $column ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                _e( $post->ID, 'dfp-ads' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                _e( $post->ID, 'dfp-ads' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        if ( is_a( $post, 'WP_Post' ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function get_args() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function get_labels() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function update_meta( $post_id, $fields ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

        foreach ( $fields as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            if ( DFP_Ads_Globals::post_var_exists( $input->name ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            DFP_Ads_Globals::post_var_exists( $this->nonce )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            && wp_verify_nonce( DFP_Ads_Globals::get_post_var( $this->nonce ), basename( __FILE__ ) )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        wp_nonce_field( basename( __FILE__ ), $this->nonce );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        do_action( 'dfp_ads_metabox_bottom' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

        switch ( $column ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            <strong>Ad Position Shortcode</strong> : <?php dfp_ads_shortcode_field( $post->ID ); ?>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces after opening bracket; newline found
Open

        if (
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            && wp_verify_nonce( DFP_Ads_Globals::get_post_var( $this->nonce ), basename( __FILE__ ) )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $this->update_meta( $post_id, dfp_get_fields() );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        do_action( 'dfp_ads_metabox_middle' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'cb'         => __( '', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'singular_name'      => _x( 'Ad Position', 'Post Type Singular Name', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'view_item'          => __( 'View Ad Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            update_post_meta( $post_id, $input->name, $new_value );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            DFP_Ads_Globals::post_var_exists( $this->nonce )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $this->update_meta( $post_id, dfp_get_fields() );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function settings_box( $post ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function save_meta_box( $post_id ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'short_code' => __( 'Short Code', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'cb'         => __( '', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'ad_code'    => __( 'Ad Code', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                echo get_post_meta( $post->ID, 'dfp_ad_code', true );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                echo get_post_meta( $post->ID, 'dfp_ad_code', true );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                $input->value = get_post_meta( $post->ID, $input->name, true );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'name'               => _x( 'Ad Positions', 'Post Type General Name', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'menu_name'          => __( 'Ad Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'add_new'            => __( 'Add New', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'not_found_in_trash' => __( 'Not found in Trash', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function verify_nonce() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            && wp_verify_nonce( DFP_Ads_Globals::get_post_var( $this->nonce ), basename( __FILE__ ) )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'menu_position'       => apply_filters( 'dfp_ads_menu_position', 20 ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces after opening bracket; newline found
Open

        if (
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'search_items'       => __( 'Search Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        do_action( 'dfp_ads_metabox_bottom' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function add_shortcode_column( $columns ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'title'      => __( 'Title', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'ad_code'    => __( 'Ad Code', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'all_items'          => __( 'All Ad Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'not_found'          => __( 'Not found', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'not_found'          => __( 'Not found', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

        if ( is_a( $post, 'WP_Post' ) ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                $new_value = sanitize_text_field( DFP_Ads_Globals::get_post_var( $input->name ) );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'description'         => __( 'Ad Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            && wp_verify_nonce( DFP_Ads_Globals::get_post_var( $this->nonce ), basename( __FILE__ ) )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            wp_is_post_autosave( $post_id ) ||
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            wp_is_post_revision( $post_id ) ||
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'post_id'    => __( 'Ad ID', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                dfp_ads_shortcode_field( $post->ID );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                <th><?php _e( 'Settings', 'dfp-ads' ); ?></th>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            do_action( 'dfp_ads_fields' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        do_action( 'dfp_ads_metabox_top' );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'title'      => __( 'Title', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'post_id'    => __( 'Ad ID', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                <th><?php _e( 'Settings', 'dfp-ads' ); ?></th>
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

            foreach ( dfp_get_fields() as $input ) {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'add_new_item'       => __( 'Add New Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'add_new'            => __( 'Add New', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function settings_table() {
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'update_item'        => __( 'Update Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'search_items'       => __( 'Search Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'not_found_in_trash' => __( 'Not found in Trash', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'menu_name'          => __( 'Ad Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'all_items'          => __( 'All Ad Positions', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            'name'               => _x( 'Ad Positions', 'Post Type General Name', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                $new_value = sanitize_text_field( DFP_Ads_Globals::get_post_var( $input->name ) );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'parent_item_colon'  => __( 'Parent Positions:', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                $new_value = sanitize_text_field( DFP_Ads_Globals::get_post_var( $input->name ) );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            'edit_item'          => __( 'Edit Position', 'dfp-ads' ),
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                $new_value = sanitize_text_field( DFP_Ads_Globals::get_post_var( $input->name ) );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                $new_value = ( DFP_Ads_Globals::post_var_exists( $input->name ) ? true : false );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            && wp_verify_nonce( DFP_Ads_Globals::get_post_var( $this->nonce ), basename( __FILE__ ) )
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                $new_value = ( DFP_Ads_Globals::post_var_exists( $input->name ) ? true : false );
Severity: Minor
Found in includes/Post_Type.php by phpcodesniffer

There are no issues that match your filters.

Category
Status