FILE: C:\xampp\htdocs\test\web\modules\custom\eu_cookie_compliance_matomo\src\Form\EuCookieComplianceMatomoForm.php
-------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
118 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------

Comments

Harsh panchal created an issue. See original summary.

Harsh panchal’s picture

Category: Task » Bug report
Status: Active » Needs review
StatusFileSize
new669 bytes

I have fixed this issue and providing a patch.

  • marco.aresu committed fc553e4 on 1.0.x
    Issue #3292175 by Harsh panchal: Use null coalesce operator instead of...
marco.aresu’s picture

Thanks Harsh panchal.
I commited your patch to dev branch.

I editted your patch as

$categories[$key] = isset($cookie_category['label']) ? $cookie_category['label'] : NULL;
marco.aresu’s picture

Assigned: Harsh panchal » marco.aresu
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.