File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,7 @@ public function process(File $phpcsFile, $stackPtr)
363
363
if ($ tokens [$ firstTag ]['line ' ] !== ($ tokens [$ prev ]['line ' ] + 2 )
364
364
&& isset ($ fileShort ) === false
365
365
&& in_array ($ tokens [$ firstTag ]['content ' ], ['@code ' , '@link ' , '@endlink ' ]) === false
366
+ && isset (Tokens::$ phpcsCommentTokens [$ tokens [$ prev ]['code ' ]]) === false
366
367
) {
367
368
$ error = 'There must be exactly one blank line before the tags in a doc comment ' ;
368
369
$ fix = $ phpcsFile ->addFixableError ($ error , $ firstTag , 'SpacingBeforeTags ' );
Original file line number Diff line number Diff line change @@ -1986,3 +1986,20 @@ protected function getFallbackPluginId($plugin_id, array $configuration = []) {
1986
1986
}
1987
1987
1988
1988
}
1989
+
1990
+ /**
1991
+ * Provides a collection of condition plugins.
1992
+ */
1993
+ class ConditionPluginCollection extends DefaultLazyPluginCollection {
1994
+
1995
+ /**
1996
+ * {@inheritdoc}
1997
+ *
1998
+ * phpcs:ignore Drupal.Commenting.FunctionComment.MissingReturnComment
1999
+ * @return \Drupal\Core\Condition\ConditionInterface
2000
+ */
2001
+ public function &get ($ instance_id ) {
2002
+ return 'x ' ;
2003
+ }
2004
+
2005
+ }
You can’t perform that action at this time.
0 commit comments