vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function get_template($name, $args = array())

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

  {

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

    $nfe_know_more = '<a href="http://atendimento.vindi.com.br/hc/pt-br/articles/204450944-Notas-fiscais" target="_blank">' . __('Saiba mais', VINDI) . '</a>';

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

    );

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

    $interval_type = $product->get_meta('_subscription_period');

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

    $trigger_day = VindiConversions::convertTriggerToDay(

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

        'name' => VINDI_PREFIX_PRODUCT . $data['name'],

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

    );

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

        'interval' => $plan_interval['interval'],

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

      'plan' => $updatedPlan,

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Space after opening parenthesis of function call prohibited
Open

            update_post_meta( $post_id, 'vindi_product_id', $createdProduct['id'] );

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

        );

Expected 1 space after IF keyword; 0 found
Open

        if($updatedProduct) {

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

      load_plugin_textdomain( 'vindi-payment-gateway', false, plugin_dir_path( __FILE__ ) . '/languages/' );
Severity: Minor
Found in src/i18n/Languages.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

if ( ! defined( 'ABSPATH' ) ) {

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

  {

Line indented incorrectly; expected 4 spaces, found 2
Open

  public $woocommerce;

Line indented incorrectly; expected 4 spaces, found 2
Open

  public $routes;

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

    $this->token = sanitize_file_name(wp_hash(VINDI));
Severity
Category
Status
Source
Language