kawax/laravel-nostr

View on GitHub

Showing 4 of 4 total issues

SocialClient has 22 functions (exceeds 20 allowed). Consider refactoring.
Open

class SocialClient
{
    use Macroable, Conditionable;

    protected string $relay;
Severity: Minor
Found in src/Social/SocialClient.php - About 2 hrs to fix

    File SocialClient.php has 263 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    declare(strict_types=1);
    
    namespace Revolution\Nostr\Social;
    Severity: Minor
    Found in src/Social/SocialClient.php - About 2 hrs to fix

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

              public string $name = '',
              public string $display_name = '',
              public string $about = '',
              public string $picture = '',
              public string $banner = '',
      Severity: Major
      Found in src/Profile.php - About 1 hr to fix

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

            public function notes(array $authors, array $kinds = [Kind::Text, Kind::Article], ?int $since = null, ?int $until = null, ?int $limit = null): array
        Severity: Minor
        Found in src/Social/SocialClient.php - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language