fix: repair PHP syntax error in heredoc closers
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Blocked by required conditions
Platform: moko-platform CI / Gate 4: Governance (push) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 3: Self-Health Check (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 4: Governance (pull_request) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (push) Successful in 2s
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Generic: Repo Health / Access control (pull_request) Successful in 2s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 5s
Universal: PR Check / Validate PR (pull_request) Successful in 6s
Generic: Repo Health / Release configuration (pull_request) Successful in 5s
Generic: Repo Health / Scripts governance (pull_request) Successful in 5s
Generic: Repo Health / Release configuration (push) Successful in 9s
Generic: Repo Health / Scripts governance (push) Successful in 10s
Generic: Repo Health / Repository health (push) Successful in 18s
Generic: Repo Health / Repository health (pull_request) Successful in 18s
Platform: moko-platform CI / Gate 1: Code Quality (pull_request) Failing after 1m3s
Platform: moko-platform CI / Gate 1: Code Quality (push) Failing after 1m4s
Platform: moko-platform CI / Gate 5: Template Integrity (pull_request) Has been skipped
Platform: moko-platform CI / Gate 5: Template Integrity (push) Has been skipped
Platform: moko-platform CI / CI Summary (push) Has been cancelled
Platform: moko-platform CI / CI Summary (pull_request) Has been cancelled

Heredoc closers must use the same whitespace type (tabs) as the body
content per PHP 7.3+ flexible heredoc rules. Also exclude the
TabsUsedHeredocCloser PHPCS rule since it conflicts with PHP syntax.

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-05-24 17:38:38 -05:00
parent 4cc3f5bee4
commit 240ae2f803
2 changed files with 9 additions and 7 deletions
+7 -7
View File
@@ -487,12 +487,12 @@ class BulkJoomlaTemplate extends CLIApp
</fields>
</config>
</extension>
XML;
XML;
$files['templateDetails.xml'] = preg_replace('/^\t\t/m', '', $files['templateDetails.xml']);
// updates.xml — dual-platform download URLs (Gitea primary, GitHub secondary)
$files['updates.xml'] = <<<XML
<updates>
<updates>
<update>
<name>{$name}</name>
<description>{$name} — Moko Consulting Joomla template</description>
@@ -511,7 +511,7 @@ class BulkJoomlaTemplate extends CLIApp
<php_minimum>8.1</php_minimum>
</update>
</updates>
XML;
XML;
$files['updates.xml'] = preg_replace('/^\t\t/m', '', $files['updates.xml']);
// src/index.php
@@ -562,7 +562,7 @@ class BulkJoomlaTemplate extends CLIApp
<jdoc:include type="modules" name="debug" style="none" />
</body>
</html>
PHP;
PHP;
$files['src/index.php'] = str_replace('TEMPLATE_SHORT_NAME', $shortName, $files['src/index.php']);
$files['src/index.php'] = preg_replace('/^\t\t/m', '', $files['src/index.php']);
@@ -599,7 +599,7 @@ class BulkJoomlaTemplate extends CLIApp
</div>
</body>
</html>
PHP;
PHP;
$files['src/error.php'] = preg_replace('/^\t\t/m', '', $files['src/error.php']);
// src/offline.php
@@ -642,7 +642,7 @@ class BulkJoomlaTemplate extends CLIApp
</div>
</body>
</html>
PHP;
PHP;
$files['src/offline.php'] = preg_replace('/^\t\t/m', '', $files['src/offline.php']);
// src/component.php
@@ -668,7 +668,7 @@ class BulkJoomlaTemplate extends CLIApp
<jdoc:include type="component" />
</body>
</html>
PHP;
PHP;
$files['src/component.php'] = preg_replace('/^\t\t/m', '', $files['src/component.php']);
// Directory keepfiles
+2
View File
@@ -30,6 +30,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
<!-- File header ordering is advisory -->
<exclude name="PSR12.Files.FileHeader.IncorrectOrder"/>
<!-- Heredoc closers must match body indentation (tabs) per PHP 7.3+ -->
<exclude name="Generic.WhiteSpace.DisallowTabIndent.TabsUsedHeredocCloser"/>
</rule>
<!-- Additional rules -->