Skip to content

Commit f0cf499

Browse files
committed
Fix PHPCS: use statement for namespaced class
1 parent b388816 commit f0cf499

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/Sniffs/DrupalRulesetTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

7+
use Drupal\Sniffs\ControlStructures\InlineControlStructureSniff;
8+
79
/**
810
* Tests inherits from Drupal ruleset.
911
*/
@@ -18,7 +20,7 @@ public function testMissing(): void {
1820
$report = self::checkFile(__DIR__ . '/fixtures/DrupalRulesetError.php');
1921
self::assertSame(2, $report->getErrorCount());
2022
// Sniff removed in drupal/coder 9.x.
21-
$inlineControlSniff = \class_exists(\Drupal\Sniffs\ControlStructures\InlineControlStructureSniff::class)
23+
$inlineControlSniff = \class_exists(InlineControlStructureSniff::class)
2224
? 'Drupal.ControlStructures.InlineControlStructure'
2325
: 'Generic.ControlStructures.InlineControlStructure';
2426
self::assertSniffError($report, 5, sniffName: $inlineControlSniff, code: 'NotAllowed');

0 commit comments

Comments
 (0)