FILE: C:\xampp\htdocs\drupal-9\web\modules\contrib\eu-cookie-compliance\src\EventSubscriber\EuCookieComplianceConfigEventsSubscriber.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------
50 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
59 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
64 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal-9\web\modules\contrib\eu-cookie-compliance\src\Form\EuCookieComplianceConfigForm.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
736 | WARNING | Line exceeds 80 characters; contains 94 characters
-----------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal-9\web\modules\contrib\eu-cookie-compliance\src\Plugin\Block\CookieSettingsButtonBlock.php
----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
31 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal-9\web\modules\contrib\eu-cookie-compliance\src\Plugin\migrate\source\EuCookieCategory.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
51 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.
-------------------------------------------------------------------------------------------------------------------------------------------
Time: 2.87 secs; Memory: 20MB
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | eu-cookie-compliance-3302331-8.patch | 2.07 KB | anoopsingh92 |
Issue fork eu_cookie_compliance-3302331
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anoopsingh92Please review this patch.
Comment #3
svenryen commentedThanks, I'll take a look later.
Comment #4
svenryen commentedThis patch needs work. I appreciate your initiative, but it would be nice if the code was tested before the patch was uploaded.
Method 'service' not found in EuCookieComplianceConfigEventsSubscriber.
Same here.
And messenger is also not a function in the class.
[] for splitting arrays isn't supported in PHP 7.0.
Method 'config' not found in CookieSettingsButtonBlock.
Comment #5
anoopsingh92Comment #6
svenryen commented@anoopsingh92 will you be fixing your patch, or should I take care of it?
Comment #7
anoopsingh92Hi @svenryen, I apologize for waiting. If are doing then You can go ahead. Actually, i am not giving time for contribution from last two days.
Comment #8
anoopsingh92I have re-rolled the patch. Please review it, But the dependency injection is still pending. In this patch, I have fixed only these issues.
Thanks
Comment #9
anoopsingh92I am not sure whether this dependency injection will work or not, That's why I have not added to this patch.
Comment #10
svenryen commentedThanks for your updated patch, I'll take a look.
When you're not sure if your patch will work or not, it's nice if you can set up a test site with this module installed, and confirm that your changes don't crash the code. Please test your patches locally before adding them to the issue queue. We risk introducing bugs in the code when you're not testing locally.
Comment #12
svenryen commentedComment #13
anoopsingh92Yes, Sure @svenryen. Thanks