Issue #3063323 by idebr, klausi, truls1502: Update drupal/coder to 8.3.6

merge-requests/55/head
Lee Rowlands 2019-08-29 13:02:37 +10:00
parent f0e313a422
commit 0192048dca
No known key found for this signature in database
GPG Key ID: 2B829A3DF9204DC4
7 changed files with 31 additions and 29 deletions

10
composer.lock generated
View File

@ -3821,17 +3821,17 @@
}, },
{ {
"name": "drupal/coder", "name": "drupal/coder",
"version": "8.3.4", "version": "8.3.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupal.org/project/coder.git", "url": "https://git.drupalcode.org/project/coder.git",
"reference": "0a274321f4930f186d9f246783f0b4d743501cf8" "reference": "4337ddf58d28dbdee4e1367bf71ee13393ab9820"
}, },
"require": { "require": {
"ext-mbstring": "*", "ext-mbstring": "*",
"php": ">=5.5.9", "php": ">=5.5.9",
"squizlabs/php_codesniffer": "^3.4.1", "squizlabs/php_codesniffer": "^3.4.1",
"symfony/yaml": ">=2.0.0" "symfony/yaml": ">=2.0.5"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": ">=3.7 <6" "phpunit/phpunit": ">=3.7 <6"
@ -3854,7 +3854,7 @@
"phpcs", "phpcs",
"standards" "standards"
], ],
"time": "2019-05-24T11:44:05+00:00" "time": "2019-08-09T09:27:26+00:00"
}, },
{ {
"name": "fabpot/goutte", "name": "fabpot/goutte",

View File

@ -136,6 +136,19 @@ interface FormBuilderInterface {
* There is no return value, but you can check to see if there are errors * There is no return value, but you can check to see if there are errors
* by calling $form_state->getErrors(). * by calling $form_state->getErrors().
* *
* For example:
* @code
* // register a new user
* $form_state = new FormState();
* $values['name'] = 'robo-user';
* $values['mail'] = 'robouser@example.com';
* $values['pass']['pass1'] = 'password';
* $values['pass']['pass2'] = 'password';
* $values['op'] = t('Create new account');
* $form_state->setValues($values);
* \Drupal::formBuilder()->submitForm('user_register_form', $form_state);
* @endcode
*
* @param \Drupal\Core\Form\FormInterface|string $form_arg * @param \Drupal\Core\Form\FormInterface|string $form_arg
* The value must be one of the following: * The value must be one of the following:
* - The name of a class that implements \Drupal\Core\Form\FormInterface. * - The name of a class that implements \Drupal\Core\Form\FormInterface.
@ -167,18 +180,6 @@ interface FormBuilderInterface {
* $form_state->addBuildInfo('args', [&$object]); * $form_state->addBuildInfo('args', [&$object]);
* \Drupal::formBuilder()->submitForm('mymodule_form', $form_state); * \Drupal::formBuilder()->submitForm('mymodule_form', $form_state);
* @endcode * @endcode
* For example:
* @code
* // register a new user
* $form_state = new FormState();
* $values['name'] = 'robo-user';
* $values['mail'] = 'robouser@example.com';
* $values['pass']['pass1'] = 'password';
* $values['pass']['pass2'] = 'password';
* $values['op'] = t('Create new account');
* $form_state->setValues($values);
* \Drupal::formBuilder()->submitForm('user_register_form', $form_state);
* @endcode
*/ */
public function submitForm($form_arg, FormStateInterface &$form_state); public function submitForm($form_arg, FormStateInterface &$form_state);

View File

@ -19,9 +19,6 @@ abstract class TourTestBase extends WebTestBase {
* Assert function to determine if tips rendered to the page * Assert function to determine if tips rendered to the page
* have a corresponding page element. * have a corresponding page element.
* *
* @param array $tips
* A list of tips which provide either a "data-id" or "data-class".
*
* @code * @code
* // Basic example. * // Basic example.
* $this->assertTourTips(); * $this->assertTourTips();
@ -34,6 +31,9 @@ abstract class TourTestBase extends WebTestBase {
* $tips[] = array('data-class' => 'baz'); * $tips[] = array('data-class' => 'baz');
* $this->assertTourTips($tips); * $this->assertTourTips($tips);
* @endcode * @endcode
*
* @param array $tips
* A list of tips which provide either a "data-id" or "data-class".
*/ */
public function assertTourTips($tips = []) { public function assertTourTips($tips = []) {
// Get the rendered tips and their data-id and data-class attributes. // Get the rendered tips and their data-id and data-class attributes.

View File

@ -14,9 +14,6 @@ abstract class TourTestBase extends BrowserTestBase {
* Assert function to determine if tips rendered to the page * Assert function to determine if tips rendered to the page
* have a corresponding page element. * have a corresponding page element.
* *
* @param array $tips
* A list of tips which provide either a "data-id" or "data-class".
*
* @code * @code
* // Basic example. * // Basic example.
* $this->assertTourTips(); * $this->assertTourTips();
@ -29,6 +26,9 @@ abstract class TourTestBase extends BrowserTestBase {
* $tips[] = array('data-class' => 'baz'); * $tips[] = array('data-class' => 'baz');
* $this->assertTourTips($tips); * $this->assertTourTips($tips);
* @endcode * @endcode
*
* @param array $tips
* A list of tips which provide either a "data-id" or "data-class".
*/ */
public function assertTourTips($tips = []) { public function assertTourTips($tips = []) {
// Get the rendered tips and their data-id and data-class attributes. // Get the rendered tips and their data-id and data-class attributes.

View File

@ -80,6 +80,7 @@
<rule ref="Drupal.Commenting.VariableComment"> <rule ref="Drupal.Commenting.VariableComment">
<!-- Sniff for: DuplicateVar, EmptyVar, InlineVariableName --> <!-- Sniff for: DuplicateVar, EmptyVar, InlineVariableName -->
<exclude name="Drupal.Commenting.VariableComment.IncorrectVarType"/> <exclude name="Drupal.Commenting.VariableComment.IncorrectVarType"/>
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
<exclude name="Drupal.Commenting.VariableComment.MissingVar"/> <exclude name="Drupal.Commenting.VariableComment.MissingVar"/>
<exclude name="Drupal.Commenting.VariableComment.VarOrder"/> <exclude name="Drupal.Commenting.VariableComment.VarOrder"/>
<exclude name="Drupal.Commenting.VariableComment.WrongStyle"/> <exclude name="Drupal.Commenting.VariableComment.WrongStyle"/>