brandon14/brand0n.gg

View on GitHub

Showing 7 of 1,121 total issues

Method registerProviders has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function registerProviders(): void
    {
        $config = $this->app->make('config');
        // Get the list of `'alias' => 'provider'` from the config.
        $providers = $config->get('status.providers');
Severity: Minor
Found in app/Providers/StatusServiceProvider.php - About 1 hr to fix

    Method createThumbnail has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function createThumbnail($import, $export, $width, $height, $background, $border)
        {
            $svg           = file_get_contents($import);
            $svgObj        = simplexml_load_string($svg);
            $viewBox       = explode(' ', $svgObj['viewBox']);
    Severity: Minor
    Found in app/Listeners/GenerateFavicons.php - About 1 hr to fix

      Method getStatus has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getStatus(): array
          {
              try {
                  $request = $this->requestFactory->createRequest('GET', $this->routeToPing);
      
      
      Severity: Minor
      Found in bgg/src/Services/Status/Providers/WebsiteProvider.php - About 1 hr to fix

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

                ClientInterface $httpClient,
                RequestFactoryInterface $requestFactory,
                string $routeToPing,
                int $desiredTime = 200,
                bool $addHeaders = true,
        Severity: Major
        Found in bgg/src/Services/Status/Providers/WebsiteProvider.php - About 50 mins to fix

          Method createThumbnail has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              private function createThumbnail($import, $export, $width, $height, $background, $border)
          Severity: Minor
          Found in app/Listeners/GenerateFavicons.php - About 45 mins to fix

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

                    string $apiKey,
                    bool $isCacheEnabled = true,
                    int $cacheTtl = 30,
                    string $cacheKey = 'apexapi',
                    string $hashAlgo = 'sha512'
            Severity: Minor
            Found in bgg/src/Contracts/Services/ApexApi/ApexApiOptions.php - About 35 mins to fix

              Avoid too many return statements within this method.
              Open

                      return [
                          'random_quote_index' => $randomQuoteIndex,
                      ];
              Severity: Major
              Found in app/ViewModels/RandomQuote.php - About 30 mins to fix
                Severity
                Category
                Status
                Source
                Language