Skip to content

improve gridview table attrs #282

improve gridview table attrs

improve gridview table attrs #282

Triggered via push November 22, 2023 12:58
Status Success
Total duration 1m 46s
Artifacts

mutation.yml

on: push
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

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#L395
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#L459
Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ } return match ($this->withContainer) { true => trim($contentGrid . PHP_EOL . Div::tag()->attributes($attributes)->content(PHP_EOL . $this->renderGridTable() . PHP_EOL)->encode(false)->render()), - false => trim($contentGrid . PHP_EOL . $this->renderGridTable()), }; } private function renderGridTable() : string
mutation / PHP 8.1-ubuntu-latest: src/BaseListView.php#L467
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } return match ($this->withContainer) { true => trim($contentGrid . PHP_EOL . Div::tag()->attributes($attributes)->content(PHP_EOL . $this->renderGridTable() . PHP_EOL)->encode(false)->render()), - false => trim($contentGrid . PHP_EOL . $this->renderGridTable()), + false => trim(PHP_EOL . $contentGrid . $this->renderGridTable()), }; } private function renderGridTable() : string
mutation / PHP 8.1-ubuntu-latest: src/BaseListView.php#L467
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } return match ($this->withContainer) { true => trim($contentGrid . PHP_EOL . Div::tag()->attributes($attributes)->content(PHP_EOL . $this->renderGridTable() . PHP_EOL)->encode(false)->render()), - false => trim($contentGrid . PHP_EOL . $this->renderGridTable()), + false => trim(PHP_EOL . $this->renderGridTable()), }; } private function renderGridTable() : string
mutation / PHP 8.1-ubuntu-latest: src/BaseListView.php#L467
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } return match ($this->withContainer) { true => trim($contentGrid . PHP_EOL . Div::tag()->attributes($attributes)->content(PHP_EOL . $this->renderGridTable() . PHP_EOL)->encode(false)->render()), - false => trim($contentGrid . PHP_EOL . $this->renderGridTable()), + false => trim($contentGrid . $this->renderGridTable()), }; } private function renderGridTable() : string
mutation / PHP 8.1-ubuntu-latest: src/BaseListView.php#L467
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } return match ($this->withContainer) { true => trim($contentGrid . PHP_EOL . Div::tag()->attributes($attributes)->content(PHP_EOL . $this->renderGridTable() . PHP_EOL)->encode(false)->render()), - false => trim($contentGrid . PHP_EOL . $this->renderGridTable()), + false => trim($contentGrid . $this->renderGridTable() . PHP_EOL), }; } private function renderGridTable() : string
mutation / PHP 8.1-ubuntu-latest: src/BaseListView.php#L467
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } return match ($this->withContainer) { true => trim($contentGrid . PHP_EOL . Div::tag()->attributes($attributes)->content(PHP_EOL . $this->renderGridTable() . PHP_EOL)->encode(false)->render()), - false => trim($contentGrid . PHP_EOL . $this->renderGridTable()), + false => trim($contentGrid . PHP_EOL), }; } private function renderGridTable() : string
mutation / PHP 8.1-ubuntu-latest: src/BaseListView.php#L467
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ } return match ($this->withContainer) { true => trim($contentGrid . PHP_EOL . Div::tag()->attributes($attributes)->content(PHP_EOL . $this->renderGridTable() . PHP_EOL)->encode(false)->render()), - false => trim($contentGrid . PHP_EOL . $this->renderGridTable()), + false => $contentGrid . PHP_EOL . $this->renderGridTable(), }; } private function renderGridTable() : string
mutation / PHP 8.1-ubuntu-latest: src/BaseListView.php#L478
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 {