Mark classes readonly
where possible (#284)
#182
ci.yml
on: push
Matrix: Benchmarks
Matrix: Coding Standards
Matrix: Lint composer.json
Matrix: Static Analysis
Matrix: Tests
Annotations
10 warnings
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Color.php#L62
Escaped Mutant for Mutator "Concat":
@@ @@
*/
public static function toARGB(string $rgbColor): string
{
- return 'FF' . $rgbColor;
+ return $rgbColor . 'FF';
}
/**
* Throws an exception is the color component value is outside of bounds (0 - 255).
|
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Color.php#L62
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
*/
public static function toARGB(string $rgbColor): string
{
- return 'FF' . $rgbColor;
+ return $rgbColor;
}
/**
* Throws an exception is the color component value is outside of bounds (0 - 255).
|
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Color.php#L62
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
*/
public static function toARGB(string $rgbColor): string
{
- return 'FF' . $rgbColor;
+ return 'FF';
}
/**
* Throws an exception is the color component value is outside of bounds (0 - 255).
|
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Style.php#L147
Escaped Mutant for Mutator "FalseValue":
@@ @@
public function setBorder(Border $border): self
{
$this->border = $border;
- $this->isEmpty = false;
+ $this->isEmpty = true;
return $this;
}
public function isFontBold(): bool
|
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Style.php#L160
Escaped Mutant for Mutator "TrueValue":
@@ @@
public function setFontBold(): self
{
$this->fontBold = true;
- $this->hasSetFontBold = true;
+ $this->hasSetFontBold = false;
$this->shouldApplyFont = true;
$this->isEmpty = false;
return $this;
|
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Style.php#L161
Escaped Mutant for Mutator "TrueValue":
@@ @@
{
$this->fontBold = true;
$this->hasSetFontBold = true;
- $this->shouldApplyFont = true;
+ $this->shouldApplyFont = false;
$this->isEmpty = false;
return $this;
}
|
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Style.php#L180
Escaped Mutant for Mutator "TrueValue":
@@ @@
public function setFontItalic(): self
{
$this->fontItalic = true;
- $this->hasSetFontItalic = true;
+ $this->hasSetFontItalic = false;
$this->shouldApplyFont = true;
$this->isEmpty = false;
return $this;
|
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Style.php#L181
Escaped Mutant for Mutator "TrueValue":
@@ @@
{
$this->fontItalic = true;
$this->hasSetFontItalic = true;
- $this->shouldApplyFont = true;
+ $this->shouldApplyFont = false;
$this->isEmpty = false;
return $this;
}
|
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Style.php#L182
Escaped Mutant for Mutator "FalseValue":
@@ @@
$this->fontItalic = true;
$this->hasSetFontItalic = true;
$this->shouldApplyFont = true;
- $this->isEmpty = false;
+ $this->isEmpty = true;
return $this;
}
public function hasSetFontItalic(): bool
|
Tests (ubuntu-latest, 8.3, pcov):
src/Common/Entity/Style/Style.php#L200
Escaped Mutant for Mutator "TrueValue":
@@ @@
public function setFontUnderline(): self
{
$this->fontUnderline = true;
- $this->hasSetFontUnderline = true;
+ $this->hasSetFontUnderline = false;
$this->shouldApplyFont = true;
$this->isEmpty = false;
return $this;
|