Skip to content

Commit 09330fb

Browse files
Fix phpcs line length warnings in debug logging
- Break long logger->debug() calls into multiple lines to stay under 120 character limit - Improve code readability while maintaining functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent db43e0c commit 09330fb

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/Terminus.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,10 @@ private function setupSignalHandlers(): void
566566
public function handleSignal(int $signal): void
567567
{
568568
$this->logger->notice('Received signal {signal}, performing cleanup...', ['signal' => $signal]);
569-
$this->logger->debug('Signal handler called with {count} cleanup handlers registered', ['count' => count($this->cleanup_handlers)]);
569+
$this->logger->debug(
570+
'Signal handler called with {count} cleanup handlers registered',
571+
['count' => count($this->cleanup_handlers)]
572+
);
570573

571574
$this->cleanup();
572575

@@ -593,7 +596,10 @@ public static function getInstance(): ?self
593596
public function registerCleanupHandler(callable $handler): void
594597
{
595598
$this->cleanup_handlers[] = $handler;
596-
$this->logger->debug('Cleanup handler registered. Total handlers: {count}', ['count' => count($this->cleanup_handlers)]);
599+
$this->logger->debug(
600+
'Cleanup handler registered. Total handlers: {count}',
601+
['count' => count($this->cleanup_handlers)]
602+
);
597603
}
598604

599605
/**
@@ -611,7 +617,10 @@ private function cleanup(): void
611617
call_user_func($handler);
612618
$this->logger->debug('Cleanup handler {index} completed successfully', ['index' => $index]);
613619
} catch (\Exception $e) {
614-
$this->logger->error('Error in cleanup handler {index}: {message}', ['index' => $index, 'message' => $e->getMessage()]);
620+
$this->logger->error(
621+
'Error in cleanup handler {index}: {message}',
622+
['index' => $index, 'message' => $e->getMessage()]
623+
);
615624
}
616625
}
617626

0 commit comments

Comments
 (0)