ThatGerber/dfp-ads

View on GitHub
includes/Globals_Container.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    public static function get_post_var( $var ) {

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

Class Globals_Container {

Method name "Globals_Container::get_post_var" is not in camel caps format
Open

    public static function get_post_var( $var ) {

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

Class Globals_Container {

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

    public static function get_post_var( $var ) {

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

    static function filter_post_var( $var, $filter, $flags = null ) {

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

    public static function post_var_exists( $var ) {

Method name "Globals_Container::post_var_exists" is not in camel caps format
Open

    public static function post_var_exists( $var ) {

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

    public static function post_var_exists( $var ) {

Method name "Globals_Container::filter_post_var" is not in camel caps format
Open

    static function filter_post_var( $var, $filter, $flags = null ) {

Visibility must be declared on method "filter_post_var"
Open

    static function filter_post_var( $var, $filter, $flags = null ) {

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

    static function filter_post_var( $var, $filter, $flags = null ) {

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

    public static function post_var_exists( $var ) {

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

     *

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

     * @param string $var

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

     * @param string $var

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

     */

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

     * Returns a $_POST variable without any filtering.

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

     * @since  0.3.0

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

     * If you just want to get a variable back and filter it later,

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

    /**

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

    /**

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

     * this is the function. Does not perform any action on the returned

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

     * @access public

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

     * data, just returns it.

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

     * @return bool

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

     *

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

     *

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

     */

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

    public static function get_post_var( $var ) {

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

     *

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

     * @return mixed

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

     *

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

     */

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

    static function filter_post_var( $var, $filter, $flags = null ) {

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

    }

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

     * @return mixed

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

        return filter_input( INPUT_POST, $var );

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

    }

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

    /**

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

     *

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

     * @param      $var

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

     * @param      $filter

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

     * @param null $flags

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

        return filter_input( INPUT_POST, $var, $filter, $flags );

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

        return ( self::get_post_var( $var ) != true ? false : true );

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

    }

Space after opening parenthesis of function call prohibited
Open

        return filter_input( INPUT_POST, $var );

Opening brace should be on a new line
Open

    public static function get_post_var( $var ) {

Expected 0 spaces before closing bracket; 1 found
Open

        return filter_input( INPUT_POST, $var );

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

Class Globals_Container {

Expected 0 spaces before closing bracket; 1 found
Open

        return filter_input( INPUT_POST, $var, $filter, $flags );

Opening brace should be on a new line
Open

    public static function post_var_exists( $var ) {

Space after opening parenthesis of function call prohibited
Open

        return ( self::get_post_var( $var ) != true ? false : true );

Expected 1 newline at end of file; 0 found
Open

}

Opening brace should be on a new line
Open

    static function filter_post_var( $var, $filter, $flags = null ) {

Expected 0 spaces before closing bracket; 1 found
Open

        return ( self::get_post_var( $var ) != true ? false : true );

Space after opening parenthesis of function call prohibited
Open

        return filter_input( INPUT_POST, $var, $filter, $flags );

There are no issues that match your filters.

Category
Status