CI #223
Annotations
10 warnings
Infection PHP:
src/FormMonitor/SignalFormExtractor.php#L25
Escaped Mutant for Mutator "LessThan":
@@ @@
public function extractForm(Presenter $presenter): void
{
$signal = $presenter->getSignal();
- if ($signal === null || count($signal) < 2) {
+ if ($signal === null || count($signal) <= 2) {
return;
}
array_pop($signal);
|
Infection PHP:
src/FormMonitor/SignalFormExtractor.php#L25
Escaped Mutant for Mutator "LessThanNegotiation":
@@ @@
public function extractForm(Presenter $presenter): void
{
$signal = $presenter->getSignal();
- if ($signal === null || count($signal) < 2) {
+ if ($signal === null || count($signal) >= 2) {
return;
}
array_pop($signal);
|
Infection PHP:
src/FormMonitor/Tracy/FormMonitorPanel.php#L53
Escaped Mutant for Mutator "Foreach_":
@@ @@
private function getErrors(): array
{
$errors = [];
- foreach ($this->formStack->getAll() as $name => $form) {
+ foreach ([] as $name => $form) {
$formErrors = $this->errorExtractor->getErrors($form);
if ($formErrors !== []) {
$errors[$name] = $formErrors;
|
Infection PHP:
src/FormMonitor/Tracy/FormMonitorPanel.php#L56
Escaped Mutant for Mutator "NotIdentical":
@@ @@
$errors = [];
foreach ($this->formStack->getAll() as $name => $form) {
$formErrors = $this->errorExtractor->getErrors($form);
- if ($formErrors !== []) {
+ if ($formErrors === []) {
$errors[$name] = $formErrors;
}
}
|
Infection PHP:
src/FormMonitor/Tracy/FormMonitorPanel.php#L61
Escaped Mutant for Mutator "ArrayOneItem":
@@ @@
$errors[$name] = $formErrors;
}
}
- return $errors;
+ return count($errors) > 1 ? array_slice($errors, 0, 1, true) : $errors;
}
}
|
Infection PHP:
src/Inspector/DI/InspectorExtension.php#L31
Escaped Mutant for Mutator "FalseValue":
@@ @@
private ServiceDefinition $inspectorDefinition;
public function getConfigSchema(): Schema
{
- return Expect::structure(['_dev' => Expect::bool(false), 'enabled' => Expect::bool(false)]);
+ return Expect::structure(['_dev' => Expect::bool(true), 'enabled' => Expect::bool(false)]);
}
public function loadConfiguration(): void
{
|
Infection PHP:
src/Inspector/DI/InspectorExtension.php#L32
Escaped Mutant for Mutator "FalseValue":
@@ @@
private ServiceDefinition $inspectorDefinition;
public function getConfigSchema(): Schema
{
- return Expect::structure(['_dev' => Expect::bool(false), 'enabled' => Expect::bool(false)]);
+ return Expect::structure(['_dev' => Expect::bool(false), 'enabled' => Expect::bool(true)]);
}
public function loadConfiguration(): void
{
|
Infection PHP:
src/Inspector/DI/InspectorExtension.php#L38
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function loadConfiguration(): void
{
- parent::loadConfiguration();
+
$builder = $this->getContainerBuilder();
$config = $this->config;
if (!$config->enabled) {
|
Infection PHP:
src/Inspector/DI/InspectorExtension.php#L49
Escaped Mutant for Mutator "FalseValue":
@@ @@
if (!$config->enabled) {
return;
}
- $this->inspectorDefinition = $builder->addDefinition($this->prefix('inspector'))->setFactory(Inspector::class)->setAutowired(false);
+ $this->inspectorDefinition = $builder->addDefinition($this->prefix('inspector'))->setFactory(Inspector::class)->setAutowired(true);
}
public function beforeCompile(): void
{
|
Infection PHP:
src/Inspector/DI/InspectorExtension.php#L54
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function beforeCompile(): void
{
- parent::beforeCompile();
+
$builder = $this->getContainerBuilder();
$config = $this->config;
if (!$config->enabled) {
|
Loading