nutgram/nutgram

View on GitHub
src/Support/DeepLink.php

Summary

Maintainability
C
1 day
Test Coverage
A
100%

DeepLink has 44 functions (exceeds 20 allowed). Consider refactoring.
Open

class DeepLink
{
    protected const DEFAULT_BASEURL = 'https://t.me/';
    protected ?string $baseUrl;

Severity: Minor
Found in src/Support/DeepLink.php - About 6 hrs to fix

    File DeepLink.php has 311 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace SergiX44\Nutgram\Support;
    
    /**
    Severity: Minor
    Found in src/Support/DeepLink.php - About 3 hrs to fix

      Method wallpaperFreeformGradientPattern has 7 arguments (exceeds 5 allowed). Consider refactoring.
      Open

              string $slug,
              int $intensity,
              string $hexColor1,
              string $hexColor2,
              string $hexColor3,
      Severity: Major
      Found in src/Support/DeepLink.php - About 45 mins to fix

        Method publicMessage has 6 arguments (exceeds 5 allowed). Consider refactoring.
        Open

                string $username,
                int $messageId,
                ?int $threadId = null,
                bool $single = false,
                ?int $comment = null,
        Severity: Minor
        Found in src/Support/DeepLink.php - About 35 mins to fix

          Method privateMessage has 6 arguments (exceeds 5 allowed). Consider refactoring.
          Open

                  int $chatId,
                  int $messageId,
                  ?int $threadId = null,
                  bool $single = false,
                  ?int $comment = null,
          Severity: Minor
          Found in src/Support/DeepLink.php - About 35 mins to fix

            Method wallpaperGradientPattern has 6 arguments (exceeds 5 allowed). Consider refactoring.
            Open

                    string $slug,
                    int $intensity,
                    string $topColor,
                    string $bottomColor,
                    int $rotation = 0,
            Severity: Minor
            Found in src/Support/DeepLink.php - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status