ThatGerber/dfp-ads

View on GitHub
includes/Position.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    public function __construct( $id = null ) {
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

    public function __construct( $id = null ) {
Severity: Minor
Found in includes/Position.php by phpcodesniffer

The closing brace for the class must go on the next line after the body
Open

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

Method name "Position::create_position" is not in camel caps format
Open

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

Method name "Position::display_position" is not in camel caps format
Open

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

Method name "Position::get_position" is not in camel caps format
Open

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

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

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

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

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

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

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

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

     * Targeting should be defined as an array of key => value pairs
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

     * Div ID of the ad position
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

     * The class to add to the ad position.
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

    private $position_class = 'dfp_ad_pos';
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * Constructs the object using the information provided by default in every installation. Values
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

            $this->ad_name      = $meta['dfp_ad_code'][0];
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

            $this->out_of_page  = ( isset( $meta['dfp_out_of_page'][0] ) ? true : false );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public $post_id;
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

            $meta               = get_post_meta( $position->ID );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

    public function __construct( $id = null ) {
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * Title of the position
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

    public $position_tag;
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

            $position->post_type === 'dfp_ads'
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

    public $targeting = array();
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

     * @var int
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * Ex. [728, 90] or [ [728, 90], [970, 90] ]
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

     * @var bool
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

     * Ex. div-gpt-ad-1375829763909
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * will come from CPT meta data.
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

            $this->position_tag = strtolower( 'Ad_Pos_' . $this->ad_name );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

    public $sizes = array();
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                $position = get_post( $id )
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

     * ID of the CPT
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

    public $ad_name;
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

     * Defines targeting for the ad slot
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

    public $title;
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

     * @param $id int|null Post ID to grab the post object and create the position
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

            $this->post_id      = $id;
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

            $this->title        = $position->post_title;
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * Name of the Ad Slot
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

     * Ex. SNG_ROS_Leaderboard
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

     * Ad sizes. Slot with multiple sizes needs to be nested.
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * Defines whether the slot should include Out of Page position
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * PHP5 Constructor
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

    public $out_of_page = false;
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

                $id !== null &&
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

            $this->sizes        = dfp_get_ad_sizes( $meta['dfp_position_sizes'][0] );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

        return $position_html;
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * The Ad Position.
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

        <div id="<?php _e( $this->position_tag, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

                googletag.cmd.push(function () {
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

        $this->create_position();
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

        $position_html = ob_get_contents();
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

        ob_end_clean();
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

     * Takes the HTML generated by DFP_Ad_Position::get_position and echoes it out
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * to the browser.
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * @return void
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

        ob_start();
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

        </div>
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * @return mixed
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

Line exceeds 120 characters; contains 159 characters
Open

             class="<?php _e( $this->position_tag, 'dfp-ads' ); ?> <?php _e( $this->ad_name, 'dfp-ads' ); ?> <?php _e( $this->position_class, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

        echo $this->get_position();
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

        printf( __( '<!-- %1s -->', 'dfp-ads' ), $this->ad_name );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

     * it for now. In the future, it can be updated to return HTML that is used by
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

     * @since  0.3.0
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * other functions.
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

             class="<?php _e( $this->position_tag, 'dfp-ads' ); ?> <?php _e( $this->ad_name, 'dfp-ads' ); ?> <?php _e( $this->position_class, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

     * Echo out the ad position
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

     * This is a nasty, ugly way of storing HTML. But it works, so I'm going to use
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

            <script type='text/javascript'>
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

     * if trying to wrap it in more html.
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

                    googletag.display('<?php _e( $this->position_tag, 'dfp-ads'); ?>');
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

            </script>
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * Generates HTML to display position
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * Useful when trying to get the HTML data back to run through a shortcode or
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

     * @since  0.3.0
Severity: Minor
Found in includes/Position.php by phpcodesniffer

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

     * @return string HTML string that contains ad position
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            $meta               = get_post_meta( $position->ID );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Expected 0 spaces after opening bracket; newline found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

            $this->position_tag = strtolower( 'Ad_Pos_' . $this->ad_name );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function __construct( $id = null ) {
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            $this->sizes        = dfp_get_ad_sizes( $meta['dfp_position_sizes'][0] );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                $position = get_post( $id )
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                $position = get_post( $id )
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            $this->out_of_page  = ( isset( $meta['dfp_out_of_page'][0] ) ? true : false );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            $this->sizes        = dfp_get_ad_sizes( $meta['dfp_position_sizes'][0] );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            $meta               = get_post_meta( $position->ID );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            $this->out_of_page  = ( isset( $meta['dfp_out_of_page'][0] ) ? true : false );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            $this->position_tag = strtolower( 'Ad_Pos_' . $this->ad_name );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

             class="<?php _e( $this->position_tag, 'dfp-ads' ); ?> <?php _e( $this->ad_name, 'dfp-ads' ); ?> <?php _e( $this->position_class, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Opening brace should be on a new line
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

        printf( __( '<!-- %1s -->', 'dfp-ads' ), $this->ad_name );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        printf( __( '<!-- %1s -->', 'dfp-ads' ), $this->ad_name );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        <div id="<?php _e( $this->position_tag, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

             class="<?php _e( $this->position_tag, 'dfp-ads' ); ?> <?php _e( $this->ad_name, 'dfp-ads' ); ?> <?php _e( $this->position_class, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        <div id="<?php _e( $this->position_tag, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Opening brace should be on a new line
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

             class="<?php _e( $this->position_tag, 'dfp-ads' ); ?> <?php _e( $this->ad_name, 'dfp-ads' ); ?> <?php _e( $this->position_class, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

             class="<?php _e( $this->position_tag, 'dfp-ads' ); ?> <?php _e( $this->ad_name, 'dfp-ads' ); ?> <?php _e( $this->position_class, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                    googletag.display('<?php _e( $this->position_tag, 'dfp-ads'); ?>');
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        printf( __( '<!-- %1s -->', 'dfp-ads' ), $this->ad_name );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        printf( __( '<!-- %1s -->', 'dfp-ads' ), $this->ad_name );
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

             class="<?php _e( $this->position_tag, 'dfp-ads' ); ?> <?php _e( $this->ad_name, 'dfp-ads' ); ?> <?php _e( $this->position_class, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

             class="<?php _e( $this->position_tag, 'dfp-ads' ); ?> <?php _e( $this->ad_name, 'dfp-ads' ); ?> <?php _e( $this->position_class, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/Position.php by phpcodesniffer

Opening brace should be on a new line
Open

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

There are no issues that match your filters.

Category
Status