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.
Open

<?php
Severity: Minor
Found in src/i18n/Languages.php by phpcodesniffer

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

Line indented incorrectly; expected 0 spaces, found 2
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

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

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

Line indented incorrectly; expected 0 spaces, found 2
Open

  }
Severity: Minor
Found in src/i18n/Languages.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Opening brace should be on a new line
Open

    public function load_plugin_textdomain() {
Severity: Minor
Found in src/i18n/Languages.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

There are no issues that match your filters.

Category
Status