From a595593c6b30a4c79203f28442e387c14303088d Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 8 May 2026 20:40:11 +0700 Subject: [PATCH 1/3] Add structarmed to CI --- .github/workflows/ci_build.yml | 1 + composer.json | 1 + structarmed.php | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 structarmed.php diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 30827c6..05b91c5 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -37,6 +37,7 @@ jobs: run: | bin/phpstan analyse src/ --level=max -c phpstan.neon bin/rector process --dry-run + bin/structarmed analyze - name: "Run test suite" run: "mkdir -p build/logs && bin/kahlan --coverage=4 --reporter=verbose --clover=build/logs/clover.xml" - name: Upload coverage to Codecov diff --git a/composer.json b/composer.json index ffe6990..4cfda36 100644 --- a/composer.json +++ b/composer.json @@ -32,6 +32,7 @@ "laminas/laminas-mvc": "<3.0" }, "require-dev": { + "boundwize/structarmed": "^0.0.3", "kahlan/kahlan": "^6.0", "laminas/laminas-coding-standard": "^3.0", "laminas/laminas-mvc": "^3.8", diff --git a/structarmed.php b/structarmed.php new file mode 100644 index 0000000..08eaa86 --- /dev/null +++ b/structarmed.php @@ -0,0 +1,9 @@ +withPreset(Preset::PSR4(sourcePaths: ['src', 'spec'])); \ No newline at end of file From 2d825ce848de0e0a4244db1541ad13d05b6fc3b6 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 8 May 2026 20:41:02 +0700 Subject: [PATCH 2/3] cs fix --- phpcs.xml | 2 ++ rector.php | 2 +- structarmed.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/phpcs.xml b/phpcs.xml index b00fdfa..5ebf075 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -4,4 +4,6 @@ src + rector.php + structarmed.php \ No newline at end of file diff --git a/rector.php b/rector.php index 46e137f..a51b05e 100644 --- a/rector.php +++ b/rector.php @@ -13,7 +13,7 @@ __DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/spec', - __DIR__ . '/rector.php' + __DIR__ . '/rector.php', ]) ->withRootFiles() ->withSkip([ diff --git a/structarmed.php b/structarmed.php index 08eaa86..6e95367 100644 --- a/structarmed.php +++ b/structarmed.php @@ -6,4 +6,4 @@ use Boundwize\StructArmed\Preset\Preset; return Architecture::define() - ->withPreset(Preset::PSR4(sourcePaths: ['src', 'spec'])); \ No newline at end of file + ->withPreset(Preset::PSR4(sourcePaths: ['src', 'spec'])); From 382656fb696f0d57f585e8275e2c6f149a6cc99c Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 8 May 2026 20:41:11 +0700 Subject: [PATCH 3/3] cs fix --- rector.php | 1 - 1 file changed, 1 deletion(-) diff --git a/rector.php b/rector.php index a51b05e..9b29600 100644 --- a/rector.php +++ b/rector.php @@ -13,7 +13,6 @@ __DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/spec', - __DIR__ . '/rector.php', ]) ->withRootFiles() ->withSkip([