Schedule CI #230
Annotations
8 warnings
Infection (ubuntu-latest, 8.3):
src/LoadTools/FastExecution.php#L52
Escaped Mutant for Mutator "Continue_":
@@ @@
foreach ($configurationFile->getToolsConfiguration() as $tool) {
if (!in_array($tool->getTool(), self::ACCELERABLE_TOOLS)) {
$tools[] = $tool;
- continue;
+ break;
}
$originalPaths = $tool->getPaths();
$modifiedFiles = $this->fileUtils->getModifiedFiles();
|
Infection (ubuntu-latest, 8.3):
src/Tools/Process/Execution/MultiProcessesExecution.php#L40
Escaped Mutant for Mutator "CastString":
@@ @@
$this->numberOfRunnedProcesses = $this->finishExecution($process, $toolName);
}
} catch (ProcessTimedOutException $th) {
- $toolName = (string) array_search($th->getProcess(), $this->processes);
+ $toolName = array_search($th->getProcess(), $this->processes);
$this->numberOfRunnedProcesses = $this->finishExecution($th->getProcess(), $toolName, $th->getMessage());
}
} while ($totalProcesses > $this->numberOfRunnedProcesses);
|
Infection (ubuntu-latest, 8.3):
src/Tools/Process/Execution/ProcessExecution.php#L20
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$this->printer->line($this->tools[$toolName]->prepareCommand());
try {
$this->startProcess($process);
- $process->wait(function ($type, $buffer) {
- $this->printer->rawLine($buffer);
- });
+
$executionTime = $this->executionTime($process->getLastOutputTime(), $process->getStartTime());
if ($process->isSuccessful()) {
$this->printer->resultSuccess($this->getSuccessString($toolName, $executionTime));
|
Infection (ubuntu-latest, 8.3):
src/Tools/Process/ProcessFake.php#L97
Escaped Mutant for Mutator "Ternary":
@@ @@
*/
public function wait(callable $callback = null): int
{
- return $this->isSuccessful ? 0 : 1;
+ return $this->isSuccessful ? 1 : 0;
}
/**
* Mocks that the process fails.
|
Infection (ubuntu-latest, 8.3):
src/Tools/Process/ProcessFake.php#L116
Escaped Mutant for Mutator "Break_":
@@ @@
foreach ($tools as $tool) {
if (preg_match("%{$tool}%", $ex[0])) {
$nameTool = $tool;
- break;
+ continue;
}
}
$this->output = "\nThe tool {$nameTool} mocks an error\n";
|
Infection (ubuntu-latest, 8.3):
src/Tools/Tool/ParallelLint.php#L49
Escaped Mutant for Mutator "Assignment":
@@ @@
}
switch ($option) {
case self::EXECUTABLE_PATH_OPTION:
- $command .= $this->args[self::EXECUTABLE_PATH_OPTION];
+ $command = $this->args[self::EXECUTABLE_PATH_OPTION];
break;
case self::PATHS:
$command .= ' ' . implode(' ', $this->args[$option]);
|
Infection (ubuntu-latest, 8.3):
src/Tools/Tool/Phpmd.php#L65
Escaped Mutant for Mutator "Concat":
@@ @@
case self::IGNORE_ERRORS_ON_EXIT:
break;
default:
- $command .= ' ' . $this->args[self::OTHER_ARGS_OPTION];
+ $command .= $this->args[self::OTHER_ARGS_OPTION] . ' ';
break;
}
}
|
Infection (ubuntu-latest, 8.3):
src/Utils/Storage.php#L48
Escaped Mutant for Mutator "FalseValue":
@@ @@
*/
public static function put($path, $contents, $lock = false)
{
- return FacadesStorage::disk(self::$disk)->put($path, $contents, $lock = false);
+ return FacadesStorage::disk(self::$disk)->put($path, $contents, $lock = true);
}
/**
* Get the contents of a file.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
CodeCoverage
Expired
|
1.36 MB |
|
GitHooks Metrics - 08-09-2024
Expired
|
1.9 MB |
|
Infection
Expired
|
158 KB |
|
PhPMetrics
Expired
|
381 KB |
|