vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

The property $is_active is not named in camelCase.
Open

class VindiLogger
{
  /**
   * identifier to WC_Logger
   * @var string
Severity: Minor
Found in src/services/Logger.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $last_error is not named in camelCase.
Open

class VindiApi
{
  /**
   * @var string
   */
Severity: Minor
Found in src/services/Api.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $vindi_settings is not named in camelCase.
Open

class VindiProductStatus
{

  /**
   * @var VindiSettings
Severity: Minor
Found in src/includes/admin/ProductStatus.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $current_plan is not named in camelCase.
Open

class VindiRoutes
{

  /**
   * @var VindiSettings
Severity: Minor
Found in src/routes/RoutesApi.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

Avoid variables with short names like $i. Configured minimum length is 3.
Open

    $i = 0;
Severity: Minor
Found in src/services/VindiHelpers.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

The property $accept_bank_slip is not named in camelCase.
Open

class VindiApi
{
  /**
   * @var string
   */
Severity: Minor
Found in src/services/Api.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $vindi_settings is not named in camelCase.
Open

class VindiWebhooks
{
  /**
   * @var VindiSettings
   */
Severity: Minor
Found in src/services/Webhooks.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $enable_interest_rate is not named in camelCase.
Open

class VindiCreditGateway extends VindiPaymentGateway
{
    /**
     * @var VindiSettings
     */

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $smallest_installment is not named in camelCase.
Open

class VindiCreditGateway extends VindiPaymentGateway
{
    /**
     * @var VindiSettings
     */

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $vindi_settings is not named in camelCase.
Open

class VindiRoutes
{

  /**
   * @var VindiSettings
Severity: Minor
Found in src/routes/RoutesApi.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $errors_list is not named in camelCase.
Open

class VindiApi
{
  /**
   * @var string
   */
Severity: Minor
Found in src/services/Api.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

Avoid variables with short names like $id. Configured minimum length is 3.
Open

  private function find_order_by_id($id)
Severity: Minor
Found in src/services/Webhooks.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

The property $vindi_settings is not named in camelCase.
Open

class VindiPaymentProcessor
{
    /**
     * Order type is invalid.
     */
Severity: Minor
Found in src/utils/PaymentProcessor.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $vindi_settings is not named in camelCase.
Open

abstract class VindiPaymentGateway extends WC_Payment_Gateway_CC
{
  /**
   * @var bool
   */
Severity: Minor
Found in src/utils/PaymentGateway.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $active_plugins is not named in camelCase.
Open

class VindiDependencies
{
    /**
    * @var array
    */
Severity: Minor
Found in src/validators/Dependencies.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $_instance is not named in camelCase.
Open

abstract class AbstractInstance
{

    protected static $_instance = null;

Severity: Minor
Found in src/utils/AbstractInstance.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

Avoid variables with short names like $id. Configured minimum length is 3.
Open

  private function find_bill_by_charge_id($id)
Severity: Minor
Found in src/services/Webhooks.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

The property $single_freight is not named in camelCase.
Open

class VindiPaymentProcessor
{
    /**
     * Order type is invalid.
     */
Severity: Minor
Found in src/utils/PaymentProcessor.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

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 13 and the first side effect is on line 7.
Open

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

The property $vindi_settings is not named in camelCase.
Open

class VindiSubscriptionStatusHandler
{
    /**
     * @var VindiSettings
     */

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

Severity
Category
Status
Source
Language