Continuous Integration #2905
continuous-integration.yml
on: create
run
/
Generate test matrix
4s
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Lint symfony container
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / Lint twig files
Matrix: run / Lint XLIFF files
Matrix: run / Lint YML files
Matrix: run / tests
Annotations
10 warnings
run / Mutation Tests (8.2):
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');
|
run / Mutation Tests (8.2):
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');
|
run / Mutation Tests (8.2):
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');
|
run / Mutation Tests (8.2):
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');
|
run / Mutation Tests (8.2):
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');
|
run / Mutation Tests (8.2):
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)) {
|
run / Mutation Tests (8.2):
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)) {
|
run / Mutation Tests (8.2):
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)) {
|
run / Mutation Tests (8.2):
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);
}
}
|
run / Mutation Tests (8.2):
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
|