Timeline collector (#224) #1000
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
10 warnings
mutation / PHP 8.1-ubuntu-latest:
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
|
mutation / PHP 8.1-ubuntu-latest:
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
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L33
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
}
public function collect(object $event, string $line) : void
{
- if (!$event instanceof HttpApplicationStartup && !$event instanceof ConsoleApplicationStartup && !$this->isActive()) {
+ if (!$event instanceof HttpApplicationStartup && $event instanceof ConsoleApplicationStartup && !$this->isActive()) {
return;
}
$this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L39
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$event instanceof HttpApplicationStartup && !$event instanceof ConsoleApplicationStartup && !$this->isActive()) {
return;
}
- $this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
+ $this->events[] = ['event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
$this->timelineCollector->collect($this, spl_object_id($event), $event::class);
}
public function getSummary() : array
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L44
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
if (!$event instanceof HttpApplicationStartup && !$event instanceof ConsoleApplicationStartup && !$this->isActive()) {
return;
}
- $this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
+ $this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' > microtime(true)];
$this->timelineCollector->collect($this, spl_object_id($event), $event::class);
}
public function getSummary() : array
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L46
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
return;
}
$this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
- $this->timelineCollector->collect($this, spl_object_id($event), $event::class);
+
}
public function getSummary() : array
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L55
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['event' => ['total' => count($this->events)]];
+ return ['event' => []];
}
private function reset() : void
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L56
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['event' => ['total' => count($this->events)]];
+ return ['event' => ['total' > count($this->events)]];
}
private function reset() : void
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/ProxyLogTrait.php#L22
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
protected function logProxy(string $service, object $instance, string $method, array $arguments, $result, float $timeStart) : void
{
$error = $this->getCurrentError();
- $this->processLogData($arguments, $result, $error);
+
if ($this->config->getCollector() !== null) {
$this->logToCollector($service, $instance, $method, $arguments, $result, $error, $timeStart);
}
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/ProxyLogTrait.php#L28
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
if ($this->config->getCollector() !== null) {
$this->logToCollector($service, $instance, $method, $arguments, $result, $error, $timeStart);
}
- if ($this->config->getDispatcher() !== null) {
+ if ($this->config->getDispatcher() === null) {
$this->logToEvent($service, $instance, $method, $arguments, $result, $error, $timeStart);
}
}
|