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 .