PoC array like routes #902
Annotations
1 error and 10 warnings
Run roave infection.
Process completed with exit code 1.
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function execute(InputInterface $input, OutputInterface $output) : int
{
- $this->debugger->stop();
+
$io = new SymfonyStyle($input, $output);
if ($input->hasArgument('route') && !empty($input->getArgument('route'))) {
/**
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L49
Escaped Mutant for Mutator "CastArray":
--- Original
+++ New
@@ @@
/**
* @var string[] $routes
*/
- $routes = (array) $input->getArgument('route');
+ $routes = $input->getArgument('route');
foreach ($routes as $route) {
$route = $this->routeCollection->getRoute($route);
$data = $route->__debugInfo();
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L61
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$action = array_pop($middlewareDefinitions);
$middlewares = $middlewareDefinitions;
}
- $io->title($data['name']);
+
$definitionList = [['Methods' => $this->export($data['methods'])], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
if (!empty($action)) {
$definitionList[] = ['Action' => $this->export($action)];
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L62
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$middlewares = $middlewareDefinitions;
}
$io->title($data['name']);
- $definitionList = [['Methods' => $this->export($data['methods'])], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
+ $definitionList = [['Name' => $data['name']], ['Pattern' => $data['pattern']]];
if (!empty($action)) {
$definitionList[] = ['Action' => $this->export($action)];
}
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L63
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
$middlewares = $middlewareDefinitions;
}
$io->title($data['name']);
- $definitionList = [['Methods' => $this->export($data['methods'])], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
+ $definitionList = [['Methods' > $this->export($data['methods'])], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
if (!empty($action)) {
$definitionList[] = ['Action' => $this->export($action)];
}
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L63
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$middlewares = $middlewareDefinitions;
}
$io->title($data['name']);
- $definitionList = [['Methods' => $this->export($data['methods'])], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
+ $definitionList = [[], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
if (!empty($action)) {
$definitionList[] = ['Action' => $this->export($action)];
}
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L64
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$middlewares = $middlewareDefinitions;
}
$io->title($data['name']);
- $definitionList = [['Methods' => $this->export($data['methods'])], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
+ $definitionList = [['Methods' => $this->export($data['methods'])], [], ['Pattern' => $data['pattern']]];
if (!empty($action)) {
$definitionList[] = ['Action' => $this->export($action)];
}
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L65
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$middlewares = $middlewareDefinitions;
}
$io->title($data['name']);
- $definitionList = [['Methods' => $this->export($data['methods'])], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
+ $definitionList = [['Methods' => $this->export($data['methods'])], ['Name' => $data['name']], []];
if (!empty($action)) {
$definitionList[] = ['Action' => $this->export($action)];
}
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L67
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
}
$io->title($data['name']);
$definitionList = [['Methods' => $this->export($data['methods'])], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
- if (!empty($action)) {
+ if (empty($action)) {
$definitionList[] = ['Action' => $this->export($action)];
}
if (!empty($data['defaults'])) {
|
Run roave infection.:
src/Debug/DebugRoutesCommand.php#L68
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
$io->title($data['name']);
$definitionList = [['Methods' => $this->export($data['methods'])], ['Name' => $data['name']], ['Pattern' => $data['pattern']]];
if (!empty($action)) {
- $definitionList[] = ['Action' => $this->export($action)];
+ $definitionList[] = ['Action' > $this->export($action)];
}
if (!empty($data['defaults'])) {
$definitionList[] = ['Defaults' => $this->export($data['defaults'])];
|
The logs for this run have expired and are no longer available.
Loading