Closed paraacha closed 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.
/** * 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. */
👍
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,
In src/TfaLoginPluginManager.php,
In src/TfaSendPluginManager.php,
In src/TfaSetup/TfaTrustedBrowserSetup.php,
In src/TfaLogin/TfaTrustedBrowser.php,
In src/TfaValidation/TfaHotp.php,
In src/TfaValidation/TfaTotp.php,
In tfa.module,
should be replaced with:
and
should be replaced with this also taking care of the 80 chars line limit:
In tfa.install
In src/Form/BasicOverview.php
In _servicestfa/src/Plugin/ServiceDefinition/GenericValidation.php