summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-05-11 09:46:46 (GMT)
committerAlex Pott2018-05-11 09:46:46 (GMT)
commitb187a126def37168e321a8022db00da074278d91 (patch)
tree7d1f911a3ade3735287c4fc62023a5c23242f887
parentbe6d515cad09889002e5d55020b6bdce61c2c804 (diff)
Issue #2937888 by dhruveshdtripathi, idebr, RoSk0, mohit1604, mfernea, borisson_: Fix 'Drupal.Commenting.DocComment.LongNotCapital' coding standard
-rw-r--r--core/core.api.php2
-rw-r--r--core/includes/common.inc4
-rw-r--r--core/lib/Drupal/Component/Datetime/DateTimePlus.php2
-rw-r--r--core/lib/Drupal/Component/Utility/Html.php7
-rw-r--r--core/lib/Drupal/Component/Utility/UrlHelper.php2
-rw-r--r--core/lib/Drupal/Core/Access/AccessResult.php6
-rw-r--r--core/lib/Drupal/Core/Asset/LibraryDiscovery.php2
-rw-r--r--core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php4
-rw-r--r--core/lib/Drupal/Core/Extension/module.api.php2
-rw-r--r--core/lib/Drupal/Core/Form/FormState.php6
-rw-r--r--core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php4
-rw-r--r--core/lib/Drupal/Core/Routing/NullGenerator.php4
-rw-r--r--core/lib/Drupal/Core/Update/UpdateKernel.php2
-rw-r--r--core/modules/field/tests/src/Kernel/TranslationTest.php2
-rw-r--r--core/modules/filter/tests/src/Kernel/FilterAPITest.php6
-rw-r--r--core/modules/image/src/Tests/ImageFieldTestBase.php5
-rw-r--r--core/modules/image/tests/src/Functional/ImageDimensionsTest.php6
-rw-r--r--core/modules/image/tests/src/Functional/ImageFieldTestBase.php5
-rw-r--r--core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php4
-rw-r--r--core/modules/search/tests/src/Functional/SearchTokenizerTest.php6
-rw-r--r--core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php2
-rw-r--r--core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module4
-rw-r--r--core/phpcs.xml.dist3
-rw-r--r--core/tests/Drupal/KernelTests/AssertContentTrait.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Field/BaseFieldDefinitionTestBase.php4
-rw-r--r--core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php2
28 files changed, 54 insertions, 52 deletions
diff --git a/core/core.api.php b/core/core.api.php
index 65a73d2..6f539cc 100644
--- a/core/core.api.php
+++ b/core/core.api.php
@@ -2021,7 +2021,7 @@ function hook_queue_info_alter(&$queues) {
/**
* Alter an email message created with MailManagerInterface->mail().
*
- * hook_mail_alter() allows modification of email messages created and sent
+ * Hook hook_mail_alter() allows modification of email messages created and sent
* with MailManagerInterface->mail(). Usage examples include adding and/or
* changing message text, message fields, and message headers.
*
diff --git a/core/includes/common.inc b/core/includes/common.inc
index 58ede55..49cf6e1 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -408,8 +408,8 @@ function drupal_set_time_limit($time_limit) {
/**
* Returns the base URL path (i.e., directory) of the Drupal installation.
*
- * base_path() adds a "/" to the beginning and end of the returned path if the
- * path is not empty. At the very least, this will return "/".
+ * Function base_path() adds a "/" to the beginning and end of the returned path
+ * if the path is not empty. At the very least, this will return "/".
*
* Examples:
* - http://example.com returns "/" because the path is empty.
diff --git a/core/lib/Drupal/Component/Datetime/DateTimePlus.php b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
index cb23cba..6c4a3b1 100644
--- a/core/lib/Drupal/Component/Datetime/DateTimePlus.php
+++ b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
@@ -46,7 +46,7 @@ class DateTimePlus {
/**
* A RFC7231 Compliant date.
*
- * http://tools.ietf.org/html/rfc7231#section-7.1.1.1
+ * @see http://tools.ietf.org/html/rfc7231#section-7.1.1.1
*
* Example: Sun, 06 Nov 1994 08:49:37 GMT
*/
diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php
index 6c162ed..b3893d6 100644
--- a/core/lib/Drupal/Component/Utility/Html.php
+++ b/core/lib/Drupal/Component/Utility/Html.php
@@ -79,9 +79,10 @@ class Html {
/**
* Prepares a string for use as a CSS identifier (element, class, or ID name).
*
- * http://www.w3.org/TR/CSS21/syndata.html#characters shows the syntax for
- * valid CSS identifiers (including element names, classes, and IDs in
- * selectors.)
+ * Link below shows the syntax for valid CSS identifiers (including element
+ * names, classes, and IDs in selectors).
+ *
+ * @see http://www.w3.org/TR/CSS21/syndata.html#characters
*
* @param string $identifier
* The identifier to clean.
diff --git a/core/lib/Drupal/Component/Utility/UrlHelper.php b/core/lib/Drupal/Component/Utility/UrlHelper.php
index 3728035..1d133c9 100644
--- a/core/lib/Drupal/Component/Utility/UrlHelper.php
+++ b/core/lib/Drupal/Component/Utility/UrlHelper.php
@@ -19,7 +19,7 @@ class UrlHelper {
/**
* Parses an array into a valid, rawurlencoded query string.
*
- * rawurlencode() is RFC3986 compliant, and as a consequence RFC3987
+ * Function rawurlencode() is RFC3986 compliant, and as a consequence RFC3987
* compliant. The latter defines the required format of "URLs" in HTML5.
* urlencode() is almost the same as rawurlencode(), except that it encodes
* spaces as "+" instead of "%20". This makes its result non compliant to
diff --git a/core/lib/Drupal/Core/Access/AccessResult.php b/core/lib/Drupal/Core/Access/AccessResult.php
index b0590d0..3abbf33 100644
--- a/core/lib/Drupal/Core/Access/AccessResult.php
+++ b/core/lib/Drupal/Core/Access/AccessResult.php
@@ -426,9 +426,9 @@ abstract class AccessResult implements AccessResultInterface, RefinableCacheable
/**
* Inherits the cacheability of the other access result, if any.
*
- * inheritCacheability() differs from addCacheableDependency() in how it
- * handles max-age, because it is designed to inherit the cacheability of the
- * second operand in the andIf() and orIf() operations. There, the situation
+ * This method differs from addCacheableDependency() in how it handles
+ * max-age, because it is designed to inherit the cacheability of the second
+ * operand in the andIf() and orIf() operations. There, the situation
* "allowed, max-age=0 OR allowed, max-age=1000" needs to yield max-age 1000
* as the end result.
*
diff --git a/core/lib/Drupal/Core/Asset/LibraryDiscovery.php b/core/lib/Drupal/Core/Asset/LibraryDiscovery.php
index a49ea97..39c3e2b 100644
--- a/core/lib/Drupal/Core/Asset/LibraryDiscovery.php
+++ b/core/lib/Drupal/Core/Asset/LibraryDiscovery.php
@@ -19,7 +19,7 @@ class LibraryDiscovery implements LibraryDiscoveryInterface {
/**
* The final library definitions, statically cached.
*
- * hook_library_info_alter() and hook_js_settings_alter() allows modules
+ * Hooks hook_library_info_alter() and hook_js_settings_alter() allow modules
* and themes to dynamically alter a library definition (once per request).
*
* @var array
diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php
index 73ee17b..0f2bdb0 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php
@@ -9,8 +9,8 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* Adds the twig_extension_hash parameter to the container.
*
- * twig_extension_hash is a hash of all extension mtimes for Twig template
- * invalidation.
+ * Parameter twig_extension_hash is a hash of all extension mtimes for Twig
+ * template invalidation.
*/
class TwigExtensionPass implements CompilerPassInterface {
diff --git a/core/lib/Drupal/Core/Extension/module.api.php b/core/lib/Drupal/Core/Extension/module.api.php
index 32b7d7f..76c49b5 100644
--- a/core/lib/Drupal/Core/Extension/module.api.php
+++ b/core/lib/Drupal/Core/Extension/module.api.php
@@ -479,7 +479,7 @@ function hook_install_tasks_alter(&$tasks, $install_state) {
/**
* Perform a single update between minor versions.
*
- * hook_update_N() can only be used to update between minor versions of a
+ * Hook hook_update_N() can only be used to update between minor versions of a
* module. To upgrade between major versions of Drupal (for example, between
* Drupal 7 and 8), use the @link migrate Migrate API @endlink instead.
*
diff --git a/core/lib/Drupal/Core/Form/FormState.php b/core/lib/Drupal/Core/Form/FormState.php
index 5585a76..595079f 100644
--- a/core/lib/Drupal/Core/Form/FormState.php
+++ b/core/lib/Drupal/Core/Form/FormState.php
@@ -609,13 +609,13 @@ class FormState implements FormStateInterface {
/**
* Checks whether the request method is a "safe" HTTP method.
*
- * http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1 defines
- * GET and HEAD as "safe" methods, meaning they SHOULD NOT have side-effects,
- * such as persisting $form_state changes.
+ * Link below defines GET and HEAD as "safe" methods, meaning they SHOULD NOT
+ * have side-effects, such as persisting $form_state changes.
*
* @return bool
*
* @see \Symfony\Component\HttpFoundation\Request::isMethodSafe()
+ * @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1
*/
protected function isRequestMethodSafe() {
return in_array($this->requestMethod, ['GET', 'HEAD']);
diff --git a/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php b/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php
index 7b171f8..b1e8fb0 100644
--- a/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php
+++ b/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php
@@ -384,8 +384,8 @@ class HtmlResponseAttachmentsProcessor implements AttachmentsResponseProcessorIn
/**
* Transform a html_head_link array into html_head and http_header arrays.
*
- * html_head_link is a special case of html_head which can be present as
- * a link item in the HTML head section, and also as a Link: HTTP header,
+ * Variable html_head_link is a special case of html_head which can be present
+ * as a link item in the HTML head section, and also as a Link: HTTP header,
* depending on options in the render array. Processing it can add to both the
* html_head and http_header sections.
*
diff --git a/core/lib/Drupal/Core/Routing/NullGenerator.php b/core/lib/Drupal/Core/Routing/NullGenerator.php
index 74db5c9..630e81f 100644
--- a/core/lib/Drupal/Core/Routing/NullGenerator.php
+++ b/core/lib/Drupal/Core/Routing/NullGenerator.php
@@ -27,8 +27,8 @@ class NullGenerator extends UrlGenerator {
/**
* {@inheritdoc}
*
- * generate(), generateFromRoute(), and getPathFromRoute() all call this
- * protected method.
+ * Methods generate(), generateFromRoute() and getPathFromRoute() all call
+ * this protected method.
*/
protected function getRoute($name) {
if ($name === '<front>') {
diff --git a/core/lib/Drupal/Core/Update/UpdateKernel.php b/core/lib/Drupal/Core/Update/UpdateKernel.php
index 31b86c8..24a5755 100644
--- a/core/lib/Drupal/Core/Update/UpdateKernel.php
+++ b/core/lib/Drupal/Core/Update/UpdateKernel.php
@@ -115,7 +115,7 @@ class UpdateKernel extends DrupalKernel {
/**
* Boots up the session.
*
- * bootSession() + shutdownSession() basically simulates what
+ * This method + shutdownSession() basically simulates what
* \Drupal\Core\StackMiddleware\Session does.
*
* @param \Symfony\Component\HttpFoundation\Request $request
diff --git a/core/modules/field/tests/src/Kernel/TranslationTest.php b/core/modules/field/tests/src/Kernel/TranslationTest.php
index 17620e8..5d03f69 100644
--- a/core/modules/field/tests/src/Kernel/TranslationTest.php
+++ b/core/modules/field/tests/src/Kernel/TranslationTest.php
@@ -18,7 +18,7 @@ class TranslationTest extends FieldKernelTestBase {
/**
* Modules to enable.
*
- * node is required because the tests alter the node entity type.
+ * The node module is required because the tests alter the node entity type.
*
* @var array
*/
diff --git a/core/modules/filter/tests/src/Kernel/FilterAPITest.php b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
index ad26dc4..a26005d 100644
--- a/core/modules/filter/tests/src/Kernel/FilterAPITest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
@@ -246,9 +246,9 @@ class FilterAPITest extends EntityKernelTestBase {
/**
* Tests the 'processed_text' element.
*
- * check_markup() is a wrapper for the 'processed_text' element, for use in
- * simple scenarios; the 'processed_text' element has more advanced features:
- * it lets filters attach assets, associate cache tags and define
+ * Function check_markup() is a wrapper for the 'processed_text' element, for
+ * use in simple scenarios; the 'processed_text' element has more advanced
+ * features: it lets filters attach assets, associate cache tags and define
* #lazy_builder callbacks.
* This test focuses solely on those advanced features.
*/
diff --git a/core/modules/image/src/Tests/ImageFieldTestBase.php b/core/modules/image/src/Tests/ImageFieldTestBase.php
index 2e21739..a1611cb 100644
--- a/core/modules/image/src/Tests/ImageFieldTestBase.php
+++ b/core/modules/image/src/Tests/ImageFieldTestBase.php
@@ -10,11 +10,12 @@ use Drupal\simpletest\WebTestBase;
/**
* TODO: Test the following functions.
*
- * image.effects.inc:
+ * In file:
+ * - image.effects.inc:
* image_style_generate()
* \Drupal\image\ImageStyleInterface::createDerivative()
*
- * image.module:
+ * - image.module:
* image_style_options()
* \Drupal\image\ImageStyleInterface::flush()
* image_filter_keyword()
diff --git a/core/modules/image/tests/src/Functional/ImageDimensionsTest.php b/core/modules/image/tests/src/Functional/ImageDimensionsTest.php
index 46eef05..4a11bf9 100644
--- a/core/modules/image/tests/src/Functional/ImageDimensionsTest.php
+++ b/core/modules/image/tests/src/Functional/ImageDimensionsTest.php
@@ -286,9 +286,9 @@ class ImageDimensionsTest extends BrowserTestBase {
/**
* Render an image style element.
*
- * drupal_render() alters the passed $variables array by adding a new key
- * '#printed' => TRUE. This prevents next call to re-render the element. We
- * wrap drupal_render() in a helper protected method and pass each time a
+ * Function drupal_render() alters the passed $variables array by adding a new
+ * key '#printed' => TRUE. This prevents next call to re-render the element.
+ * We wrap drupal_render() in a helper protected method and pass each time a
* fresh array so that $variables won't get altered and the element is
* re-rendered each time.
*/
diff --git a/core/modules/image/tests/src/Functional/ImageFieldTestBase.php b/core/modules/image/tests/src/Functional/ImageFieldTestBase.php
index b6484a8..ef79de8 100644
--- a/core/modules/image/tests/src/Functional/ImageFieldTestBase.php
+++ b/core/modules/image/tests/src/Functional/ImageFieldTestBase.php
@@ -8,11 +8,12 @@ use Drupal\Tests\BrowserTestBase;
/**
* TODO: Test the following functions.
*
- * image.effects.inc:
+ * In file:
+ * - image.effects.inc:
* image_style_generate()
* \Drupal\image\ImageStyleInterface::createDerivative()
*
- * image.module:
+ * - image.module:
* image_style_options()
* \Drupal\image\ImageStyleInterface::flush()
* image_filter_keyword()
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php
index 4cbc4fc..5216896 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php
@@ -267,8 +267,8 @@ abstract class CommentResourceTestBase extends EntityResourceTestBase {
/**
* Tests POSTing a comment without critical base fields.
*
- * testPost() is testing with the most minimal normalization possible: the one
- * returned by ::getNormalizedPostEntity().
+ * Tests with the most minimal normalization possible: the one returned by
+ * ::getNormalizedPostEntity().
*
* But Comment entities have some very special edge cases:
* - base fields that are not marked as required in
diff --git a/core/modules/search/tests/src/Functional/SearchTokenizerTest.php b/core/modules/search/tests/src/Functional/SearchTokenizerTest.php
index 7862ea6..2cc2c6e 100644
--- a/core/modules/search/tests/src/Functional/SearchTokenizerTest.php
+++ b/core/modules/search/tests/src/Functional/SearchTokenizerTest.php
@@ -123,9 +123,9 @@ class SearchTokenizerTest extends SearchTestBase {
/**
* Like PHP chr() function, but for unicode characters.
*
- * chr() only works for ASCII characters up to character 255. This function
- * converts a number to the corresponding unicode character. Adapted from
- * functions supplied in comments on several functions on php.net.
+ * Function chr() only works for ASCII characters up to character 255. This
+ * function converts a number to the corresponding unicode character. Adapted
+ * from functions supplied in comments on several functions on php.net.
*/
public function code2utf($num) {
if ($num < 128) {
diff --git a/core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php b/core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php
index 2277adb..7337dae 100644
--- a/core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php
+++ b/core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php
@@ -154,7 +154,7 @@ class ThemeSuggestionsAlterTest extends WebTestBase {
/**
* Tests execution order of theme suggestion alter hooks.
*
- * hook_theme_suggestions_alter() should fire before
+ * Hook hook_theme_suggestions_alter() should fire before
* hook_theme_suggestions_HOOK_alter() within an extension (module or theme).
*/
public function testExecutionOrder() {
diff --git a/core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module b/core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module
index ee280a3..31373cb 100644
--- a/core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module
+++ b/core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module
@@ -8,8 +8,8 @@
/**
* Implements hook_cron().
*
- * common_test_cron() throws an exception, but the execution should reach this
- * function as well.
+ * Function common_test_cron() throws an exception, but the execution should
+ * reach this function as well.
*
* @see common_test_cron()
*/
diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index 30c8688..55b8d59 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -42,8 +42,7 @@
<rule ref="Drupal.Commenting.DocComment">
<!-- Sniff for these errors: SpacingAfterTagGroup, WrongEnd, SpacingBetween,
ContentAfterOpen, SpacingBeforeShort, TagValueIndent, ShortStartSpace,
- SpacingAfter -->
- <exclude name="Drupal.Commenting.DocComment.LongNotCapital"/>
+ SpacingAfter, LongNotCapital -->
<!-- ParamNotFirst still not decided for PHPUnit-based tests.
@see https://www.drupal.org/node/2253915 -->
<exclude name="Drupal.Commenting.DocComment.ParamNotFirst"/>
diff --git a/core/tests/Drupal/KernelTests/AssertContentTrait.php b/core/tests/Drupal/KernelTests/AssertContentTrait.php
index 1558320..e075ffe 100644
--- a/core/tests/Drupal/KernelTests/AssertContentTrait.php
+++ b/core/tests/Drupal/KernelTests/AssertContentTrait.php
@@ -31,7 +31,7 @@ trait AssertContentTrait {
/**
* The drupalSettings value from the current raw $content.
*
- * drupalSettings refers to the drupalSettings JavaScript variable.
+ * Variable drupalSettings refers to the drupalSettings JavaScript variable.
*
* @var array
*/
@@ -99,7 +99,7 @@ trait AssertContentTrait {
/**
* Gets the value of drupalSettings for the currently-loaded page.
*
- * drupalSettings refers to the drupalSettings JavaScript variable.
+ * Variable drupalSettings refers to the drupalSettings JavaScript variable.
*/
protected function getDrupalSettings() {
return $this->drupalSettings;
@@ -108,7 +108,7 @@ trait AssertContentTrait {
/**
* Sets the value of drupalSettings for the currently-loaded page.
*
- * drupalSettings refers to the drupalSettings JavaScript variable.
+ * Variable drupalSettings refers to the drupalSettings JavaScript variable.
*/
protected function setDrupalSettings($settings) {
$this->drupalSettings = $settings;
diff --git a/core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php b/core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
index 14288fe..2a9ea0b 100644
--- a/core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
@@ -9,7 +9,7 @@ use Drupal\KernelTests\KernelTestBase;
/**
* Tests #attached assets: attached asset libraries and JavaScript settings.
*
- * i.e. tests:
+ * I.e. tests:
*
* @code
* $build['#attached']['library'] = …
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php
index 9b279a5..16fd8c5 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php
@@ -57,7 +57,7 @@ class EntityCrudHookTest extends EntityKernelTestBase {
/**
* Checks the order of CRUD hook execution messages.
*
- * entity_crud_hook_test.module implements all core entity CRUD hooks and
+ * Module entity_crud_hook_test implements all core entity CRUD hooks and
* stores a message for each in $GLOBALS['entity_crud_hook_test'].
*
* @param $messages
diff --git a/core/tests/Drupal/Tests/Core/Field/BaseFieldDefinitionTestBase.php b/core/tests/Drupal/Tests/Core/Field/BaseFieldDefinitionTestBase.php
index acb7346..adcb334 100644
--- a/core/tests/Drupal/Tests/Core/Field/BaseFieldDefinitionTestBase.php
+++ b/core/tests/Drupal/Tests/Core/Field/BaseFieldDefinitionTestBase.php
@@ -65,8 +65,8 @@ abstract class BaseFieldDefinitionTestBase extends UnitTestCase {
/**
* Returns the module name and the module directory for the plugin.
*
- * drupal_get_path() cannot be used here, because it is not available in
- * Drupal PHPUnit tests.
+ * Function drupal_get_path() cannot be used here, because it is not available
+ * in Drupal PHPUnit tests.
*
* @return array
* A one-dimensional array containing the following strings:
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
index 0d38afd..36137b4 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -35,7 +35,7 @@ class RendererPlaceholdersTest extends RendererTestBase {
/**
* Provides the two classes of placeholders: cacheable and uncacheable.
*
- * i.e. with or without #cache[keys].
+ * I.e. with or without #cache[keys].
*
* Also, different types:
* - A) automatically generated placeholder