Skip to content
Snippets Groups Projects
Verified Commit 7cbdf08f authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2916306 by TR, quietone, pfrenssen: Use "@return" instead of "@returns"

parent 09bcf41f
No related branches found
No related tags found
12 merge requests!11628Update file MediaLibraryWidget.php,!7564Revert "Issue #3364773 by roshnichordiya, Chris Matthews, thakurnishant_06,...,!5752Issue #3275828 by joachim, quietone, bradjones1, Berdir: document the reason...,!5627Issue #3261805: Field not saved when change of 0 on string start,!5427Issue #3338518: send credentials in ajax if configured in CORS settings.,!5395Issue #3387916 by fjgarlin, Spokje: Each GitLab job exposes user email,!5217Issue #3386607 by alexpott: Improve spell checking in commit-code-check.sh,!5064Issue #3379522 by finnsky, Gauravvvv, kostyashupenko, smustgrave, Chi: Revert...,!5040SDC ComponentElement: Transform slots scalar values to #plain_text instead of throwing an exception,!4894Issue #3280279: Add API to allow sites to opt in to upload SVG images in CKEditor 5,!3106Issue #3017548: "Filtered HTML" text format does not support manual teaser break (<!--break-->),!872Draft: Issue #3221319: Race condition when creating menu links and editing content deletes menu links
Pipeline #29420 failed
Pipeline: drupal

