Skip to content
Snippets Groups Projects
Commit 1fcf53c3 authored by catch's avatar catch
Browse files

Issue #3183656 by jonathan1055, daffie: Fix...

Issue #3183656 by jonathan1055, daffie: Fix 'Drupal.Commenting.DocComment.TagGroupSpacing' coding standard [part 2]
parent 8a57d1e8
No related branches found
No related tags found
No related merge requests found
Showing with 14 additions and 1 deletion
......@@ -475,6 +475,7 @@ private function tokenizeFormula($formula) {
* Number of the plural string to be used for the given plural value.
*
* @see parseArithmetic()
*
* @throws \Exception
*/
protected function evaluatePlural($element_stack, $n) {
......
......@@ -26,6 +26,7 @@ public function getConjunction();
*
* @return $this
* The called object.
*
* @see \Drupal\Core\Entity\Query\QueryInterface::condition()
*/
public function condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL);
......@@ -37,6 +38,7 @@ public function condition($field, $function = NULL, $value = NULL, $operator = N
* @param string $langcode
*
* @return ConditionInterface
*
* @see \Drupal\Core\Entity\Query\QueryInterface::exists()
*/
public function exists($field, $function, $langcode = NULL);
......@@ -47,6 +49,7 @@ public function exists($field, $function, $langcode = NULL);
* @param string $field
*
* @return ConditionInterface
*
* @see \Drupal\Core\Entity\Query\QueryInterface::notExists()
*/
public function notExists($field, $function, $langcode = NULL);
......
......@@ -135,6 +135,7 @@ public function sortAggregate($field, $function, $direction = 'ASC', $langcode =
* @return array
* A list of result row arrays. Each result row contains the aggregate
* results as keys and also the groupBy columns as keys:
*
* @code
* $result = $query
* ->aggregate('nid', 'count')
......
......@@ -95,6 +95,7 @@ public function getEntityTypeId();
* translation.
*
* @return $this
*
* @see \Drupal\Core\Entity\Query\andConditionGroup
* @see \Drupal\Core\Entity\Query\orConditionGroup
*/
......
......@@ -200,6 +200,7 @@ public function loadSubtreeData($id, $max_relative_depth = NULL);
* exists, the returned array will at least include it. An empty array is
* returned if the ID does not exist in the storage. An example $id (8) with
* two parents (1, 6) looks like the following:
*
* @code
* array(
* 'p1' => 1,
......
......@@ -136,6 +136,7 @@ public function registerTestNamespaces() {
* An array of tests keyed by the group name. If a test is annotated to
* belong to multiple groups, it will appear under all group keys it belongs
* to.
*
* @code
* $groups['block'] => array(
* 'Drupal\Tests\block\Functional\BlockTest' => array(
......
......@@ -151,6 +151,7 @@ public function alterLocalTasks(&$local_tasks) {
*
* @return array
* A list of arrays containing the $view and $display_id.
*
* @code
* array(
* array($view, $display_id),
......
......@@ -196,6 +196,7 @@ public static function getEnabledDisplayExtenders() {
*
* @return array
* A list of arrays containing the $view_id and $display_id.
*
* @code
* array(
* array($view_id, $display_id),
......
......@@ -47,7 +47,8 @@
<rule ref="Drupal.Commenting.DocComment">
<!-- Sniff for these errors: SpacingAfterTagGroup, WrongEnd, SpacingBetween,
ContentAfterOpen, SpacingBeforeShort, TagValueIndent, ShortStartSpace,
SpacingAfter, LongNotCapital, ShortFullStop -->
SpacingAfter, LongNotCapital, ShortFullStop, TagGroupSpacing, Empty,
TagsNotGrouped -->
<!-- ParamNotFirst still not decided for PHPUnit-based tests.
@see https://www.drupal.org/node/2253915 -->
<exclude name="Drupal.Commenting.DocComment.ParamNotFirst"/>
......
......@@ -187,6 +187,7 @@ public function testDateTimestamp($input, array $initial, array $transform) {
*
* @param \Drupal\Component\Datetime\DateTimePlus $date
* DateTimePlus to test.
*
* @input mixed $input
* The original input passed to the test method.
* @param array $initial
......
......@@ -38,6 +38,7 @@ public function testNoCoreInComponentTests() {
*
* @param $component_path
* The path to the component.
*
* @dataProvider \Drupal\Tests\Component\DrupalComponentTest::getComponents
*/
public function testComponentLicence($component_path) {
......
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