idealo/php-rdkafka-ffi

View on GitHub
src/RdKafka/ProducerTopic.php

Summary

Maintainability
A
3 hrs
Test Coverage
A
90%

Method producev has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function producev(
        int $partition,
        int $msgflags,
        ?string $payload = null,
        ?string $key = null,
Severity: Minor
Found in src/RdKafka/ProducerTopic.php - About 1 hr to fix

    Method producev has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            int $partition,
            int $msgflags,
            ?string $payload = null,
            ?string $key = null,
            ?array $headers = null,
    Severity: Major
    Found in src/RdKafka/ProducerTopic.php - About 50 mins to fix

      Method produce has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function produce(int $partition, int $msgflags, ?string $payload = null, ?string $key = null, $opaque = null): void
      Severity: Minor
      Found in src/RdKafka/ProducerTopic.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status