src/includes/admin/ProductStatus.php
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 9 and the first side effect is on line 6.<?php namespace VindiPaymentGateways; Expected 0 spaces before closing bracket; 1 found
Expected 0 spaces after opening bracket; 1 found
Space after opening parenthesis of function call prohibitedif ( ! defined( 'ABSPATH' ) ) {Spaces must be used to indent lines; tabs are not allowed exit; // Exit if accessed directly} The property $vindi_settings is not named in camelCase.class VindiProductStatus{ /** * @var VindiSettings */Line indented incorrectly; expected 4 spaces, found 2 private $vindi_settings; Visibility must be declared on method "__construct"
Line indented incorrectly; expected 4 spaces, found 2 function __construct(VindiSettings $vindi_settings)Line indented incorrectly; expected at least 4 spaces, found 2 {Line indented incorrectly; expected at least 8 spaces, found 4 $this->vindi_settings = $vindi_settings; Line indented incorrectly; expected at least 8 spaces, found 4 add_action('admin_notices', array(&$this, 'product_status_notifier'));Line indented incorrectly; expected 4 spaces, found 2 } /** * Show product creation status * @return string $text */Line indented incorrectly; expected 4 spaces, found 2 public function product_status_notifier()Line indented incorrectly; expected at least 4 spaces, found 2 {Inline control structures are not allowed
Expected 1 space after IF keyword; 0 found
Line indented incorrectly; expected at least 8 spaces, found 4 if(empty(get_transient('vindi_product_message')))Line indented incorrectly; expected at least 8 spaces, found 6 return; Line indented incorrectly; expected at least 8 spaces, found 4 include_once VINDI_SRC . 'views/product-status.php';Line indented incorrectly; expected 4 spaces, found 2 }}