From 2b8a3c03a6d2aa54ee2dfa9651c38ab07814bd0c Mon Sep 17 00:00:00 2001 From: dgodglue Date: Wed, 19 Nov 2025 13:40:04 +0100 Subject: [PATCH 1/4] chore: add php-cs-fixer for github workflows (pipelines) --- .github/workflows/php-code-style.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php-code-style.yml b/.github/workflows/php-code-style.yml index 77cbdf2..098aaaf 100644 --- a/.github/workflows/php-code-style.yml +++ b/.github/workflows/php-code-style.yml @@ -21,7 +21,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.4' # PHP Version - tools: phpcs # PHP CodeSniffer installieren + tools: php-cs-fixer # PHP-CS-Fixer installieren # Schritt 3: Code-Style prüfen mit PSR-12 Standard # phpcs = PHP CodeSniffer prüft den Code auf Style-Fehler @@ -30,4 +30,4 @@ jobs: # admin/*.php = Prüft alle PHP-Dateien im admin-Ordner # includes/*.php = Prüft alle PHP-Dateien im includes-Ordner - name: Check PHP Code Style (PSR-12) - run: phpcs --standard=PSR12 *.php admin/*.php includes/*.php + run: php-cs-fixer fix --config=.php-cs-fixer.dist.php --show-progress=none --diff --dry-run From c243d505e015063d5c817ffae2264a639e9ff096 Mon Sep 17 00:00:00 2001 From: Robin Wieschendorf Date: Fri, 14 Nov 2025 12:42:31 +0100 Subject: [PATCH 2/4] restore: phpcs.xml.dist --- phpcs.xml.dist | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 phpcs.xml.dist diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..8493cef --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,62 @@ + + + + PSR-12 als Basis, aber alle „logiknahen“ Regeln (Namespaces, Side Effects, + Strict Types, Typ-Decls etc.) sind deaktiviert. Es bleiben vor allem + Whitespace- und Formatierungsregeln übrig. + + + + includes/external/* + + + + + + + + + 0 + + + + 0 + + + + + 0 + + + + + 0 + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + \ No newline at end of file From 27ec84d32866a32573fbe3c6a376d2e46e367b84 Mon Sep 17 00:00:00 2001 From: dgodglue Date: Wed, 19 Nov 2025 20:45:05 +0100 Subject: [PATCH 3/4] Revert "chore: add php-cs-fixer for github workflows (pipelines)" This reverts commit 2b8a3c03a6d2aa54ee2dfa9651c38ab07814bd0c. --- .github/workflows/php-code-style.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php-code-style.yml b/.github/workflows/php-code-style.yml index 098aaaf..77cbdf2 100644 --- a/.github/workflows/php-code-style.yml +++ b/.github/workflows/php-code-style.yml @@ -21,7 +21,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.4' # PHP Version - tools: php-cs-fixer # PHP-CS-Fixer installieren + tools: phpcs # PHP CodeSniffer installieren # Schritt 3: Code-Style prüfen mit PSR-12 Standard # phpcs = PHP CodeSniffer prüft den Code auf Style-Fehler @@ -30,4 +30,4 @@ jobs: # admin/*.php = Prüft alle PHP-Dateien im admin-Ordner # includes/*.php = Prüft alle PHP-Dateien im includes-Ordner - name: Check PHP Code Style (PSR-12) - run: php-cs-fixer fix --config=.php-cs-fixer.dist.php --show-progress=none --diff --dry-run + run: phpcs --standard=PSR12 *.php admin/*.php includes/*.php From 2b1dfeb2ca7bc7c6ec7063acdfc86eb910bcf576 Mon Sep 17 00:00:00 2001 From: dgodglue Date: Wed, 19 Nov 2025 21:15:38 +0100 Subject: [PATCH 4/4] chore: explicit usage configuration file phpcs.xml.dist --- .github/workflows/php-code-style.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php-code-style.yml b/.github/workflows/php-code-style.yml index 77cbdf2..8fd863b 100644 --- a/.github/workflows/php-code-style.yml +++ b/.github/workflows/php-code-style.yml @@ -30,4 +30,4 @@ jobs: # admin/*.php = Prüft alle PHP-Dateien im admin-Ordner # includes/*.php = Prüft alle PHP-Dateien im includes-Ordner - name: Check PHP Code Style (PSR-12) - run: phpcs --standard=PSR12 *.php admin/*.php includes/*.php + run: phpcs --standard=phpcs.xml.dist *.php admin/*.php includes/*.php