From 1788f68ec45492ae9eab9e576aea4f5efd2a13b5 Mon Sep 17 00:00:00 2001
From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com>
Date: Tue, 27 Feb 2024 18:57:54 -0300
Subject: [PATCH] Add ECS script to composer.json and update testing.md. (#11)

---
 composer.json   | 1 +
 docs/testing.md | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/composer.json b/composer.json
index c939095..d2ecb85 100644
--- a/composer.json
+++ b/composer.json
@@ -42,6 +42,7 @@
     },
     "scripts": {
         "check-dependencies": "composer-require-checker",
+        "ecs": "ecs check",
         "phpstan": "phpstan",
         "test": "phpunit"
     },
diff --git a/docs/testing.md b/docs/testing.md
index 46a4946..b92ab9a 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -10,6 +10,15 @@ To run the checker, execute the following command:
 composer run check-dependencies
 ```
 
+## Easy coding standard
+
+The code is checked with [Easy Coding Standard](https://github.com/easy-coding-standard/easy-coding-standard) and
+[PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer). To run it:
+
+```shell
+composer run ecs
+```
+
 ## Static analysis
 
 The code is statically analyzed with [Phpstan](https://phpstan.org/). To run static analysis: