File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -370,6 +370,7 @@ public function process(File $phpcsFile, $stackPtr)
370
370
if ($ tokens [$ firstTag ]['line ' ] !== ($ tokens [$ prev ]['line ' ] + 2 )
371
371
&& isset ($ fileShort ) === false
372
372
&& in_array ($ tokens [$ firstTag ]['content ' ], ['@code ' , '@link ' , '@endlink ' ]) === false
373
+ && isset (Tokens::$ phpcsCommentTokens [$ tokens [$ prev ]['code ' ]]) === false
373
374
) {
374
375
$ error = 'There must be exactly one blank line before the tags in a doc comment ' ;
375
376
$ fix = $ phpcsFile ->addFixableError ($ error , $ firstTag , 'SpacingBeforeTags ' );
Original file line number Diff line number Diff line change @@ -1986,3 +1986,27 @@ 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
+ * An array of collected contexts for conditions.
1997
+ *
1998
+ * @var \Drupal\Component\Plugin\Context\ContextInterface[]
1999
+ */
2000
+ protected $ conditionContexts = [];
2001
+
2002
+ /**
2003
+ * {@inheritdoc}
2004
+ *
2005
+ * phpcs:ignore Drupal.Commenting.FunctionComment.MissingReturnComment
2006
+ * @return \Drupal\Core\Condition\ConditionInterface
2007
+ */
2008
+ public function &get ($ instance_id ) {
2009
+ return 'x ' ;
2010
+ }
2011
+
2012
+ }
You can’t perform that action at this time.
0 commit comments