Commit 2799eff5 authored by LKS90's avatar LKS90

Did some Code Sniffer fixes

parent 463d469e
......@@ -23,8 +23,8 @@ class CaptchaCachedSettingsSubscriber implements EventSubscriberInterface {
* The Event to process.
*/
public function onSave(ConfigCrudEvent $event) {
// Changing the Captcha settings means that any cached page might result in
// different settings for captcha so the cached definitions need to be cleared.
// Changing the Captcha settings means that any page might result in other
// settings for captcha so the cached definitions need to be cleared.
if ($event->getConfig()->getName() === 'captcha.settings') {
\Drupal::service('element_info')->clearCachedDefinitions();
}
......
......@@ -19,7 +19,7 @@ class CaptchaExamplesForm extends FormBase {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'captcha_examples';
}
......
......@@ -44,4 +44,5 @@ class CaptchaPointDeleteForm extends EntityConfirmFormBase {
drupal_set_message($this->t('Captcha point %label has been deleted.', array('%label' => $this->entity->getOriginalId())));
$form_state->setRedirectUrl($this->getCancelUrl());
}
}
......@@ -13,7 +13,8 @@ use Drupal\captcha\CaptchaPointInterface;
use Drupal\Core\Form\FormStateInterface;
/**
* Class CaptchaPointForm
* Class CaptchaPointForm.
*
* @package Drupal\captcha\Form
*/
class CaptchaPointForm extends EntityForm {
......
......@@ -21,6 +21,7 @@ class CaptchaSettingsForm extends ConfigFormBase {
/**
* The cache backend.
*
* @var \Drupal\Core\Cache\CacheBackendInterface
*/
protected $cacheBackend;
......@@ -50,7 +51,7 @@ class CaptchaSettingsForm extends ConfigFormBase {
/**
* Implements \Drupal\Core\Form\FormInterface::getFormID().
*/
public function getFormID() {
public function getFormId() {
return 'captcha_settings';
}
......
......@@ -187,4 +187,5 @@ class CaptchaSessionReuseAttackTestCase extends CaptchaBaseWebTestCase {
$this->assertCaptchaResponseAccepted();
$this->assertText($comment_subject);
}
}
......@@ -189,5 +189,5 @@ class CaptchaTestCase extends CaptchaBaseWebTestCase {
$this->drupalGet('');
$this->assertCaptchaPresence(TRUE);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment