vindi/vindi-woocommerce

View on GitHub
src/i18n/Languages.php

Summary

Maintainability
A
0 mins
Test Coverage
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 4 and the first side effect is on line 17.
<?php
namespace VindiPaymentGateways;
 
Opening brace of a class must be on the line after the definition
Line indented incorrectly; expected 0 spaces, found 2
class VindiLanguages {
public function __construct()
{
add_action('init', array($this, 'load_plugin_textdomain'));
}
 
/**
* Load the plugin text domain for translation.
*/
Opening brace should be on a new line
public function load_plugin_textdomain() {
Line indented incorrectly; expected at least 8 spaces, found 6
Expected 0 spaces before closing bracket; 1 found
Space after opening parenthesis of function call prohibited
load_plugin_textdomain( 'vindi-payment-gateway', false, plugin_dir_path( __FILE__ ) . '/languages/' );
}
Line indented incorrectly; expected 0 spaces, found 2
}
;