Unverified Commit 2126f4c7 authored by alexpott's avatar alexpott
Browse files

Issue #3207567 by Spokje, quietone, guilhermevp, yogeshmpawar, daffie,...

Issue #3207567 by Spokje, quietone, guilhermevp, yogeshmpawar, daffie, alexpott: Fix Drupal.Commenting.FunctionComment.MissingParamComment

(cherry picked from commit 576bd754)
parent ce8e734a
......@@ -124,6 +124,7 @@ protected function createAppendOp(PackageInterface $package, OperationData $oper
*
* @param Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $file
* Scaffold file to check.
*
* @return bool
* True if the file exists and has content.
*/
......
......@@ -23,6 +23,7 @@ public function getProvider();
* Sets the name of the provider of the annotated class.
*
* @param string $provider
* The provider of the annotated class.
*/
public function setProvider($provider);
......@@ -44,6 +45,7 @@ public function getClass();
* Sets the class of the annotated class.
*
* @param string $class
* The class of the annotated class.
*/
public function setClass($class);
......
......@@ -124,6 +124,7 @@ public function setContainer(ContainerInterface $container = NULL) {
/**
* @param $class
* The class to set as standalone.
*/
public function setStandalone($class) {
if (!is_subclass_of($class, ReaderManagerInterface::class) && !is_subclass_of($class, WriterManagerInterface::class)) {
......
......@@ -77,6 +77,7 @@ public function getLangcode() {
* Set the language code of the current language.
*
* @param string $langcode
* The language code of the current language.
*/
public function setLangcode($langcode) {
$this->langcode = $langcode;
......@@ -95,6 +96,7 @@ public function getContext() {
* Set the context this translation belongs to.
*
* @param string $context
* The context this translation belongs to.
*/
public function setContext($context) {
$this->context = $context;
......@@ -115,6 +117,7 @@ public function getSource() {
* plurals.
*
* @param string|array $source
* The source string or the array of strings if the translation has plurals.
*/
public function setSource($source) {
$this->source = $source;
......@@ -135,6 +138,8 @@ public function getTranslation() {
* plurals.
*
* @param string|array $translation
* The translation string or the array of strings if the translation has
* plurals.
*/
public function setTranslation($translation) {
$this->translation = $translation;
......@@ -144,6 +149,7 @@ public function setTranslation($translation) {
* Set if the translation has plural values.
*
* @param bool $plural
* TRUE, if the translation has plural values. FALSE otherwise.
*/
public function setPlural($plural) {
$this->plural = $plural;
......@@ -171,6 +177,7 @@ public function getComment() {
* Set the comment of this translation.
*
* @param string $comment
* The comment of this translation.
*/
public function setComment($comment) {
$this->comment = $comment;
......@@ -180,6 +187,7 @@ public function setComment($comment) {
* Create the PoItem from a structured array.
*
* @param array $values
* A structured array to create the PoItem from.
*/
public function setFromArray(array $values = []) {
if (isset($values['context'])) {
......
......@@ -249,6 +249,7 @@ public function sentences($min_word_count, $capitalize = FALSE) {
* Generate paragraphs separated by double new line.
*
* @param int $paragraph_count
* The number of paragraphs to create. Defaults to 12.
*
* @return string
*/
......
......@@ -66,6 +66,7 @@ class AccessManager implements AccessManagerInterface {
* @param \Drupal\Core\Session\AccountInterface $current_user
* The current user.
* @param CheckProviderInterface $check_provider
* The check access provider.
*/
public function __construct(RouteProviderInterface $route_provider, ParamConverterManagerInterface $paramconverter_manager, AccessArgumentsResolverFactoryInterface $arguments_resolver_factory, AccountInterface $current_user, CheckProviderInterface $check_provider) {
$this->routeProvider = $route_provider;
......
......@@ -29,6 +29,7 @@ class RemoveCommand implements CommandInterface {
* Constructs a RemoveCommand object.
*
* @param string $selector
* The selector.
*/
public function __construct($selector) {
$this->selector = $selector;
......
......@@ -21,6 +21,7 @@ class IsFrontPathCacheContext implements CacheContextInterface {
* Constructs an IsFrontPathCacheContext object.
*
* @param \Drupal\Core\Path\PathMatcherInterface $path_matcher
* The path matcher.
*/
public function __construct(PathMatcherInterface $path_matcher) {
$this->pathMatcher = $path_matcher;
......
......@@ -87,6 +87,7 @@ class Composer {
* Add vendor classes to Composer's static classmap.
*
* @param \Composer\Script\Event $event
* The event.
*/
public static function preAutoloadDump(Event $event) {
// Get the configured vendor directory.
......@@ -159,6 +160,7 @@ public static function preAutoloadDump(Event $event) {
* Ensures that .htaccess and web.config files are present in Composer root.
*
* @param \Composer\Script\Event $event
* The event.
*/
public static function ensureHtaccess(Event $event) {
......@@ -295,6 +297,7 @@ protected static function deleteRecursive($path) {
* Fires the drupal-phpunit-upgrade script event if necessary.
*
* @param \Composer\Script\Event $event
* The event.
*/
public static function upgradePHPUnit(Event $event) {
$repository = $event->getComposer()->getRepositoryManager()->getLocalRepository();
......
......@@ -70,6 +70,7 @@ public function installCollectionDefaultConfig($collection);
* Sets the configuration storage that provides the default configuration.
*
* @param \Drupal\Core\Config\StorageInterface $storage
* The storage.
*
* @return $this
*/
......
......@@ -350,7 +350,9 @@ protected static function checkEmptyInputs($input, $parts) {
* Rounds minutes and seconds to nearest requested value.
*
* @param $date
* The date.
* @param $increment
* The value to round to.
*
* @return
*/
......
......@@ -387,6 +387,7 @@ public static function validateDatetime(&$element, FormStateInterface $form_stat
* This is centralized for a consistent method of creating these examples.
*
* @param string $format
* The date format.
*
* @return string
*/
......
......@@ -19,10 +19,16 @@ public function getConjunction();
* Adds a condition.
*
* @param string|ConditionAggregateInterface $field
* The field.
* @param string $function
* (optional) The function.
* @param mixed $value
* (optional) The value.
* @param string $operator
* (optional) The operator.
* @param string $langcode
* (optional) For which language the entity should be prepared, defaults to
* the current content language.
*
* @return $this
* The called object.
......@@ -35,8 +41,12 @@ public function condition($field, $function = NULL, $value = NULL, $operator = N
* Queries for the existence of a field.
*
* @param string $field
* The field to query for existence.
* @param string $function
* The function.
* @param string $langcode
* (optional) For which language the entity should be prepared, defaults to
* the current content language.
*
* @return \Drupal\Core\Entity\Query\ConditionInterface
*
......@@ -48,8 +58,12 @@ public function exists($field, $function, $langcode = NULL);
* Queries for the nonexistence of a field.
*
* @param string $field
* The field to query for nonexistence.
* @param string $function
* The function.
* @param string $langcode
* (optional) For which language the entity should be prepared, defaults to
* the current content language.
*
* @return \Drupal\Core\Entity\Query\ConditionInterface
*
......
......@@ -27,9 +27,14 @@ public function count();
* Adds a condition.
*
* @param string|\Drupal\Core\Entity\Query\ConditionInterface $field
* The field.
* @param mixed $value
* (optional) The value.
* @param string $operator
* (optional) The operator.
* @param string $langcode
* (optional) For which language the entity should be prepared, defaults to
* the current content language.
*
* @return $this
*
......@@ -41,7 +46,10 @@ public function condition($field, $value = NULL, $operator = NULL, $langcode = N
* Queries for the existence of a field.
*
* @param string $field
* The field to query for existence.
* @param string $langcode
* (optional) For which language the entity should be prepared, defaults to
* the current content language.
*
* @return $this
*
......@@ -53,6 +61,7 @@ public function exists($field, $langcode = NULL);
* Queries for the nonexistence of a field.
*
* @param string $field
* The field to query for nonexistence.
* @param string $langcode
* (optional) For which language the entity should be prepared, defaults to
* the current content language.
......
......@@ -66,6 +66,7 @@ class Tables implements TablesInterface {
/**
* @param \Drupal\Core\Database\Query\SelectInterface $sql_query
* The SQL query.
*/
public function __construct(SelectInterface $sql_query) {
$this->sqlQuery = $sql_query;
......@@ -454,6 +455,7 @@ protected function addJoin($type, $table, $join_condition, $langcode, $delta = N
* @param string $table
* The table name.
* @param string $entity_type_id
* The entity type ID.
*
* @return array|false
* An associative array of table field mapping for the given table, keyed by
......
......@@ -125,6 +125,7 @@ public function onExceptionSendChallenge(ExceptionEvent $event) {
* Detect disallowed authentication methods on access denied exceptions.
*
* @param \Symfony\Component\HttpKernel\Event\ExceptionEvent $event
* The event.
*/
public function onExceptionAccessDenied(ExceptionEvent $event) {
if (isset($this->filter) && $event->isMainRequest()) {
......
......@@ -32,6 +32,7 @@ protected function getHandledFormats() {
* vestigial and can be removed.
*
* @param \Symfony\Component\HttpKernel\Event\ExceptionEvent $event
* The event.
*/
public function on500(ExceptionEvent $event) {
$exception = $event->getThrowable();
......
......@@ -213,6 +213,7 @@ public function onRespond(ResponseEvent $event) {
* @see \Symfony\Component\HttpFoundation\ResponseHeaderBag::computeCacheControlValue()
*
* @param \Symfony\Component\HttpFoundation\Response $response
* The response object.
*
* @return bool
* TRUE when Cache-Control header was set explicitly on the given response.
......
......@@ -33,6 +33,7 @@ class FormSubmitter implements FormSubmitterInterface {
* @param \Symfony\Component\HttpFoundation\RequestStack $request_stack
* The request stack.
* @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
* The URL generator.
*/
public function __construct(RequestStack $request_stack, UrlGeneratorInterface $url_generator) {
$this->requestStack = $request_stack;
......
......@@ -25,6 +25,7 @@ class CountryManager implements CountryManagerInterface {
* Constructor.
*
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler.
*/
public function __construct(ModuleHandlerInterface $module_handler) {
$this->moduleHandler = $module_handler;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment