mineur/twitter-stream-api

View on GitHub

Showing 5 of 5 total issues

User has 23 functions (exceeds 20 allowed). Consider refactoring.
Open

class User
{
/** @var int */
private $id;
Severity: Minor
Found in src/Model/User.php - About 2 hrs to fix

    Method __construct has 20 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    int $id,
    string $name,
    ? string $screenName,
    ? string $location,
    ? string $url,
    Severity: Major
    Found in src/Model/User.php - About 2 hrs to fix

      Method __construct has 14 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      int $id,
      string $text,
      string $lang,
      string $createdAt,
      string $timestampMs,
      Severity: Major
      Found in src/Model/Tweet.php - About 1 hr to fix

        Method __construct has 12 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        int $id,
        string $text,
        string $lang,
        string $createdAt,
        ? array $geo,
        Severity: Major
        Found in src/Model/RetweetedStatus.php - About 1 hr to fix

          Function readStreamLine has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

          private function readStreamLine(
          Stream $stream,
          int $maxLength = null
          ) : string
          {
          Severity: Minor
          Found in src/Http/GuzzleStreamClient.php - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language