From 46a7937761922c34121a13206fd5c401f7d95644 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 23 Sep 2024 20:54:56 +0200 Subject: [PATCH] test --- app/Console/Commands/Init.php | 2 +- hooks/pre-commit | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 3c76e66c8..3c31ffad2 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -25,7 +25,7 @@ class Init extends Command public function handle() { - if (isCloud() && ! $this->option('force-cloud') ) { + if (isCloud() && ! $this->option('force-cloud')) { echo "Skipping init as we are on cloud and --force-cloud option is not set\n"; return; diff --git a/hooks/pre-commit b/hooks/pre-commit index 99c925630..353af0e09 100644 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -4,7 +4,5 @@ if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then exec < /dev/tty fi -files=$(git diff --cached --name-only --diff-filter=ACM -- '*.php'); $(pwd)/vendor/bin/pint $files -q - -git add $files +git add .