src/Service/BadgeGenerator.php
Method generate
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function generate($packageId, $lang, $hostname)
{
$appDetail = $this->dataFetcher->fetch($packageId, $lang);
/** @var \Intervention\Image\Image $img */
Method __construct
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(Application $app)
{
$this->app = $app;
$this->dataFetcher = $this->app['service.fetcher'];
$this->imageManager = new ImageManager();