src/includes/admin/ProductStatus.php
Showing 22 of 22 total issues
The property $vindi_settings is not named in camelCase. Open
Open
class VindiProductStatus{ /** * @var VindiSettings
- Read upRead up
- Exclude checks
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. Open
Open
<?php
- Exclude checks
Visibility must be declared on method "__construct" Open
Open
function __construct(VindiSettings $vindi_settings)
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
if ( ! defined( 'ABSPATH' ) ) {
- Exclude checks
Inline control structures are not allowed Open
Open
if(empty(get_transient('vindi_product_message')))
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
exit; // Exit if accessed directly
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
include_once VINDI_SRC . 'views/product-status.php';
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
add_action('admin_notices', array(&$this, 'product_status_notifier'));
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
{
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
Open
if(empty(get_transient('vindi_product_message')))
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
Open
if ( ! defined( 'ABSPATH' ) ) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
private $vindi_settings;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
if(empty(get_transient('vindi_product_message')))
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->vindi_settings = $vindi_settings;
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
if ( ! defined( 'ABSPATH' ) ) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
return;
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
if ( ! defined( 'ABSPATH' ) ) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
function __construct(VindiSettings $vindi_settings)
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public function product_status_notifier()
- Exclude checks