Skip to content

Do not serve WebP images that are larger than the original

Codacy Production / Codacy Static Code Analysis required action Aug 29, 2023 in 0s

4 new issues (1 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 4
           

See the complete overview on Codacy

Annotations

Check notice on line 439 in inc/Addon/WebP/Subscriber.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

inc/Addon/WebP/Subscriber.php#L439

Assignments must be the first block of code on a line

Check notice on line 439 in inc/Addon/WebP/Subscriber.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

inc/Addon/WebP/Subscriber.php#L439

Usage of ELSE IF is discouraged; use ELSEIF instead

Check notice on line 439 in inc/Addon/WebP/Subscriber.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

inc/Addon/WebP/Subscriber.php#L439

Variable assignment found within a condition. Did you mean to do a comparison?

Check notice on line 443 in inc/Addon/WebP/Subscriber.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

inc/Addon/WebP/Subscriber.php#L443

Inline comments must end in full-stops, exclamation marks, or question marks