Psalm 1 (#267) #1232
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run roave infection.:
src/Collector/CollectorTrait.php#L18
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function shutdown() : void
{
- $this->reset();
+
$this->isActive = false;
}
public function getName() : string
|
Run roave infection.:
src/Collector/CollectorTrait.php#L19
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
public function shutdown() : void
{
$this->reset();
- $this->isActive = false;
+ $this->isActive = true;
}
public function getName() : string
{
|
Run roave infection.:
src/Collector/Console/CommandCollector.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return;
}
- $this->timelineCollector->collect($this, spl_object_id($event));
+
$command = $event->getCommand();
if ($event instanceof ConsoleErrorEvent) {
$this->commands[$event::class] = ['name' => $event->getInput()->getFirstArgument() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'error' => $event->getError()->getMessage(), 'exitCode' => $event->getExitCode()];
|
Run roave infection.:
src/Collector/Console/CommandCollector.php#L78
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
return;
}
if ($event instanceof ConsoleTerminateEvent) {
- $this->commands[$event::class] = ['name' => $command?->getName() ?? $event->getInput()->getFirstArgument() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'exitCode' => $event->getExitCode()];
+ $this->commands[$event::class] = ['name' => $event->getInput()->getFirstArgument() ?? $command?->getName() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'exitCode' => $event->getExitCode()];
return;
}
$definition = $command?->getDefinition();
|
Run roave infection.:
src/Collector/Console/CommandCollector.php#L89
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
return;
}
$definition = $command?->getDefinition();
- $this->commands[$event::class] = ['name' => $command?->getName() ?? $event->getInput()->getFirstArgument() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'arguments' => $definition?->getArguments() ?? [], 'options' => $definition?->getOptions() ?? []];
+ $this->commands[$event::class] = ['name' => $event->getInput()->getFirstArgument() ?? $command?->getName() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'arguments' => $definition?->getArguments() ?? [], 'options' => $definition?->getOptions() ?? []];
}
public function getSummary() : array
{
|
Run roave infection.:
src/Collector/Console/CommandCollector.php#L121
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if ($commandEvent === null) {
return [];
}
- return ['command' => ['name' => $commandEvent['name'], 'class' => $commandEvent['command'] instanceof Command ? $commandEvent['command']::class : null, 'input' => $commandEvent['input'], 'exitCode' => $commandEvent['exitCode'] ?? self::UNDEFINED_EXIT_CODE]];
+ return ['command' => ['class' => $commandEvent['command'] instanceof Command ? $commandEvent['command']::class : null, 'input' => $commandEvent['input'], 'exitCode' => $commandEvent['exitCode'] ?? self::UNDEFINED_EXIT_CODE]];
}
private function reset() : void
{
|
Run roave infection.:
src/Collector/Console/ConsoleAppInfoCollector.php#L36
Escaped Mutant for Mutator "Minus":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()];
+ return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped + $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()];
}
public function collect(object $event) : void
{
|
Run roave infection.:
src/Collector/Console/ConsoleAppInfoCollector.php#L37
Escaped Mutant for Mutator "Minus":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()];
+ return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted + $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()];
}
public function collect(object $event) : void
{
|
Run roave infection.:
src/Collector/Console/ConsoleAppInfoCollector.php#L38
Escaped Mutant for Mutator "Minus":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()];
+ return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped + $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()];
}
public function collect(object $event) : void
{
|
Run roave infection.:
src/Collector/Console/ConsoleAppInfoCollector.php#L39
Escaped Mutant for Mutator "Minus":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()];
+ return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped + $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()];
}
public function collect(object $event) : void
{
|
Loading