efipay/sdk-php-apis-efi

View on GitHub

Showing 4 of 9 total issues

File Pix.php has 273 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
 
return [
"URL" => [
"production" => "https://pix.api.efipay.com.br",
Severity: Minor
Found in src/Efi/Endpoints/Pix.php - About 2 hrs to fix

    File Charges.php has 253 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
     
    return [
    "URL" => [
    "production" => "https://cobrancas.api.efipay.com.br",
    Severity: Minor
    Found in src/Efi/Endpoints/Charges.php - About 2 hrs to fix

      Method options has 37 lines of code (exceeds 30 allowed). Consider refactoring.
      Open

      public static function options(array $options): array
      {
      $getBoolean = function ($key, $default = false) use ($options) {
      return isset($options[$key]) ? filter_var($options[$key], FILTER_VALIDATE_BOOLEAN) : $default;
      };
      Severity: Minor
      Found in src/Efi/Config.php - About 1 hr to fix

        Avoid too many return statements within this method.
        Open

        return $conf;
        Severity: Major
        Found in src/Efi/Config.php - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language