vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (!$api_key) {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $this->supports             = array(

Line indented incorrectly; expected at least 4 spaces, found 2
Open

  {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $this->products = new ProductController($vindi_settings);
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  private $vindi_settings;

Space after opening parenthesis of function call prohibited
Open

    $this->invalidApiKey = get_option( 'vindi_invalid_api_key', false );

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    wc_get_template(

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      $name,

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      '',

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $logs_url      = '<a href="' . $url . '" target="_blank">' . __('Ver Logs', VINDI) . '</a>';

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      ),

Line indented incorrectly; expected 4 spaces, found 2
Open

  function checkKey()

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    return $this->settings['api_key'];

Line indented incorrectly; expected 8 spaces, found 4
Open

    } else {

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function api_key_field()

Line indented incorrectly; expected at least 4 spaces, found 2
Open

  {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $api_key = $this->get_api_key();

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $this->api = new VindiApi($api_key, $this->logger, $this->get_is_active_sandbox());

Line indented incorrectly; expected 8 spaces, found 4
Open

    }
Severity
Category
Status
Source
Language