Apply rector rules + fix CS

This commit is contained in:
2023-08-30 14:55:26 +02:00
parent d01172274d
commit 1c0fd57913
26 changed files with 50 additions and 76 deletions

View File

@@ -29,7 +29,7 @@ class AggregateStringHelper
return implode(
'|',
json_decode($value, true, 512, JSON_THROW_ON_ERROR)
json_decode((string) $value, true, 512, JSON_THROW_ON_ERROR)
);
};
}

View File

@@ -292,7 +292,7 @@ class ExportAddressHelper
return '';
}
return $this->translatableStringHelper->localize(json_decode($value, true, 512, JSON_THROW_ON_ERROR));
return $this->translatableStringHelper->localize(json_decode((string) $value, true, 512, JSON_THROW_ON_ERROR));
};
case 'isNoAddress':
@@ -351,7 +351,7 @@ class ExportAddressHelper
return '';
}
$decodedValues = json_decode($value, true, 512, JSON_THROW_ON_ERROR);
$decodedValues = json_decode((string) $value, true, 512, JSON_THROW_ON_ERROR);
return match (count($decodedValues)) {
0 => '',

View File

@@ -36,7 +36,7 @@ class TranslatableStringExportLabelHelper
return '';
}
return $this->translatableStringHelper->localize(json_decode($value, true, 512, JSON_THROW_ON_ERROR));
return $this->translatableStringHelper->localize(json_decode((string) $value, true, 512, JSON_THROW_ON_ERROR));
};
}
@@ -51,7 +51,7 @@ class TranslatableStringExportLabelHelper
return '';
}
$decoded = json_decode($value, true, 512, JSON_THROW_ON_ERROR);
$decoded = json_decode((string) $value, true, 512, JSON_THROW_ON_ERROR);
return implode(
'|',

View File

@@ -48,7 +48,7 @@ class UserHelper
return '';
}
$decoded = json_decode($value, null, 512, JSON_THROW_ON_ERROR);
$decoded = json_decode((string) $value, null, 512, JSON_THROW_ON_ERROR);
if (0 === count($decoded)) {
return '';