diff --git a/core/modules/aggregator/src/Tests/AggregatorTestBase.php b/core/modules/aggregator/src/Tests/AggregatorTestBase.php index e898bac..c459401 100644 --- a/core/modules/aggregator/src/Tests/AggregatorTestBase.php +++ b/core/modules/aggregator/src/Tests/AggregatorTestBase.php @@ -370,5 +370,4 @@ public function enableTestPlugins() { )) ->save(); } - } diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php index 541c15b..665e12f 100644 --- a/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php +++ b/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php @@ -17,7 +17,6 @@ * Visit all lists. * * @group config_translation - * * @see \Drupal\config_translation\Tests\ConfigTranslationViewListUiTest */ class ConfigTranslationListUiTest extends WebTestBase { @@ -50,9 +49,6 @@ class ConfigTranslationListUiTest extends WebTestBase { */ protected $adminUser; - /** - * {@inheritdoc} - */ protected function setUp() { parent::setUp(); @@ -125,7 +121,7 @@ protected function doMenuListTest() { $edit = array( 'id' => $menu_name, 'description' => '', - 'label' => $label, + 'label' => $label, ); // Create the menu by posting the form. $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save')); @@ -193,7 +189,7 @@ public function doCustomContentTypeListTest() { $block_content_type = BlockContentType::create(array( 'id' => Unicode::strtolower($this->randomMachineName(16)), 'label' => $this->randomMachineName(), - 'revision' => FALSE, + 'revision' => FALSE )); $block_content_type->save(); @@ -399,7 +395,7 @@ public function doFieldListTest() { $block_content_type = BlockContentType::create(array( 'id' => 'basic', 'label' => 'Basic', - 'revision' => FALSE, + 'revision' => FALSE )); $block_content_type->save(); $field = FieldConfig::create([ @@ -493,7 +489,8 @@ public function testTranslateOperationInListUi() { $this->doDateFormatListTest(); $this->doFieldListTest(); - // Views is tested in Drupal\config_translation\Tests\ConfigTranslationViewListUiTest. + // Views is tested in Drupal\config_translation\Tests\ConfigTranslationViewListUiTest + // Test the maintenance settings page. $this->doSettingsPageTest('admin/config/development/maintenance'); // Test the site information settings page. diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php index 12b151b..397a95c 100644 --- a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php +++ b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php @@ -70,9 +70,6 @@ class ConfigTranslationUiTest extends WebTestBase { */ protected $localeStorage; - /** - * {@inheritdoc} - */ protected function setUp() { parent::setUp(); $translator_permissions = [ @@ -459,7 +456,7 @@ public function testDateFormatTranslation() { 'medium' => 'Default medium date', 'custom_medium' => 'Custom medium date', ); - foreach ($formats as $id => $label) { + foreach($formats as $id => $label) { $translation_base_url = 'admin/config/regional/date-time/formats/manage/' . $id . '/translate'; $this->drupalGet($translation_base_url); @@ -529,7 +526,7 @@ public function testAccountSettingsConfigurationTranslation() { $this->drupalGet('admin/config/people/accounts/translate/fr/edit'); foreach ($edit as $key => $value) { // Check the translations appear in the right field type as well. - $xpath = '//' . (strpos($key, '[body]') ? 'textarea' : 'input') . '[@name="' . $key . '"]'; + $xpath = '//' . (strpos($key, '[body]') ? 'textarea' : 'input') . '[@name="'. $key . '"]'; $this->assertFieldByXPath($xpath, $value); } // Check that labels for email settings appear. @@ -649,8 +646,7 @@ public function testPluralConfigStringsSourceElements() { ); foreach ($languages as $langcode => $data) { - // Import a .po file to add a new language with a given number of plural - // forms. + // Import a .po file to add a new language with a given number of plural forms $name = tempnam('temporary://', $langcode . '_') . '.po'; file_put_contents($name, $this->getPoFile($data['plurals'])); $this->drupalPostForm('admin/config/regional/translate/import', array( @@ -843,7 +839,7 @@ public function testLocaleDBStorage() { $translation = $this->getTranslation('user.settings', 'anonymous', 'fr'); $this->assertEqual('Anonyme', $translation->getString()); - // Revert custom translations to base translations. + // revert custom translations to base translation. $edit = array( 'translation[config_names][user.settings][anonymous]' => 'Anonymous', ); @@ -860,7 +856,7 @@ public function testLocaleDBStorage() { public function testSingleLanguageUI() { $this->drupalLogin($this->adminUser); - // Delete French language. + // Delete French language $this->drupalPostForm('admin/config/regional/language/delete/fr', array(), t('Delete')); $this->assertRaw(t('The %language (%langcode) language has been removed.', array('%language' => 'French', '%langcode' => 'fr'))); @@ -871,7 +867,7 @@ public function testSingleLanguageUI() { $this->drupalPostForm('admin/config/regional/language', $edit, t('Save configuration')); $this->assertRaw(t('Configuration saved.')); - // Delete English language. + // Delete English language $this->drupalPostForm('admin/config/regional/language/delete/en', array(), t('Delete')); $this->assertRaw(t('The %language (%langcode) language has been removed.', array('%language' => 'English', '%langcode' => 'en'))); @@ -908,7 +904,7 @@ public function testSequenceTranslation() { $expected = array( 'kitten', 'llama', - 'elephant', + 'elephant' ); $actual = $config_factory ->getEditable('config_translation_test.content') diff --git a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php index 9c96750..3242c3a 100644 --- a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +++ b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php @@ -88,9 +88,6 @@ class ConfigNamesMapperTest extends UnitTestCase { */ protected $languageManager; - /** - * {@inheritdoc} - */ protected function setUp() { $this->routeProvider = $this->getMock('Drupal\Core\Routing\RouteProviderInterface'); @@ -443,8 +440,7 @@ public function testGetLangcode() { $this->configNamesMapper->getLangcode(); $this->fail(); } - catch (\RuntimeException $e) { - } + catch (\RuntimeException $e) {} } /** diff --git a/core/modules/system/src/Form/RssFeedsForm.php b/core/modules/system/src/Form/RssFeedsForm.php index 34c9b99..43cd617 100644 --- a/core/modules/system/src/Form/RssFeedsForm.php +++ b/core/modules/system/src/Form/RssFeedsForm.php @@ -37,7 +37,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { 'teaser' => t('Titles plus teaser'), 'fulltext' => t('Full text'), ), - '#description' => t('Global setting for the default display of content items in each feed.'), + '#description' => t('Global setting for the default display of content items in each feed.') ); return parent::buildForm($form, $form_state);