Skip to content
Snippets Groups Projects
Verified Commit d1a4f6e0 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3207949 by quietone, kapilv, longwave, rakesh.gectcr, mile23, ro-no-lo,...

Issue #3207949 by quietone, kapilv, longwave, rakesh.gectcr, mile23, ro-no-lo, ricardoamaro, pancho, immaculatexavier, shashikant_chauhan: Fix Drupal.Commenting.FunctionComment.MissingParamType
parent 7fff2643
No related branches found
No related tags found
2 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!10223132456: Fix issue where views instances are emptied before an ajax request is complete
Pipeline #411061 passed
Pipeline: drupal

#411075

    Pipeline: drupal

    #411068

      Pipeline: drupal

      #411064

        ...@@ -184,19 +184,16 @@ public static function assertAllStrictArrays($traversable) { ...@@ -184,19 +184,16 @@ public static function assertAllStrictArrays($traversable) {
        * *
        * @param mixed $traversable * @param mixed $traversable
        * Variable to be examined. * Variable to be examined.
        * @param ...$keys * @param string ...$keys
        * Keys to be searched for. * Keys to be searched for.
        * *
        * @return bool * @return bool
        * TRUE if $traversable can be traversed and all members have all keys. * TRUE if $traversable can be traversed and all members have all keys.
        */ */
        public static function assertAllHaveKey($traversable) { public static function assertAllHaveKey($traversable, string ...$keys) {
        $args = func_get_args();
        unset($args[0]);
        if (is_iterable($traversable)) { if (is_iterable($traversable)) {
        foreach ($traversable as $member) { foreach ($traversable as $member) {
        foreach ($args as $key) { foreach ($keys as $key) {
        if (!array_key_exists($key, $member)) { if (!array_key_exists($key, $member)) {
        return FALSE; return FALSE;
        } }
        ...@@ -370,21 +367,18 @@ public static function assertAllRegularExpressionMatch($pattern, $traversable) { ...@@ -370,21 +367,18 @@ public static function assertAllRegularExpressionMatch($pattern, $traversable) {
        * *
        * @param mixed $traversable * @param mixed $traversable
        * Variable to be examined. * Variable to be examined.
        * @param ...$classes * @param string ...$classes
        * Classes and interfaces to test objects against. * Classes and interfaces to test objects against.
        * *
        * @return bool * @return bool
        * TRUE if $traversable can be traversed and all members are objects with * TRUE if $traversable can be traversed and all members are objects with
        * at least one of the listed classes or interfaces. * at least one of the listed classes or interfaces.
        */ */
        public static function assertAllObjects($traversable) { public static function assertAllObjects($traversable, string ...$classes) {
        $args = func_get_args();
        unset($args[0]);
        if (is_iterable($traversable)) { if (is_iterable($traversable)) {
        foreach ($traversable as $member) { foreach ($traversable as $member) {
        if (count($args) > 0) { if (count($classes) > 0) {
        foreach ($args as $instance) { foreach ($classes as $instance) {
        if ($member instanceof $instance) { if ($member instanceof $instance) {
        // We're continuing to the next member on the outer loop. // We're continuing to the next member on the outer loop.
        // @see http://php.net/continue // @see http://php.net/continue
        ......
        ...@@ -517,7 +517,7 @@ public function isSyncing() { ...@@ -517,7 +517,7 @@ public function isSyncing() {
        * *
        * @param \Drupal\Core\Config\StorageInterface $storage * @param \Drupal\Core\Config\StorageInterface $storage
        * The storage containing the default configuration. * The storage containing the default configuration.
        * @param $previous_config_names * @param array $previous_config_names
        * An array of configuration names that have previously been checked. * An array of configuration names that have previously been checked.
        * *
        * @return array * @return array
        ......
        ...@@ -35,7 +35,7 @@ public function __call($name, $args): mixed { ...@@ -35,7 +35,7 @@ public function __call($name, $args): mixed {
        /** /**
        * Loads the file a function lives in, if any. * Loads the file a function lives in, if any.
        * *
        * @param $function * @param string $function
        * The name of the function. * The name of the function.
        */ */
        public function loadFile($function): void { public function loadFile($function): void {
        ......
        ...@@ -156,14 +156,14 @@ public static function collectAllHookImplementations(array $module_filenames, ?C ...@@ -156,14 +156,14 @@ public static function collectAllHookImplementations(array $module_filenames, ?C
        /** /**
        * Collects procedural and Attribute hook implementations. * Collects procedural and Attribute hook implementations.
        * *
        * @param $dir * @param string $dir
        * The directory in which the module resides. * The directory in which the module resides.
        * @param $module * @param string $module
        * The name of the module. * The name of the module.
        * @param $module_preg * @param string $module_preg
        * A regular expression matching every module, longer module names are * A regular expression matching every module, longer module names are
        * matched first. * matched first.
        * @param $skip_procedural * @param bool $skip_procedural
        * Skip the procedural check for the current module. * Skip the procedural check for the current module.
        */ */
        protected function collectModuleHookImplementations($dir, $module, $module_preg, bool $skip_procedural): void { protected function collectModuleHookImplementations($dir, $module, $module_preg, bool $skip_procedural): void {
        ...@@ -300,9 +300,9 @@ protected static function getHookAttributesInClass(string $class): array { ...@@ -300,9 +300,9 @@ protected static function getHookAttributesInClass(string $class): array {
        * *
        * @param \Drupal\Core\Hook\Attribute\Hook $hook * @param \Drupal\Core\Hook\Attribute\Hook $hook
        * A hook attribute. * A hook attribute.
        * @param $class * @param string $class
        * The class in which said attribute resides in. * The class in which said attribute resides in.
        * @param $module * @param string $module
        * The module in which the class resides in. * The module in which the class resides in.
        */ */
        protected function addFromAttribute(Hook $hook, $class, $module): void { protected function addFromAttribute(Hook $hook, $class, $module): void {
        ......
        ...@@ -165,7 +165,7 @@ public function getProjectName(Extension $file) { ...@@ -165,7 +165,7 @@ public function getProjectName(Extension $file) {
        * @param array $info * @param array $info
        * Array of .info.yml file data as returned by * Array of .info.yml file data as returned by
        * \Drupal\Core\Extension\InfoParser. * \Drupal\Core\Extension\InfoParser.
        * @param $additional_elements * @param array $additional_elements
        * (optional) Array of additional elements to be collected from the * (optional) Array of additional elements to be collected from the
        * .info.yml file. Defaults to []. * .info.yml file. Defaults to [].
        * *
        ......
        ...@@ -38,7 +38,7 @@ function hook_navigation_content_top(): array { ...@@ -38,7 +38,7 @@ function hook_navigation_content_top(): array {
        /** /**
        * Alter replacement values for placeholder tokens. * Alter replacement values for placeholder tokens.
        * *
        * @param $content_top * @param array $content_top
        * An associative array of content returned by hook_navigation_content_top(). * An associative array of content returned by hook_navigation_content_top().
        * *
        * @see hook_navigation_content_top() * @see hook_navigation_content_top()
        ......
        ...@@ -26,7 +26,7 @@ function navigation_module_implements_alter(&$implementations, $hook): void { ...@@ -26,7 +26,7 @@ function navigation_module_implements_alter(&$implementations, $hook): void {
        * *
        * Default template: top-bar.html.twig * Default template: top-bar.html.twig
        * *
        * @param $variables * @param array $variables
        * An associative array containing: * An associative array containing:
        * - element: An associative array containing the properties and children of * - element: An associative array containing the properties and children of
        * the top bar. * the top bar.
        ......
        ...@@ -84,13 +84,7 @@ ...@@ -84,13 +84,7 @@
        <include-pattern>*/Database/*</include-pattern> <include-pattern>*/Database/*</include-pattern>
        <exclude-pattern>*/tests/*</exclude-pattern> <exclude-pattern>*/tests/*</exclude-pattern>
        </rule> </rule>
        <rule ref="Drupal.Commenting.FunctionComment.MissingParamType"> <rule ref="Drupal.Commenting.FunctionComment.MissingParamType"/>
        <include-pattern>core/lib/Component/*</include-pattern>
        <include-pattern>core/includes/*</include-pattern>
        <include-pattern>core/*/*Database*/*</include-pattern>
        <include-pattern>*/*/views/*</include-pattern>
        <include-pattern>*/*/views_ui/*</include-pattern>
        </rule>
        <rule ref="Drupal.Commenting.FunctionComment.MissingReturnComment"> <rule ref="Drupal.Commenting.FunctionComment.MissingReturnComment">
        <include-pattern>core/lib/Drupal/Core/*</include-pattern> <include-pattern>core/lib/Drupal/Core/*</include-pattern>
        <include-pattern>core/lib/Drupal/Component/*</include-pattern> <include-pattern>core/lib/Drupal/Component/*</include-pattern>
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment