maxcanna/gplaybadge

View on GitHub
src/Service/BadgeGenerator.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status