maxcanna/gplaybadge

View on GitHub

Showing 3 of 3 total issues

Method badgeAction has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function badgeAction()
    {
        /** @var Request $request */
        $request = $this->app['request_stack']->getCurrentRequest();
        $utc = new \DateTimeZone('UTC');
Severity: Minor
Found in src/Controller/BadgeController.php - About 1 hr to fix

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

        public function generate($packageId, $lang, $hostname)
        {
            $appDetail = $this->dataFetcher->fetch($packageId, $lang);
    
            /** @var \Intervention\Image\Image $img */
    Severity: Minor
    Found in src/Service/BadgeGenerator.php - About 1 hr to fix

      Method __construct has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function __construct(Application $app)
          {
              $this->app = $app;
              $this->dataFetcher = $this->app['service.fetcher'];
              $this->imageManager = new ImageManager();
      Severity: Minor
      Found in src/Service/BadgeGenerator.php - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language