therealssj / tfa

TFA 8.x fork
0 stars 0 forks source link

Adherence to Drupal 8 coding standards. #3

Closed paraacha closed 8 years ago

paraacha commented 8 years ago

The Drupal 8 coding standards are missing in a few places in the module. This issue is just a reminder to fix those eventually.

In src/TfaBasePlugin.php,

/**
 * Implements hook_user_login()
 *
 * @param $account
 */

should be replaced with:

/**
 * Implements hook_user_login().
 */

and

/**
 * Implements hook_block_access()
 *
 * Remove access to the core user_login_block so we can replace with the TFA login block.
 *
 * @param \Drupal\block\Entity\Block $block
 * @param $operation
 * @param \Drupal\user\Entity\User $account
 *
 * @return \Drupal\Core\Access\AccessResult
 */

should be replaced with this also taking care of the 80 chars line limit:

/**
 * Implements hook_block_access().
 *
 * Remove access to the core user_login_block so we can replace with the TFA
 * login block.
 */

In tfa.install

nerdstein commented 8 years ago

👍