Skip to content

Commit 2aff48e

Browse files
Cleanup fix cs
1 parent 01ddcbc commit 2aff48e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Classes/Plugin.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ protected function buildScriptOptions(): string
432432
}
433433

434434
foreach ($_COOKIE as $cookieName => $cookieValue) {
435-
$paramsString .= ' --cookie '.escapeshellarg($cookieName).' '.escapeshellarg((string) $cookieValue);
435+
$paramsString .= ' --cookie '.escapeshellarg((string) $cookieName).' '.escapeshellarg((string) $cookieValue);
436436
}
437437

438438
return $paramsString;
@@ -460,20 +460,20 @@ protected function processStdWraps(array $tsSettings): array
460460
{
461461
// Get TS values and process stdWrap properties
462462
foreach ($tsSettings as $key => $value) {
463-
if (str_ends_with($key, '.')) {
464-
$key = substr($key, 0, -1);
463+
if (str_ends_with((string) $key, '.')) {
464+
$key = substr((string) $key, 0, -1);
465465
}
466466

467467
if (
468468
(
469-
str_ends_with($key, '.')
470-
&& !array_key_exists(substr($key, 0, -1), $tsSettings)
469+
str_ends_with((string) $key, '.')
470+
&& !array_key_exists(substr((string) $key, 0, -1), $tsSettings)
471471
)
472472
|| (
473-
!str_ends_with($key, '.')
473+
!str_ends_with((string) $key, '.')
474474
&& array_key_exists($key.'.', $tsSettings)
475475
)
476-
&& !str_contains($key, 'scriptParams')
476+
&& !str_contains((string) $key, 'scriptParams')
477477
) {
478478
$tsSettings[$key] = $this->contentObjectRenderer->stdWrap($value, $tsSettings[$key.'.']);
479479

0 commit comments

Comments
 (0)