fixed code style
Closes #3374300
Merge request reports
Activity
added 1 commit
- cae4cca2 - fixed t() calls should be avoided in classes and unused variable errors
3 3 description: 'Provides User Points functionality with Commerce.' 4 4 package: Commerce (contrib) 5 5 dependencies: 6 - commerce 6 - drupal:commerce 7 7 configure: commerce_user_points.admin_settings 8 8 9 9 core_version_requirement: ^8.8.0 || ^9.0 10 10 11 11 # Information added by Drupal.org packaging script on 2020-06-30 changed this line in version 5 of the diff
66 * @param \Drupal\Core\Form\FormBuilderInterface $formBuilder 67 * The form builder service. 68 */ 69 public function __construct(EntityTypeManagerInterface $entityTypeManager, AccountInterface $currentUser, RequestStack $requestStack, ReferralLinkService $referralLinkService, FormBuilderInterface $formBuilder) { 70 $this->entityTypeManager = $entityTypeManager; 71 $this->currentUser = $currentUser; 72 $this->requestStack = $requestStack; 73 $this->referralLinkService = $referralLinkService; 74 $this->formBuilder = $formBuilder; 75 } 76 77 /** 78 * {@inheritdoc} 79 */ 80 public static function create(ContainerInterface $container) { 81 // Load the service fromt the container. changed this line in version 5 of the diff
8 use Symfony\Component\HttpFoundation\Request; 9 9 10 10 /** 11 11 * Defines a form that configures referral points settings. 12 12 */ 13 13 class ReferralPointsConfigurationForm extends ConfigFormBase { 14 14 15 /** 16 * The entity type manager. 17 * 18 * @var \Drupal\Core\Entity\EntityTypeManagerInterface 19 */ 20 protected $entityTypeManager; 21 22 /** 23 * Constructor. changed this line in version 5 of the diff
16 /** 17 * The entity type manager. 18 * 19 * @var \Drupal\Core\Entity\EntityTypeManagerInterface 20 */ 21 protected $entityTypeManager; 22 23 /** 24 * The current user. 25 * 26 * @var \Drupal\Core\Session\AccountInterface 27 */ 28 protected $currentUser; 29 30 /** 31 * Constructor. changed this line in version 5 of the diff
8 use Symfony\Component\HttpFoundation\Request; 9 9 10 10 /** 11 11 * Defines a form that configures forms module settings. 12 12 */ 13 13 class UserPointsConfigurationForm extends ConfigFormBase { 14 14 15 /** 16 * The entity type manager. 17 * 18 * @var \Drupal\Core\Entity\EntityTypeManagerInterface 19 */ 20 protected $entityTypeManager; 21 22 /** 23 * Constructor. changed this line in version 5 of the diff
21 /** 22 * The current user service. 23 * 24 * @var \Drupal\Core\Session\AccountInterface 25 */ 26 protected $currentUser; 27 28 /** 29 * The referral service. 30 * 31 * @var \Drupal\commerce_user_points\ReferralLinkService 32 */ 33 protected $referralService; 34 35 /** 36 * Constructor. changed this line in version 5 of the diff
15 18 */ 16 19 class ReferralLinkBlock extends BlockBase { 17 20 21 /** 22 * The current user service. 23 * 24 * @var \Drupal\Core\Session\AccountInterface 25 */ 26 protected $currentUser; 27 28 /** 29 * The referral service. changed this line in version 5 of the diff
32 */ 33 protected $referralService; 34 35 /** 36 * Constructor. 37 */ 38 public function __construct(AccountInterface $currentUser, ReferralLinkService $referralService) { 39 $this->currentUser = $currentUser; 40 $this->referralService = $referralService; 41 } 42 43 /** 44 * {@inheritdoc} 45 */ 46 public static function create(ContainerInterface $container) { 47 // Load the service from the container. changed this line in version 5 of the diff
15 /** 16 * The Database connection. 17 * 18 * @var \Drupal\Core\Database\Connection 19 */ 20 protected $database; 21 22 /** 23 * The date and time service. 24 * 25 * @var \Drupal\Core\Datetime\DrupalDateTime 26 */ 27 protected $datetime; 28 29 /** 30 * Constructor. changed this line in version 5 of the diff
Please register or sign in to reply