Fix #218: Add ability to set page size #537
Annotations
10 warnings
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L58
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
if ($tag === '') {
throw new InvalidArgumentException('Tag name cannot be empty.');
}
- $new = clone $this;
+ $new = $this;
$new->listTag = $tag;
return $new;
}
|
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L65
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
}
public final function listAttributes(array $attributes) : static
{
- $new = clone $this;
+ $new = $this;
$new->listAttributes = $attributes;
return $new;
}
|
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L76
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
if ($tag === '') {
throw new InvalidArgumentException('Tag name cannot be empty.');
}
- $new = clone $this;
+ $new = $this;
$new->itemTag = $tag;
return $new;
}
|
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L83
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
}
public final function itemAttributes(array $attributes) : static
{
- $new = clone $this;
+ $new = $this;
$new->itemAttributes = $attributes;
return $new;
}
|
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L90
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
}
public final function linkAttributes(array $attributes) : static
{
- $new = clone $this;
+ $new = $this;
$new->linkAttributes = $attributes;
return $new;
}
|
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L97
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
}
public final function currentItemClass(?string $class) : static
{
- $new = clone $this;
+ $new = $this;
$new->currentItemClass = $class;
return $new;
}
|
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L111
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
}
public final function disabledItemClass(?string $class) : static
{
- $new = clone $this;
+ $new = $this;
$new->disabledItemClass = $class;
return $new;
}
|
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L128
Escaped Mutant for Mutator "Assignment":
--- Original
+++ New
@@ @@
{
$result = '';
if ($this->containerTag !== null) {
- $result .= Html::openTag($this->containerTag, $this->containerAttributes) . "\n";
+ $result = Html::openTag($this->containerTag, $this->containerAttributes) . "\n";
}
if ($this->listTag !== null) {
$result .= Html::openTag($this->listTag, $this->listAttributes) . "\n";
|
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L146
Escaped Mutant for Mutator "Assignment":
--- Original
+++ New
@@ @@
if ($item->isCurrent) {
Html::addCssClass($attributes, $this->currentItemClass);
}
- $html .= Html::openTag($this->itemTag, $attributes);
+ $html = Html::openTag($this->itemTag, $attributes);
}
$attributes = $this->linkAttributes;
if ($item->isDisabled) {
|
mutation / PHP 8.2-ubuntu-latest:
src/BasePagination.php#L151
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
$attributes = $this->linkAttributes;
if ($item->isDisabled) {
- Html::addCssClass($attributes, $this->disabledLinkClass);
+
}
if ($item->isCurrent) {
Html::addCssClass($attributes, $this->currentLinkClass);
|