Showing 3 of 3 total issues
Method badgeAction
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function badgeAction()
{
/** @var Request $request */
$request = $this->app['request_stack']->getCurrentRequest();
$utc = new \DateTimeZone('UTC');
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();