File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -229,18 +229,24 @@ public function testNonBlockingErrorsDoNotShowUnderSpecificCircumstances($config
229
229
*/
230
230
public static function dataSelectiveDisplayOfMessages ()
231
231
{
232
- return [
233
- 'Explain mode ' => [
232
+ $ data = [
233
+ 'Explain mode ' => [
234
234
'configArgs ' => ['-e ' ],
235
235
],
236
- 'Quiet mode ' => [
236
+ 'Quiet mode ' => [
237
237
'configArgs ' => ['-q ' ],
238
238
],
239
- 'Documentation is requested ' => [
240
- 'configArgs ' => ['--generator=text ' ],
241
- ],
242
239
];
243
240
241
+ // Setting the `--generator` arg is only supported when running `phpcs`.
242
+ if (PHP_CODESNIFFER_CBF === false ) {
243
+ $ data ['Documentation is requested ' ] = [
244
+ 'configArgs ' => ['--generator=text ' ],
245
+ ];
246
+ }
247
+
248
+ return $ data ;
249
+
244
250
}//end dataSelectiveDisplayOfMessages()
245
251
246
252
You can’t perform that action at this time.
0 commit comments