schneespur/vendor/brick/math/tools/ecs/ecs.php
Michael 2c63440ed8 Revert: move code back to project root from schneespur/ subdirectory
- Reverts the schneespur/ subdirectory restructure (b8e426b)
- Restores package.json and vite.config.js (needed for npm build, were
  removed in an earlier cleanup before the restructure)
- Updates public/build/ assets with current Vite output (new content hashes)
2026-05-17 18:24:26 +00:00

33 lines
969 B
PHP

<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\ClassNotation\OrderedTypesFixer;
use PhpCsFixer\Fixer\Phpdoc\PhpdocTypesOrderFixer;
use SlevomatCodingStandard\Sniffs\Whitespaces\DuplicateSpacesSniff;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->import(__DIR__ . '/vendor/brick/coding-standard/ecs.php');
$libRootPath = realpath(__DIR__ . '/../..');
$ecsConfig->paths(
[
$libRootPath . '/src',
$libRootPath . '/tests',
$libRootPath . '/phpunit.php',
$libRootPath . '/random-tests.php',
__FILE__,
],
);
$ecsConfig->skip([
// Allows alignment in test providers
DuplicateSpacesSniff::class => [$libRootPath . '/tests'],
// We want to keep BigNumber|int|float|string order
OrderedTypesFixer::class => null,
PhpdocTypesOrderFixer::class => null,
]);
};