vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Expected 0 spaces before closing bracket; 1 found
Open

if ( ! defined( 'ABSPATH' ) ) {

Visibility must be declared on method "__construct"
Open

  function __construct(VindiSettings $vindi_settings)

Expected 0 spaces before closing bracket; 1 found
Open

if ( ! defined( 'ABSPATH' ) ) {

Visibility must be declared on method "untrash"
Open

  function untrash($post_id)

Visibility must be declared on method "init_form_fields"
Open

  function init_form_fields()

Visibility must be declared on method "update"
Open

  function update($post_id)

Visibility must be declared on method "includes"
Open

  function includes()
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Visibility must be declared on method "trash"
Open

  function trash($post_id)

Blank line found at start of control structure
Open

        if(empty($vindi_product_id)) {

Visibility must be declared on method "__construct"
Open

  function __construct()

Visibility must be declared on method "trash"
Open

  function trash($post_id)

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

class CouponsMetaBox {

Visibility must be declared on method "untrash"
Open

  function untrash($post_id)

Visibility must be declared on method "__construct"
Open

  function __construct(VindiSettings $vindi_settings)
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Visibility must be declared on method "checkKey"
Open

  function checkKey()

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

  class VindiLanguages {
Severity: Minor
Found in src/i18n/Languages.php by phpcodesniffer

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

  }

Visibility must be declared on method "__construct"
Open

  function __construct(VindiSettings $vindi_settings)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Blank line found at start of control structure
Open

    if (false === ($payment_methods = get_transient('vindi_payment_methods'))) {
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Visibility must be declared on method "__construct"
Open

  function __construct()
Severity
Category
Status
Source
Language