Appearance
Pint
php
final class StanislasPoisson\DevTools\PintThe configuration of Pint of a project: the base rules of this package, and the pint.json of the project, which adds its own rules and its own exclusions.
Source: src/Pint.php
Methods
merge()
php
public static function merge(array $base, array $project): arrayThe rules of the project replace the ones of the base, and its exclusions are added to the ones of the base.
Returns array<string, mixed>
write()
php
public static function write(string $root): stringWrites the configuration that Pint has to use in the build directory of the project.
Returns string the path of the file
Throws RuntimeException when a file cannot be read or written