ThatGerber/dfp-ads

View on GitHub
includes/admin/Form.php

Summary

Maintainability
A
0 mins
Test Coverage

PHP keywords must be lowercase; expected "abstract" but found "Abstract"
Open

Abstract Class Form {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function text( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

Abstract Class Form {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function form_title( $title = null ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

PHP keywords must be lowercase; expected "class" but found "Class"
Open

Abstract Class Form {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function form_title( $title = null ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Method name "Form::render_form" is not in camel caps format
Open

    abstract public function render_form();
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function text( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Method name "Form::form_title" is not in camel caps format
Open

    public function form_title( $title = null ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function ads_dropdown( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Method name "Form::ads_dropdown" is not in camel caps format
Open

    public function ads_dropdown( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function checkbox( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function ads_dropdown( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function checkbox( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function button( $value, $primary = false ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function button( $value, $primary = false ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Method name "Form::submit_button" is not in camel caps format
Open

    public function submit_button() {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            <?php if ( isset( $args['description'] ) ) { ?>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public function text( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $id    = $this->options_str . '[' . $args['id'] . ']';
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * Page Title
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

    public $settings_sections;
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * @since  0.2.0
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

     * @TODO   Add Labels
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

    abstract public function render_form();
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * @param $title string Form Title
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $args  = $args[0];
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * Coagulates the functions into a form on the front-end.
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function form_title( $title = null ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        // Takes specialized title, or uses default if empty.
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        // Echos title
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     * Abstract
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public $values;
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

     * @since  0.2.0
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

    public $options_str;
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

     * String to call settings fields
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

    public $settings_fields;
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

        echo "<h2>$title</h2>";
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * @param $args array
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

     * String identifier for the options
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

     * Creates input
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $title = ( $title === null ? $this->title : $title );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        // Why is it so nested?
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * String to call settings sections
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

     * Adds the title to the page.
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

     * @since  0.2.0
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

            <input type="<?php _e( $field, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

                   name="<?php _e( $id, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

     * Simple method for accessing a submit button
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

        $args    = $args[0];
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $id      = $this->options_str . '[' . $args['id'] . ']';
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $value = wp_strip_all_tags( $value, true );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        <input type="submit" name="submit" id="submit" class="button <?php echo $button_type; ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

        $value = ( ! isset( $this->values[ $args['id'] ] ) ? '' : $this->values[ $args['id'] ] );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

            </select>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

            <?php if ( isset( $args['description'] ) ) { ?>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

     * @TODO   Add Labels
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

                   value="<?php _e( $value, 'dfp-ads' ); ?>"/>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * Creates an HTML button.
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

     * @param $value   string Value of the submit button
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

    public function ads_dropdown( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * @param $primary bool Mark a button as a primary button
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $title = $args['title'];
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

    public function submit_button() {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

                echo '<p><em>' . $args['description'] . '</em></p>';
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

     * Creates checkbox input
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * @param $args array
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

        $field   = $args['field'];
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

    public function button( $value, $primary = false ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $this->button( "Save Changes", true );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $value = ( ! isset( $this->values[ $args['id'] ] ) ? '' : $this->values[ $args['id'] ] );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

            <select id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

            <input type="<?php _e( $field, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

     * Button Function
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

        $field = $args['field'];
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

     * @param $args Array
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        // Why is it so nested?
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        // Field values
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

        $args = $args[0];
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $id    = $this->options_str . '[' . $args['id'] . ']';
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

        // Why is it so nested?
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

                <?php dfp_ad_select_options( $value ); ?>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $value   = ( ! isset( $this->values[ $args['id'] ] ) ? '' : $this->values[ $args['id'] ] );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

                   name="<?php _e( $id, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

        $button_type = ( $primary === false ? 'button-secondary' : 'button-primary' )
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

    public function checkbox( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $title   = $args['title'];
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

               value="<?php echo $value; ?>">
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $title = $args['title'];
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * Creates Select Options for widget
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * @TODO   Add Labels
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

     * @since  0.2.0
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

            <?php } ?>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

                <?php _e( $checked ); ?> />
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

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

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

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

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

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

                <p><em><?php _e( $args['description'], 'dfp-ads' ); ?></em></p>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

        $checked = ( $value == 'on' ? 'checked' : '' );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

                echo '<p><em>' . $args['description'] . '</em></p>';
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

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

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

Opening brace should be on a new line
Open

    public function form_title( $title = null ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function text( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                   name="<?php _e( $id, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                <p><em><?php _e( $args['description'], 'dfp-ads' ); ?></em></p>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            <input type="<?php _e( $field, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                   name="<?php _e( $id, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            <input type="<?php _e( $field, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            <select id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            <select id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $value = ( ! isset( $this->values[ $args['id'] ] ) ? '' : $this->values[ $args['id'] ] );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                <?php dfp_ad_select_options( $value ); ?>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                <p><em><?php _e( $args['description'], 'dfp-ads' ); ?></em></p>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $this->button( "Save Changes", true );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            <input type="<?php _e( $field, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            <select id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function button( $value, $primary = false ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function ads_dropdown( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $value = ( ! isset( $this->values[ $args['id'] ] ) ? '' : $this->values[ $args['id'] ] );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

                   value="<?php _e( $value, 'dfp-ads' ); ?>"/>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            <?php if ( isset( $args['description'] ) ) { ?>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function checkbox( $args ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

            if ( isset( $args['description'] ) ) {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $value = ( ! isset( $this->values[ $args['id'] ] ) ? '' : $this->values[ $args['id'] ] );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $value   = ( ! isset( $this->values[ $args['id'] ] ) ? '' : $this->values[ $args['id'] ] );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $this->button( "Save Changes", true );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

            <?php if ( isset( $args['description'] ) ) { ?>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                <?php _e( $checked ); ?> />
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $value = wp_strip_all_tags( $value, true );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

                <?php dfp_ad_select_options( $value ); ?>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                   name="<?php _e( $id, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $value = ( ! isset( $this->values[ $args['id'] ] ) ? '' : $this->values[ $args['id'] ] );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                <?php _e( $checked ); ?> />
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            <select id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>">
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function submit_button() {
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            <?php if ( isset( $args['description'] ) ) { ?>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            <input type="<?php _e( $field, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                   name="<?php _e( $id, 'dfp-ads' ); ?>"
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $value = wp_strip_all_tags( $value, true );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                   value="<?php _e( $value, 'dfp-ads' ); ?>"/>
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $value   = ( ! isset( $this->values[ $args['id'] ] ) ? '' : $this->values[ $args['id'] ] );
Severity: Minor
Found in includes/admin/Form.php by phpcodesniffer

There are no issues that match your filters.

Category
Status