drupal-check against betterlogin 8.x-1.x-dev

drupal-check -ad modules/contrib/betterlogin                              
 2/2 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ------------------------------------------------------------------------------ 
  Line   src/EventSubscriber/BetterLoginSubscriber.php                                 
 ------ ------------------------------------------------------------------------------ 
  25     \Drupal calls should be avoided in classes, use dependency injection instead  
 ------ ------------------------------------------------------------------------------ 

Replacing \Drupal call with using use dependency injection .

Comments

Hardik_Patel_12 created an issue. See original summary.

hardik_patel_12’s picture

Status: Needs work » Needs review
StatusFileSize
new1.84 KB

Kindly review a patch.

yogeshmpawar’s picture

Status: Needs review » Needs work
+++ b/src/EventSubscriber/BetterLoginSubscriber.php
@@ -13,6 +14,22 @@ use Drupal\Core\Url;
+   *

@Hardik_Patel_12 - Can you please add short description here like - Constructs a new Better Login Subscriber object

hardik_patel_12’s picture

Assigned: Unassigned » hardik_patel_12
hardik_patel_12’s picture

Status: Needs work » Needs review
StatusFileSize
new1.89 KB
new409 bytes

Added short description for construct method in the patch , kindly review the patch.

yogeshmpawar’s picture

yogeshmpawar’s picture

Assigned: yogeshmpawar » Unassigned
Status: Needs review » Fixed

Committed & Pushed to 8.x-1.x branch & will create a new release soon.

Status: Fixed » Closed (fixed)

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

kristen pol’s picture

Issue tags: -D9 readiness

Removing old tag (only use Drupal 9 compatibility).