includes/ApiMediaDetection.php
Method requestThumbnail
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function requestThumbnail( File $file ): MWHttpRequest {
// we want a thumbnail that has a minimum size in both dimensions,
// but thumbs are only generated based on width, so we'll calculate
// the required width to make sure our height also matches the minimum
$aspectRatio = $file->getWidth() / $file->getHeight();
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $main,
string $action,
IConnectionProvider $dbProvider,
RepoGroup $repoGroup,
HttpRequestFactory $httpRequestFactory