Update actions/checkout action to v4 #2869
Annotations
10 warnings
src/Block/Service/MapBlockService.php#L180
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
{
$longitude = $blockContext->getSetting('longitude');
$latitude = $blockContext->getSetting('latitude');
- if (null !== $longitude && null !== $latitude) {
+ if (null === $longitude && null !== $latitude) {
return [(float) $latitude, (float) $longitude];
}
$address = $blockContext->getSetting('address');
|
src/Block/Service/MapBlockService.php#L180
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
{
$longitude = $blockContext->getSetting('longitude');
$latitude = $blockContext->getSetting('latitude');
- if (null !== $longitude && null !== $latitude) {
+ if (null !== $longitude && null === $latitude) {
return [(float) $latitude, (float) $longitude];
}
$address = $blockContext->getSetting('address');
|
src/Block/Service/MapBlockService.php#L180
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
$longitude = $blockContext->getSetting('longitude');
$latitude = $blockContext->getSetting('latitude');
- if (null !== $longitude && null !== $latitude) {
+ if (null !== $longitude || null !== $latitude) {
return [(float) $latitude, (float) $longitude];
}
$address = $blockContext->getSetting('address');
|
src/Block/Service/MapBlockService.php#L180
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
{
$longitude = $blockContext->getSetting('longitude');
$latitude = $blockContext->getSetting('latitude');
- if (null !== $longitude && null !== $latitude) {
+ if (!(null !== $longitude) && !(null !== $latitude)) {
return [(float) $latitude, (float) $longitude];
}
$address = $blockContext->getSetting('address');
|
src/Block/Service/MapBlockService.php#L180
Escaped Mutant for Mutator "LogicalAndNegation":
--- Original
+++ New
@@ @@
{
$longitude = $blockContext->getSetting('longitude');
$latitude = $blockContext->getSetting('latitude');
- if (null !== $longitude && null !== $latitude) {
+ if (!(null !== $longitude && null !== $latitude)) {
return [(float) $latitude, (float) $longitude];
}
$address = $blockContext->getSetting('address');
|
src/Block/Service/MapBlockService.php#L181
Escaped Mutant for Mutator "CastFloat":
--- Original
+++ New
@@ @@
$longitude = $blockContext->getSetting('longitude');
$latitude = $blockContext->getSetting('latitude');
if (null !== $longitude && null !== $latitude) {
- return [(float) $latitude, (float) $longitude];
+ return [$latitude, (float) $longitude];
}
$address = $blockContext->getSetting('address');
if (!\is_string($address)) {
|
src/Block/Service/MapBlockService.php#L181
Escaped Mutant for Mutator "CastFloat":
--- Original
+++ New
@@ @@
$longitude = $blockContext->getSetting('longitude');
$latitude = $blockContext->getSetting('latitude');
if (null !== $longitude && null !== $latitude) {
- return [(float) $latitude, (float) $longitude];
+ return [(float) $latitude, $longitude];
}
$address = $blockContext->getSetting('address');
if (!\is_string($address)) {
|
src/Block/Service/MapBlockService.php#L181
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$longitude = $blockContext->getSetting('longitude');
$latitude = $blockContext->getSetting('latitude');
if (null !== $longitude && null !== $latitude) {
- return [(float) $latitude, (float) $longitude];
+ return [(float) $longitude];
}
$address = $blockContext->getSetting('address');
if (!\is_string($address)) {
|
src/DependencyInjection/NucleosMapsExtension.php#L34
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('block.php');
$loader->load('twig.php');
- $container->setAlias('nucleos_maps.geocoder', $config['geocoder']['service'])->setPublic(true);
+ $container->setAlias('nucleos_maps.geocoder', $config['geocoder']['service'])->setPublic(false);
}
}
|
src/Twig/MapsExtensions.php#L19
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
public function getFunctions() : array
{
- return [new TwigFunction('nucleos_maps_googlemap', [$this, 'renderGoogleMap'], ['is_safe' => ['html']]), new TwigFunction('nucleos_maps_openstreetmap', [$this, 'renderOpenStreetMap'], ['is_safe' => ['html']])];
+ return [new TwigFunction('nucleos_maps_openstreetmap', [$this, 'renderOpenStreetMap'], ['is_safe' => ['html']])];
}
/**
* @param float|string $latitude
|
The logs for this run have expired and are no longer available.
Loading