#29425

    Pipeline: drupal

    #29424

      Pipeline: drupal

      #29423

        +1
        Showing
        with 30 additions and 29 deletions
        ...@@ -37,7 +37,7 @@ public function __construct(Response $response, $message = "", $code = 0, \Excep ...@@ -37,7 +37,7 @@ public function __construct(Response $response, $message = "", $code = 0, \Excep
        /** /**
        * Return the response to be enforced. * Return the response to be enforced.
        * *
        * @returns \Symfony\Component\HttpFoundation\Response $response * @return \Symfony\Component\HttpFoundation\Response
        * The response to be enforced. * The response to be enforced.
        */ */
        public function getResponse() { public function getResponse() {
        ......
        ...@@ -641,7 +641,7 @@ protected function setCurrentRenderContext(RenderContext $context = NULL) { ...@@ -641,7 +641,7 @@ protected function setCurrentRenderContext(RenderContext $context = NULL) {
        * bubbleable metadata associated with the markup that replaced the * bubbleable metadata associated with the markup that replaced the
        * placeholders. * placeholders.
        * *
        * @returns bool * @return bool
        * Whether placeholders were replaced. * Whether placeholders were replaced.
        * *
        * @see \Drupal\Core\Render\Renderer::renderPlaceholder() * @see \Drupal\Core\Render\Renderer::renderPlaceholder()
        ......
        ...@@ -82,7 +82,7 @@ protected function getName(Request $request) { ...@@ -82,7 +82,7 @@ protected function getName(Request $request) {
        * @param \Symfony\Component\HttpFoundation\Request $request * @param \Symfony\Component\HttpFoundation\Request $request
        * The request. * The request.
        * *
        * @returns string * @return string
        * The session name without the prefix (SESS/SSESS). * The session name without the prefix (SESS/SSESS).
        */ */
        protected function getUnprefixedName(Request $request) { protected function getUnprefixedName(Request $request) {
        ...@@ -118,7 +118,7 @@ protected function getUnprefixedName(Request $request) { ...@@ -118,7 +118,7 @@ protected function getUnprefixedName(Request $request) {
        * @param \Symfony\Component\HttpFoundation\Request $request * @param \Symfony\Component\HttpFoundation\Request $request
        * The request. * The request.
        * *
        * @returns string|null * @return string|null
        * The session cookie domain, or NULL if the calculated value is invalid. * The session cookie domain, or NULL if the calculated value is invalid.
        */ */
        protected function getCookieDomain(Request $request) { protected function getCookieDomain(Request $request) {
        ......
        ...@@ -71,7 +71,7 @@ public function setEnabled($entity_type_id, $bundle, $value); ...@@ -71,7 +71,7 @@ public function setEnabled($entity_type_id, $bundle, $value);
        * (optional) The bundle of the entity. If no bundle is provided, all the * (optional) The bundle of the entity. If no bundle is provided, all the
        * available bundles are checked. * available bundles are checked.
        * *
        * @returns bool * @return bool
        * TRUE if the specified bundle is translatable. If no bundle is provided * TRUE if the specified bundle is translatable. If no bundle is provided
        * returns TRUE if at least one of the entity bundles is translatable. * returns TRUE if at least one of the entity bundles is translatable.
        */ */
        ......
        ...@@ -327,7 +327,7 @@ protected function createMergedItem(array $source_item, array $target_item, arra ...@@ -327,7 +327,7 @@ protected function createMergedItem(array $source_item, array $target_item, arra
        * @param array $properties * @param array $properties
        * An array of column names to be synchronized. * An array of column names to be synchronized.
        * *
        * @returns string * @return string
        * A hash code that can be used to identify the item. * A hash code that can be used to identify the item.
        */ */
        protected function itemHash(array $items, $delta, array $properties) { protected function itemHash(array $items, $delta, array $properties) {
        ......
        ...@@ -90,7 +90,7 @@ public function testGet($entity_type_id, $bundle, $entity_class) { ...@@ -90,7 +90,7 @@ public function testGet($entity_type_id, $bundle, $entity_class) {
        /** /**
        * Data provider for testGet. * Data provider for testGet.
        * *
        * @returns array * @return array
        * The data for the test method. * The data for the test method.
        */ */
        public function getProvider() { public function getProvider() {
        ...@@ -137,7 +137,7 @@ public function testMappingNameConflictCheck($field_name_list) { ...@@ -137,7 +137,7 @@ public function testMappingNameConflictCheck($field_name_list) {
        * mapping: the special-cased names "type" or "id", and the name * mapping: the special-cased names "type" or "id", and the name
        * "{$entity_type_id}_type" or "{$entity_type_id}_id", respectively. * "{$entity_type_id}_type" or "{$entity_type_id}_id", respectively.
        * *
        * @returns array * @return array
        * The data for the test method. * The data for the test method.
        */ */
        public function getFieldsProvider() { public function getFieldsProvider() {
        ......
        ...@@ -106,7 +106,7 @@ public function label(); ...@@ -106,7 +106,7 @@ public function label();
        /** /**
        * Get a list of required plugin IDs. * Get a list of required plugin IDs.
        * *
        * @returns string[] * @return string[]
        */ */
        public function getRequirements(): array; public function getRequirements(): array;
        ......
        ...@@ -99,7 +99,7 @@ public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = TR ...@@ -99,7 +99,7 @@ public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = TR
        * @param bool $catch * @param bool $catch
        * Whether to catch exceptions or not * Whether to catch exceptions or not
        * *
        * @returns \Symfony\Component\HttpFoundation\Response $response * @return \Symfony\Component\HttpFoundation\Response
        * A response object. * A response object.
        */ */
        protected function pass(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE) { protected function pass(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE) {
        ...@@ -117,7 +117,7 @@ protected function pass(Request $request, $type = self::MAIN_REQUEST, $catch = T ...@@ -117,7 +117,7 @@ protected function pass(Request $request, $type = self::MAIN_REQUEST, $catch = T
        * @param bool $catch * @param bool $catch
        * Whether to catch exceptions or not * Whether to catch exceptions or not
        * *
        * @returns \Symfony\Component\HttpFoundation\Response $response * @return \Symfony\Component\HttpFoundation\Response
        * A response object. * A response object.
        */ */
        protected function lookup(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE) { protected function lookup(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE) {
        ...@@ -183,7 +183,7 @@ protected function lookup(Request $request, $type = self::MAIN_REQUEST, $catch = ...@@ -183,7 +183,7 @@ protected function lookup(Request $request, $type = self::MAIN_REQUEST, $catch =
        * @param bool $catch * @param bool $catch
        * Whether to catch exceptions or not * Whether to catch exceptions or not
        * *
        * @returns \Symfony\Component\HttpFoundation\Response $response * @return \Symfony\Component\HttpFoundation\Response
        * A response object. * A response object.
        */ */
        protected function fetch(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE) { protected function fetch(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE) {
        ...@@ -207,7 +207,8 @@ protected function fetch(Request $request, $type = self::MAIN_REQUEST, $catch = ...@@ -207,7 +207,8 @@ protected function fetch(Request $request, $type = self::MAIN_REQUEST, $catch =
        * @param \Symfony\Component\HttpFoundation\Response $response * @param \Symfony\Component\HttpFoundation\Response $response
        * A response object that should be stored in the page cache. * A response object that should be stored in the page cache.
        * *
        * @returns bool * @return bool
        * TRUE if the response has been stored successfully, FALSE otherwise.
        */ */
        protected function storeResponse(Request $request, Response $response) { protected function storeResponse(Request $request, Response $response) {
        // Drupal's primary cache invalidation architecture is cache tags: any // Drupal's primary cache invalidation architecture is cache tags: any
        ......
        ...@@ -69,7 +69,7 @@ public function normalize($datetime, $format = NULL, array $context = []): array ...@@ -69,7 +69,7 @@ public function normalize($datetime, $format = NULL, array $context = []): array
        * @see ::normalize * @see ::normalize
        * @see \Drupal\Core\Datetime\DrupalDateTime::prepareTimezone() * @see \Drupal\Core\Datetime\DrupalDateTime::prepareTimezone()
        * *
        * @returns \DateTimeZone * @return \DateTimeZone
        * The timezone to use. * The timezone to use.
        */ */
        protected function getNormalizationTimezone() { protected function getNormalizationTimezone() {
        ......
        ...@@ -44,7 +44,7 @@ public function test1() { ...@@ -44,7 +44,7 @@ public function test1() {
        /** /**
        * Provides example content for route specific authentication. * Provides example content for route specific authentication.
        * *
        * @returns string * @return string
        * The user name of the current logged in user. * The user name of the current logged in user.
        */ */
        public function test11() { public function test11() {
        ......
        ...@@ -50,7 +50,7 @@ protected function getUrlInfo(ResultRow $row) { ...@@ -50,7 +50,7 @@ protected function getUrlInfo(ResultRow $row) {
        /** /**
        * Returns the entity link template name identifying the link route. * Returns the entity link template name identifying the link route.
        * *
        * @returns string * @return string
        * The link template name. * The link template name.
        */ */
        protected function getEntityLinkTemplate() { protected function getEntityLinkTemplate() {
        ......
        ...@@ -128,7 +128,7 @@ public function testGetCurrentMicroTime() { ...@@ -128,7 +128,7 @@ public function testGetCurrentMicroTime() {
        /** /**
        * Shadow time() system call. * Shadow time() system call.
        * *
        * @returns int * @return int
        */ */
        function time() { function time() {
        return 12345678; return 12345678;
        ...@@ -137,7 +137,7 @@ function time() { ...@@ -137,7 +137,7 @@ function time() {
        /** /**
        * Shadow microtime system call. * Shadow microtime system call.
        * *
        * @returns float * @return float
        */ */
        function microtime() { function microtime() {
        return 1234567.89; return 1234567.89;
        ......
        ...@@ -33,7 +33,7 @@ protected function setUp(): void { ...@@ -33,7 +33,7 @@ protected function setUp(): void {
        * *
        * @see \Drupal\Core\Asset\JsOptimizer::clean() * @see \Drupal\Core\Asset\JsOptimizer::clean()
        * *
        * @returns array * @return array
        * An array of test data. * An array of test data.
        */ */
        public function providerTestClean() { public function providerTestClean() {
        ...@@ -80,7 +80,7 @@ public function testClean($js_asset, $expected) { ...@@ -80,7 +80,7 @@ public function testClean($js_asset, $expected) {
        * *
        * @see \Drupal\Core\Asset\JsOptimizer::optimize() * @see \Drupal\Core\Asset\JsOptimizer::optimize()
        * *
        * @returns array * @return array
        * An array of test data. * An array of test data.
        */ */
        public function providerTestOptimize() { public function providerTestOptimize() {
        ......
        ...@@ -526,7 +526,7 @@ public function testAccess() { ...@@ -526,7 +526,7 @@ public function testAccess() {
        /** /**
        * Data provider for testGet(). * Data provider for testGet().
        * *
        * @returns * @return array
        * - Expected output from get(). * - Expected output from get().
        * - Field name parameter to get(). * - Field name parameter to get().
        * - Language code for $activeLanguage. * - Language code for $activeLanguage.
        ...@@ -586,7 +586,7 @@ public function testGet($expected, $field_name, $active_langcode, $fields) { ...@@ -586,7 +586,7 @@ public function testGet($expected, $field_name, $active_langcode, $fields) {
        /** /**
        * Data provider for testGetFields(). * Data provider for testGetFields().
        * *
        * @returns array * @return array
        * - Expected output from getFields(). * - Expected output from getFields().
        * - $include_computed value to pass to getFields(). * - $include_computed value to pass to getFields().
        * - Value to mock from all field definitions for isComputed(). * - Value to mock from all field definitions for isComputed().
        ......
        ...@@ -14,7 +14,7 @@ class SessionConfigurationTest extends UnitTestCase { ...@@ -14,7 +14,7 @@ class SessionConfigurationTest extends UnitTestCase {
        /** /**
        * Constructs a partially mocked SUT. * Constructs a partially mocked SUT.
        * *
        * @returns \Drupal\Core\Session\SessionConfiguration|\PHPUnit\Framework\MockObject\MockObject * @return \Drupal\Core\Session\SessionConfiguration|\PHPUnit\Framework\MockObject\MockObject
        */ */
        protected function createSessionConfiguration($options = []) { protected function createSessionConfiguration($options = []) {
        return $this->getMockBuilder('Drupal\Core\Session\SessionConfiguration') return $this->getMockBuilder('Drupal\Core\Session\SessionConfiguration')
        ...@@ -42,7 +42,7 @@ public function testGeneratedCookieDomain($uri, $expected_domain) { ...@@ -42,7 +42,7 @@ public function testGeneratedCookieDomain($uri, $expected_domain) {
        /** /**
        * Data provider for the cookie domain test. * Data provider for the cookie domain test.
        * *
        * @returns array * @return array
        * Test data * Test data
        */ */
        public function providerTestGeneratedCookieDomain() { public function providerTestGeneratedCookieDomain() {
        ...@@ -81,7 +81,7 @@ public function testEnforcedCookieDomain($uri, $expected_domain) { ...@@ -81,7 +81,7 @@ public function testEnforcedCookieDomain($uri, $expected_domain) {
        /** /**
        * Data provider for the cookie domain test. * Data provider for the cookie domain test.
        * *
        * @returns array * @return array
        * Test data * Test data
        */ */
        public function providerTestEnforcedCookieDomain() { public function providerTestEnforcedCookieDomain() {
        ...@@ -147,7 +147,7 @@ public function testCookieSecureNotOverridable($uri, $expected_secure) { ...@@ -147,7 +147,7 @@ public function testCookieSecureNotOverridable($uri, $expected_secure) {
        /** /**
        * Data provider for the cookie secure test. * Data provider for the cookie secure test.
        * *
        * @returns array * @return array
        * Test data * Test data
        */ */
        public function providerTestCookieSecure() { public function providerTestCookieSecure() {
        ...@@ -180,7 +180,7 @@ public function testGeneratedSessionName($uri, $expected_name) { ...@@ -180,7 +180,7 @@ public function testGeneratedSessionName($uri, $expected_name) {
        /** /**
        * Data provider for the cookie name test. * Data provider for the cookie name test.
        * *
        * @returns array * @return array
        * Test data * Test data
        */ */
        public function providerTestGeneratedSessionName() { public function providerTestGeneratedSessionName() {
        ...@@ -228,7 +228,7 @@ public function testEnforcedSessionNameViaCookieDomain($uri, $expected_name) { ...@@ -228,7 +228,7 @@ public function testEnforcedSessionNameViaCookieDomain($uri, $expected_name) {
        /** /**
        * Data provider for the cookie name test. * Data provider for the cookie name test.
        * *
        * @returns array * @return array
        * Test data * Test data
        */ */
        public function providerTestEnforcedSessionName() { public function providerTestEnforcedSessionName() {
        ...@@ -274,7 +274,7 @@ public function testConstructorDefaultSettings(array $options, int $expected_sid ...@@ -274,7 +274,7 @@ public function testConstructorDefaultSettings(array $options, int $expected_sid
        /** /**
        * Data provider for the constructor test. * Data provider for the constructor test.
        * *
        * @returns array * @return array
        * Test data * Test data
        */ */
        public function providerTestConstructorDefaultSettings() { public function providerTestConstructorDefaultSettings() {
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment