client: dev-tools: lib_linter: php-cs-fixer: add init

php-cs-fixer's 3.92 series requires `init` before `fix`ing or `check`ing
This commit is contained in:
2026-01-14 17:25:58 -08:00
parent d28f7649c4
commit 76755f1032

View File

@@ -2,7 +2,7 @@
# docker-finance | modern accounting for the power-user # docker-finance | modern accounting for the power-user
# #
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC) # Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC)
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@@ -212,7 +212,8 @@ function lib_linter::__lint_php()
if [ -z "${_path[*]}" ]; then if [ -z "${_path[*]}" ]; then
# Do all # Do all
lib_docker::__docker_compose exec -it docker-finance /bin/bash -i -c \ lib_docker::__docker_compose exec -it docker-finance /bin/bash -i -c \
"$_php_cs_fixer $DOCKER_FINANCE_CLIENT_REPO && $_php_cs_fixer $DOCKER_FINANCE_CLIENT_PLUGINS \ "php-cs-fixer -n init \
&& $_php_cs_fixer $DOCKER_FINANCE_CLIENT_REPO && $_php_cs_fixer $DOCKER_FINANCE_CLIENT_PLUGINS \
&& $_phpstan $DOCKER_FINANCE_CLIENT_REPO $DOCKER_FINANCE_CLIENT_PLUGINS" && $_phpstan $DOCKER_FINANCE_CLIENT_REPO $DOCKER_FINANCE_CLIENT_PLUGINS"
else else
# Do only given file(s) # Do only given file(s)