Simplify if-else blocks in code #130
Annotations
3 warnings
tests (8.3, false):
src/Builder.php#L128
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function shiftedAlternateHandling() : self
{
- $this->collator->setAttribute(Collator::ALTERNATE_HANDLING, Collator::SHIFTED);
+
return $this;
}
/**
|
tests (8.2, false):
src/Builder.php#L128
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function shiftedAlternateHandling() : self
{
- $this->collator->setAttribute(Collator::ALTERNATE_HANDLING, Collator::SHIFTED);
+
return $this;
}
/**
|
tests (8.4, --ignore-platform-reqs, true):
src/Builder.php#L128
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function shiftedAlternateHandling() : self
{
- $this->collator->setAttribute(Collator::ALTERNATE_HANDLING, Collator::SHIFTED);
+
return $this;
}
/**
|