Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit 8e159ee

Browse files
committed
Changed private static array-properties to const
1 parent a1b1698 commit 8e159ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Command/ServerLogCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
class ServerLogCommand extends Command
3232
{
33-
private static $bgColor = ['black', 'blue', 'cyan', 'green', 'magenta', 'red', 'white', 'yellow'];
33+
private const BG_COLOR = ['black', 'blue', 'cyan', 'green', 'magenta', 'red', 'white', 'yellow'];
3434

3535
private $el;
3636
private $handler;
@@ -155,7 +155,7 @@ private function displayLog(OutputInterface $output, int $clientId, array $recor
155155
if (isset($record['log_id'])) {
156156
$clientId = unpack('H*', $record['log_id'])[1];
157157
}
158-
$logBlock = sprintf('<bg=%s> </>', self::$bgColor[$clientId % 8]);
158+
$logBlock = sprintf('<bg=%s> </>', self::BG_COLOR[$clientId % 8]);
159159
$output->write($logBlock);
160160

161161
$this->handler->handle($record);

0 commit comments

Comments
 (0)