Skip to content

Commit a84a802

Browse files
Merge branch '6.4' into 7.2
* 6.4: - CS fixes
2 parents eb2a953 + ccd60fd commit a84a802

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Dumper/HtmlDumper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -867,20 +867,20 @@ protected function style(string $style, string $value, array $attr = []): string
867867
}
868868
$label = esc(substr($value, -$attr['ellipsis']));
869869
$dumpTitle = $v."\n".$dumpTitle;
870-
$v = sprintf('<span class="%s">%s</span>', $ellipsisClass, substr($v, 0, -\strlen($label)));
870+
$v = \sprintf('<span class="%s">%s</span>', $ellipsisClass, substr($v, 0, -\strlen($label)));
871871

872872
if (!empty($attr['ellipsis-tail'])) {
873873
$tail = \strlen(esc(substr($value, -$attr['ellipsis'], $attr['ellipsis-tail'])));
874-
$v .= sprintf('<span class="%s">%s</span><span class="sf-dump-ellipsis-tail">%s</span>', $ellipsisClass, substr($label, 0, $tail), substr($label, $tail));
874+
$v .= \sprintf('<span class="%s">%s</span><span class="sf-dump-ellipsis-tail">%s</span>', $ellipsisClass, substr($label, 0, $tail), substr($label, $tail));
875875
} else {
876-
$v .= sprintf('<span class="sf-dump-ellipsis-tail">%s</span>', $label);
876+
$v .= \sprintf('<span class="sf-dump-ellipsis-tail">%s</span>', $label);
877877
}
878878
}
879879

880880
$map = static::$controlCharsMap;
881-
$v = sprintf(
881+
$v = \sprintf(
882882
'<span class=%s%s%1$s%s>%s</span>',
883-
1 === count($dumpClasses) ? '' : '"',
883+
1 === \count($dumpClasses) ? '' : '"',
884884
implode(' ', $dumpClasses),
885885
$dumpTitle ? ' title="'.$dumpTitle.'"' : '',
886886
preg_replace_callback(static::$controlCharsRx, function ($c) use ($map) {

Resources/functions/dump.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function dump(mixed ...$vars): mixed
4545
if (!function_exists('dd')) {
4646
function dd(mixed ...$vars): never
4747
{
48-
if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true) && !headers_sent()) {
48+
if (!in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true) && !headers_sent()) {
4949
header('HTTP/1.1 500 Internal Server Error');
5050
}
5151

Tests/Command/Descriptor/HtmlDescriptorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static function provideContext()
9191
[DUMPED]
9292
</section>
9393
</article>
94-
TXT
94+
TXT,
9595
];
9696

9797
yield 'source full' => [
@@ -127,7 +127,7 @@ public static function provideContext()
127127
[DUMPED]
128128
</section>
129129
</article>
130-
TXT
130+
TXT,
131131
];
132132

133133
yield 'cli' => [
@@ -155,7 +155,7 @@ public static function provideContext()
155155
[DUMPED]
156156
</section>
157157
</article>
158-
TXT
158+
TXT,
159159
];
160160

161161
yield 'request' => [
@@ -189,7 +189,7 @@ public static function provideContext()
189189
[DUMPED]
190190
</section>
191191
</article>
192-
TXT
192+
TXT,
193193
];
194194
}
195195
}

Tests/Dumper/CliDumperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public static function provideDumpArrayWithColor()
433433
\e[0;38;5;208m"\e[38;5;113mfoo\e[0;38;5;208m" => "\e[1;38;5;113mbar\e[0;38;5;208m"\e[m
434434
\e[0;38;5;208m]\e[m
435435
436-
EOTXT
436+
EOTXT,
437437
];
438438

439439
yield [[], AbstractDumper::DUMP_LIGHT_ARRAY, "\e[0;38;5;208m[]\e[m\n"];
@@ -446,7 +446,7 @@ public static function provideDumpArrayWithColor()
446446
\e[0;38;5;208m"\e[38;5;113mfoo\e[0;38;5;208m" => "\e[1;38;5;113mbar\e[0;38;5;208m"\e[m
447447
\e[0;38;5;208m]\e[m
448448
449-
EOTXT
449+
EOTXT,
450450
];
451451

452452
yield [[], 0, "\e[0;38;5;208m[]\e[m\n"];

0 commit comments

Comments
 (0)