diff --git a/.githooks/pre-commit.sh b/.githooks/pre-commit.sh index 8646103..1fae951 100755 --- a/.githooks/pre-commit.sh +++ b/.githooks/pre-commit.sh @@ -1,4 +1,4 @@ #!/bin/bash -composer pre-commit +make cs-check test exit $? diff --git a/php-cs-fixer/config.php b/php-cs-fixer/config.php deleted file mode 100644 index d9f6cfd..0000000 --- a/php-cs-fixer/config.php +++ /dev/null @@ -1,31 +0,0 @@ -setFinder($output); - -if (\count($output) > 0) { - echo 'Gonna check these files for code style errors:' . \PHP_EOL; - foreach ($output as $file) { - echo $file->getFilename() . \PHP_EOL; - } -} else { - echo "No PHP files to check."; -} -echo \PHP_EOL; - -return $config;