improve url creating #318
Annotations
10 warnings
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L335
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*
* @param bool $value Whether container is enabled or not.
*/
- public function withContainer(bool $value = true) : static
+ public function withContainer(bool $value = false) : static
{
$new = clone $this;
$new->withContainer = $value;
|
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L399
Escaped Mutant for Mutator "Throw_":
--- Original
+++ New
@@ @@
public function render() : string
{
if ($this->dataReader === null) {
- throw new DataReaderNotSetException();
+ new DataReaderNotSetException();
}
return $this->renderGrid();
}
|
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L461
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
}
return match ($this->withContainer) {
true => trim($contentGrid . "\n" . Div::tag()->attributes($attributes)->content("\n" . $this->renderGridTable() . "\n")->encode(false)->render()),
- false => trim($contentGrid . "\n" . $this->renderGridTable()),
};
}
private function renderGridTable() : string
|
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L469
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
}
return match ($this->withContainer) {
true => trim($contentGrid . "\n" . Div::tag()->attributes($attributes)->content("\n" . $this->renderGridTable() . "\n")->encode(false)->render()),
- false => trim($contentGrid . "\n" . $this->renderGridTable()),
+ false => trim("\n" . $contentGrid . $this->renderGridTable()),
};
}
private function renderGridTable() : string
|
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L469
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
return match ($this->withContainer) {
true => trim($contentGrid . "\n" . Div::tag()->attributes($attributes)->content("\n" . $this->renderGridTable() . "\n")->encode(false)->render()),
- false => trim($contentGrid . "\n" . $this->renderGridTable()),
+ false => trim("\n" . $this->renderGridTable()),
};
}
private function renderGridTable() : string
|
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L469
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
return match ($this->withContainer) {
true => trim($contentGrid . "\n" . Div::tag()->attributes($attributes)->content("\n" . $this->renderGridTable() . "\n")->encode(false)->render()),
- false => trim($contentGrid . "\n" . $this->renderGridTable()),
+ false => trim($contentGrid . $this->renderGridTable()),
};
}
private function renderGridTable() : string
|
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L469
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
}
return match ($this->withContainer) {
true => trim($contentGrid . "\n" . Div::tag()->attributes($attributes)->content("\n" . $this->renderGridTable() . "\n")->encode(false)->render()),
- false => trim($contentGrid . "\n" . $this->renderGridTable()),
+ false => trim($contentGrid . $this->renderGridTable() . "\n"),
};
}
private function renderGridTable() : string
|
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L469
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
return match ($this->withContainer) {
true => trim($contentGrid . "\n" . Div::tag()->attributes($attributes)->content("\n" . $this->renderGridTable() . "\n")->encode(false)->render()),
- false => trim($contentGrid . "\n" . $this->renderGridTable()),
+ false => trim($contentGrid . "\n"),
};
}
private function renderGridTable() : string
|
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L469
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
}
return match ($this->withContainer) {
true => trim($contentGrid . "\n" . Div::tag()->attributes($attributes)->content("\n" . $this->renderGridTable() . "\n")->encode(false)->render()),
- false => trim($contentGrid . "\n" . $this->renderGridTable()),
+ false => $contentGrid . "\n" . $this->renderGridTable(),
};
}
private function renderGridTable() : string
|
mutation / PHP 8.1-ubuntu-latest:
src/BaseListView.php#L480
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
}
private function renderGridTable() : string
{
- return trim(strtr($this->layoutGridTable, ['{header}' => $this->renderHeader(), '{toolbar}' => $this->toolbar, '{items}' => $this->renderItems(), '{summary}' => $this->renderSummary(), '{pager}' => $this->renderPagination()]));
+ return trim(strtr($this->layoutGridTable, ['{header}' => $this->renderHeader(), '{toolbar}' > $this->toolbar, '{items}' => $this->renderItems(), '{summary}' => $this->renderSummary(), '{pager}' => $this->renderPagination()]));
}
private function renderHeader() : string
{
|