Skip to content

Commit 6c18eaa

Browse files
committed
Variables names fixed
1 parent dcc7c8f commit 6c18eaa

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Tools/Formatter.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ class Formatter
1010
* Formatting Exceptions
1111
*
1212
* @param string $format
13-
* @param int|null $messageLimit
13+
* @param int|null $msgLengthLimit
1414
* @param string $header
1515
* @param Throwable $e
1616
* @return string
1717
*/
18-
public static function exception(string $format, ?int $messageLimit, string $header, Throwable $e): string
18+
public static function exception(string $format, ?int $msgLengthLimit, string $header, Throwable $e): string
1919
{
20-
$message = $messageLimit === null ?
20+
$message = $msgLengthLimit === null ?
2121
$e->getMessage() :
22-
static::truncateString($e->getMessage(), $messageLimit);
22+
static::truncateString($e->getMessage(), $msgLengthLimit);
2323

2424
$placeholders = [
2525
'{{header}}',
@@ -43,7 +43,7 @@ public static function exception(string $format, ?int $messageLimit, string $hea
4343
* Formatting log messages
4444
*
4545
* @param string $format
46-
* @param int|null $messageLimit
46+
* @param int|null $msgLengthLimit
4747
* @param int|null $taskId
4848
* @param string $taskType
4949
* @param string $name
@@ -53,7 +53,7 @@ public static function exception(string $format, ?int $messageLimit, string $hea
5353
*/
5454
public static function logMessage(
5555
string $format,
56-
?int $messageLimit,
56+
?int $msgLengthLimit,
5757
?int $taskId,
5858
string $taskType,
5959
string $name,
@@ -89,9 +89,9 @@ public static function logMessage(
8989
/** @var string $message */
9090
$message = str_replace($placeholders, $values, $format);
9191

92-
return $messageLimit === null ?
92+
return $msgLengthLimit === null ?
9393
$message :
94-
static::truncateString($message, $messageLimit);
94+
static::truncateString($message, $msgLengthLimit);
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)