ThatGerber/dfp-ads

View on GitHub

Showing 2,743 of 2,743 total issues

Expected 0 spaces before closing bracket; 1 found
Open

            foreach ( $categories as $c ) {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer

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

    public function send_ads_to_js( $dfp_ads ) {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer

Method name "DFP_Ads::get_page_targeting" is not in camel caps format
Open

    protected function get_page_targeting() {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer

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

    public function shortcode( $atts ) {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer

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

    public function shortcode( $atts ) {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer

Blank line found at start of control structure
Open

    if ( ! is_array( $input ) ) {
Severity: Minor
Found in includes/Functions.php by phpcodesniffer

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

function dfp_ad_position( $id ) {
Severity: Minor
Found in includes/Functions.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( strlen( $size_string ) > 0 ) {
Severity: Minor
Found in includes/Functions.php by phpcodesniffer

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

function dfp_ads_shortcode_field( $post_id ) {
Severity: Minor
Found in includes/Functions.php by phpcodesniffer

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

function dfp_get_settings_value( $setting ) {
Severity: Minor
Found in includes/Functions.php by phpcodesniffer

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

    public function send_ads_to_js( $dfp_ads ) {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer

Space found before closing bracket of FOREACH loop
Open

            foreach ( $categories as $c ) {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        if ( defined( 'DFP_CONCAT_SCRIPTS' ) && true === DFP_CONCAT_SCRIPTS ) {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( $position !== null && $position->post_type === 'dfp_ads' ) {
Severity: Minor
Found in includes/Functions.php by phpcodesniffer

Space found before closing bracket of FOREACH loop
Open

        foreach ( $sizes as $size ) {
Severity: Minor
Found in includes/Functions.php by phpcodesniffer

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

    public static function get_post_var( $var ) {

Expected 0 spaces before closing bracket; 1 found
Open

                foreach ( $tags as $tag ) {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer

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

function dfp_get_settings_value( $setting ) {
Severity: Minor
Found in includes/Functions.php by phpcodesniffer

Space found after opening bracket of FOREACH loop
Open

    foreach ( $positions as $position ) {
Severity: Minor
Found in includes/Functions.php by phpcodesniffer

Method name "DFP_Ads::get_category_targeting" is not in camel caps format
Open

    protected function get_category_targeting() {
Severity: Minor
Found in includes/DFP_Ads.php by phpcodesniffer
Severity
Category
Status
Source
Language