From 3972e4fb84e9f17fc09ff7f69391477a758b032c Mon Sep 17 00:00:00 2001 From: Jonathan Miller <1+jmiller@noreply.git.mokoconsulting.tech> Date: Sat, 4 Jul 2026 20:27:49 +0000 Subject: [PATCH 1/2] fix: remove shebang from RecoverySuggestion.php (PSR-12) A library class file must open with -- 2.52.0 From 8d772df3e7d22dc66cd567ce97aefbc0e36e33a9 Mon Sep 17 00:00:00 2001 From: Jonathan Miller <1+jmiller@noreply.git.mokoconsulting.tech> Date: Sat, 4 Jul 2026 20:35:50 +0000 Subject: [PATCH 2/2] fix: wrap over-length line in RecoverySuggestion.php (PSR-12) The forMissingHeader() return was 177 chars, exceeding the 150-char limit (Generic.Files.LineLength) that Gate 1 enforces as an error. Split it across concatenated lines; output is unchanged. (Also keeps the earlier shebang removal.) --- lib/Enterprise/RecoverySuggestion.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Enterprise/RecoverySuggestion.php b/lib/Enterprise/RecoverySuggestion.php index b036e2c..b844144 100644 --- a/lib/Enterprise/RecoverySuggestion.php +++ b/lib/Enterprise/RecoverySuggestion.php @@ -75,7 +75,9 @@ class RecoverySuggestion */ public static function forMissingHeader(string $file): string { - return "Add SPDX license header to {$file}:\n /* Copyright (C) 2026 Moko Consulting \n * SPDX-License-Identifier: GPL-3.0-or-later */"; + return "Add SPDX license header to {$file}:\n" + . " /* Copyright (C) 2026 Moko Consulting \n" + . " * SPDX-License-Identifier: GPL-3.0-or-later */"; } /** -- 2.52.0