From b1c235c9cee49ef6aed4abebd7342fdc160798d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@inrae.fr>
Date: Sat, 22 Aug 2020 12:16:46 +0200
Subject: [PATCH] Ajoute "composer format" comme commande pour formatter le
 code source.

---
 composer.json | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/composer.json b/composer.json
index 197cc19..766e50b 100644
--- a/composer.json
+++ b/composer.json
@@ -49,7 +49,8 @@
     "post-create-project-cmd": "rm CUSTOMIZATION.md README.md LICENSE .docheader src/*.php tests/*.php",
     "customize-reminder": "echo 'Ne pas oublier de configurer ce template, cf. https://gitlab.irstea.fr/pole-is/tools/php-skeleton/blob/master/CUSTOMIZATION.md'",
     "phploc": "vendor/bin/phploc src tests",
-    "fix-cs": "vendor/bin/php-cs-fixer fix",
+    "format": "vendor/bin/php-cs-fixer fix",
+    "fix-cs": "@format",
     "test": [
       "@test:lint",
       "@test:php-cs-fixer",
@@ -70,7 +71,7 @@
     "test:security-checker": "test '!' -s composer.lock || vendor/bin/security-checker security:check"
   },
   "scripts-descriptions": {
-    "fix-cs": "Applique les corrections automatiques de style.",
+    "format": "Applique les corrections automatiques de style de code.",
     "phploc": "Calcule des stats sur les sources.",
     "test": "Exécute tous les tests en série.",
     "test:lint": "Vérifie la syntaxe.",
-- 
GitLab