diff --git a/core/lib/Drupal/Core/Render/Element/Radio.php b/core/lib/Drupal/Core/Render/Element/Radio.php index 8036952..108c14e 100644 --- a/core/lib/Drupal/Core/Render/Element/Radio.php +++ b/core/lib/Drupal/Core/Render/Element/Radio.php @@ -62,8 +62,9 @@ public static function preRenderRadio($element) { Element::setAttributes($element, array('id', 'name', '#return_value' => 'value')); if (isset($element['#return_value']) && $element['#value'] !== FALSE) { - // To avoid auto-casting during '==' we convert int 0 to '0' for both operands. - // It will prevent wrong true-checking for both cases: 0 == 'string' and 'string' == 0. + // To avoid auto-casting during '==' we convert int 0 to '0' for both + // operands. It will prevent wrong true-checking for both cases: 0 == + // 'string' and 'string' == 0. if ($element['#value'] === 0) { $element['#value'] = '0'; } diff --git a/core/modules/system/src/Tests/Form/ElementTest.php b/core/modules/system/src/Tests/Form/ElementTest.php index cf3e16e..249ad5e 100644 --- a/core/modules/system/src/Tests/Form/ElementTest.php +++ b/core/modules/system/src/Tests/Form/ElementTest.php @@ -97,7 +97,7 @@ function testOptions() { * Tests correct checked attribute for radios element. */ function testRadiosChecked() { - // Additionally verify that there is only one radio option checked. + // Verify that there is only one radio option checked. $this->drupalGet('form-test/radios-checked'); $elements = $this->xpath('//input[@name="radios" and @checked]'); $this->assertEqual(count($elements), 1); diff --git a/core/modules/views_ui/src/Tests/DisplayTest.php b/core/modules/views_ui/src/Tests/DisplayTest.php index 9979f2a..0451045 100644 --- a/core/modules/views_ui/src/Tests/DisplayTest.php +++ b/core/modules/views_ui/src/Tests/DisplayTest.php @@ -168,7 +168,8 @@ public function testLinkDisplay() { $this->assertEqual($result[0], t('None'), 'Make sure that the link option summary shows "None" by default.'); $this->drupalGet($link_display_path); - // We are looking to be selected a None option with '' key, that's why there is no key in the ID. + // We are looking for the None option which has a '' key, that's why there + // is no key appended in the ID. $this->assertFieldChecked('edit-link-display-'); // Test the default radio option on the link display form.