bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Avoid too many return statements within this method.
Open

            return str_replace($item, "", $carry);
Severity: Major
Found in firewall/src/dashboard.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

        return $hash;
    Severity: Major
    Found in firewall/src/server.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return $block;
      Severity: Major
      Found in firewall/src/bitfire.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                if ($block->code !== $exception->code) { return $block; }
        Severity: Major
        Found in firewall/src/bitfire_pure.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

              return $info;
          Severity: Major
          Found in firewall/src/util.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                return $api_effect->exit(true);
            Severity: Major
            Found in firewall/src/api.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                  return false;
              Severity: Major
              Found in error_handler.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return (bool)\apcu_store("_bitfire:$key_name", $storage, $seconds);
                Severity: Major
                Found in firewall/src/storage.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                      return $effect;
                  Severity: Major
                  Found in firewall/src/api.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                        return $effect->api(true, "updated");
                    Severity: Major
                    Found in firewall/src/api.php - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              if (!eq(a[length], b[length], aStack, bStack)) return false;
                      Severity: Major
                      Found in public/underscore.js - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                            return "unknown";
                        Severity: Major
                        Found in wordpress-plugin/includes.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                              return true;
                          Severity: Major
                          Found in firewall/src/tar.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return $effect->api(false, "error updating ini status: " . $effect->read_status());
                            Severity: Major
                            Found in firewall/src/api.php - About 30 mins to fix

                              Argument 1 (var) is \Generator|\Iterator|\Traversable|iterable but \count() takes \Countable|array
                              Open

                                                  $result_count = count($result);
                              Severity: Minor
                              Found in bin/bitfire-install.php by phan

                              Possibly zero references to use statement for classlike/namespace Exception (\Exception)
                              Open

                              use Exception;
                              Severity: Minor
                              Found in custom-plugin/bitfire-plugin.php by phan

                              Call to undeclared function \login_header()
                              Open

                                  echo \login_header("MFA Code Required", "<p class='message'>$msg</p>");
                              Severity: Critical
                              Found in custom-plugin/bitfire-plugin.php by phan

                              Call to undeclared function \esc_attr()
                              Open

                                      esc_attr($_POST["password"]),
                              Severity: Critical
                              Found in custom-plugin/bitfire-plugin.php by phan

                              Parameter $db has undeclared type \DB\DB (Did you mean class \ThreadFinDB\DB)
                              Open

                              function validate_hash(array $hash, DB\DB $db) : array {
                              Severity: Minor
                              Found in firewall/hash_compare.php by phan

                              Call to undeclared function \TF\contains() (Did you mean \ThreadFin\contains())
                              Open

                              else if (\TF\contains($encoding, "deflate") && function_exists("gzencode")) {
                              Severity: Critical
                              Found in firewall/hash_compare.php by phan
                              Severity
                              Category
                              Status
                              Source
                              Language