Repository navigation
Fix ECS ci. #68
Annotations
10 warnings
|
mutation / PHP 8.5-ubuntu-latest:
src/Panel/Asset/AssetCardRenderer.php#L162
Escaped Mutant for Mutator "NotIdentical":
@@ @@
{
$fileLists = [];
- if ($bundle->css !== []) {
+ if ($bundle->css === []) {
$fileLists[] = Div::tag()
->class('yii-debug-asset-files')
->html(
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Panel/Asset/AssetCardRenderer.php#L65
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
{
foreach ($summary->bundles as $candidate) {
if ($candidate->name === $depName) {
- return $candidate->id;
+
}
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Helper/Text.php#L38
Escaped Mutant for Mutator "MBString":
@@ @@
$replaced = preg_replace('/(?<!\p{Lu})\p{Lu}/u', '-\0', $name) ?? $name;
- return mb_strtolower(trim(str_replace('_', '-', $replaced), '-'), 'UTF-8');
+ return strtolower(trim(str_replace('_', '-', $replaced), '-'));
}
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Helper/Text.php#L38
Escaped Mutant for Mutator "UnwrapStrReplace":
@@ @@
$replaced = preg_replace('/(?<!\p{Lu})\p{Lu}/u', '-\0', $name) ?? $name;
- return mb_strtolower(trim(str_replace('_', '-', $replaced), '-'), 'UTF-8');
+ return mb_strtolower(trim($replaced, '-'), 'UTF-8');
}
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Helper/Dump.php#L129
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$output .= "\n{$spaces} ";
if ($outputKeys) {
- $output .= self::exportInternal($key, 0);
+ $output .= self::exportInternal($key, 1);
$output .= ' => ';
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Helper/Dump.php#L129
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
$output .= "\n{$spaces} ";
if ($outputKeys) {
- $output .= self::exportInternal($key, 0);
+ $output .= self::exportInternal($key, -1);
$output .= ' => ';
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Helper/Dump.php#L82
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
foreach (array_keys($value) as $key) {
$output .= "\n{$spaces} ";
- $output .= self::dumpInternal($key, $depth, 0);
+ $output .= self::dumpInternal($key, $depth, 1);
$output .= ' => ';
$output .= self::dumpInternal($value[$key], $depth, $level + 1);
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Helper/Dump.php#L82
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
foreach (array_keys($value) as $key) {
$output .= "\n{$spaces} ";
- $output .= self::dumpInternal($key, $depth, 0);
+ $output .= self::dumpInternal($key, $depth, -1);
$output .= ' => ';
$output .= self::dumpInternal($value[$key], $depth, $level + 1);
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Helper/Dump.php#L37
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
*
* @return string Display string.
*/
- public static function asString(mixed $value, int $depth = 10): string
+ public static function asString(mixed $value, int $depth = 11): string
{
return self::dumpInternal($value, $depth, 0);
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Helper/Dump.php#L37
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
*
* @return string Display string.
*/
- public static function asString(mixed $value, int $depth = 10): string
+ public static function asString(mixed $value, int $depth = 9): string
{
return self::dumpInternal($value, $depth, 0);
}
|