mirror of
https://github.com/NamelessMC/Nameless
synced 2026-08-18 06:29:04 -04:00
* Create StyleCI config file * Disable `phpdoc_separation` * Apply fixes from StyleCI (#3476) Co-authored-by: StyleCI Bot <bot@styleci.io> * style: styleci fixes --------- Co-authored-by: StyleCI Bot <bot@styleci.io> Co-authored-by: Sam <samerton@users.noreply.github.com>
22 lines
367 B
PHP
22 lines
367 B
PHP
<?php
|
|
|
|
if (PHP_SAPI !== 'cli') {
|
|
die('This script must be run from the command line.');
|
|
}
|
|
|
|
const ROOT_PATH = __DIR__ . '/../..';
|
|
require ROOT_PATH . '/vendor/autoload.php';
|
|
|
|
$errors = IntegrityChecker::verifyChecksums();
|
|
|
|
if (count($errors) === 0) {
|
|
echo "No errors found!\n";
|
|
|
|
return;
|
|
}
|
|
|
|
foreach ($errors as $error) {
|
|
echo $error . "\n";
|
|
}
|
|
|
|
exit(1);
|