clean install

This commit is contained in:
2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 changed files with 3555714 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php declare(strict_types = 1);
namespace SlevomatCodingStandard\Sniffs\Namespaces;
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;
use const T_OPEN_USE_GROUP;
class DisallowGroupUseSniff implements Sniff
{
public const CODE_DISALLOWED_GROUP_USE = 'DisallowedGroupUse';
/**
* @return array<int, (int|string)>
*/
public function register(): array
{
return [
T_OPEN_USE_GROUP,
];
}
/**
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
* @param int $usePointer
*/
public function process(File $phpcsFile, $usePointer): void
{
$phpcsFile->addError(
'Group use declaration is disallowed, use single use for every import.',
$usePointer,
self::CODE_DISALLOWED_GROUP_USE
);
}
}