Fix docs #245
Annotations
10 warnings
Run roave infection.:
src/ContentDispositionHeader.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
public static function value(string $type, ?string $fileName = null) : string
{
if (!in_array($type, [self::INLINE, self::ATTACHMENT])) {
- throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . self::INLINE . '".');
+ throw new InvalidArgumentException('Disposition type must be either "' . '" or "' . self::INLINE . '".');
}
$header = $type;
if ($fileName === null) {
|
Run roave infection.:
src/ContentDispositionHeader.php#L66
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
public static function value(string $type, ?string $fileName = null) : string
{
if (!in_array($type, [self::INLINE, self::ATTACHMENT])) {
- throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . self::INLINE . '".');
+ throw new InvalidArgumentException('Disposition type must be either "' . '" or "' . self::ATTACHMENT . self::INLINE . '".');
}
$header = $type;
if ($fileName === null) {
|
Run roave infection.:
src/ContentDispositionHeader.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
public static function value(string $type, ?string $fileName = null) : string
{
if (!in_array($type, [self::INLINE, self::ATTACHMENT])) {
- throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . self::INLINE . '".');
+ throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . self::INLINE . '".');
}
$header = $type;
if ($fileName === null) {
|
Run roave infection.:
src/ContentDispositionHeader.php#L66
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
public static function value(string $type, ?string $fileName = null) : string
{
if (!in_array($type, [self::INLINE, self::ATTACHMENT])) {
- throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . self::INLINE . '".');
+ throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . self::INLINE . '" or "' . '".');
}
$header = $type;
if ($fileName === null) {
|
Run roave infection.:
src/ContentDispositionHeader.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
public static function value(string $type, ?string $fileName = null) : string
{
if (!in_array($type, [self::INLINE, self::ATTACHMENT])) {
- throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . self::INLINE . '".');
+ throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . '".');
}
$header = $type;
if ($fileName === null) {
|
Run roave infection.:
src/ContentDispositionHeader.php#L66
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
public static function value(string $type, ?string $fileName = null) : string
{
if (!in_array($type, [self::INLINE, self::ATTACHMENT])) {
- throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . self::INLINE . '".');
+ throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . '".' . self::INLINE);
}
$header = $type;
if ($fileName === null) {
|
Run roave infection.:
src/ContentDispositionHeader.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
public static function value(string $type, ?string $fileName = null) : string
{
if (!in_array($type, [self::INLINE, self::ATTACHMENT])) {
- throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . self::INLINE . '".');
+ throw new InvalidArgumentException('Disposition type must be either "' . self::ATTACHMENT . '" or "' . self::INLINE);
}
$header = $type;
if ($fileName === null) {
|
Run roave infection.:
src/HeaderValueHelper.php#L79
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*
* @return string[] First element is the value, and key-value are the parameters.
*/
- public static function getValueAndParameters(string $headerValue, bool $lowerCaseValue = true, bool $lowerCaseParameter = true, bool $lowerCaseParameterValue = true) : array
+ public static function getValueAndParameters(string $headerValue, bool $lowerCaseValue = false, bool $lowerCaseParameter = true, bool $lowerCaseParameterValue = true) : array
{
$headerValue = trim($headerValue);
if ($headerValue === '') {
|
Run roave infection.:
src/HeaderValueHelper.php#L80
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*
* @return string[] First element is the value, and key-value are the parameters.
*/
- public static function getValueAndParameters(string $headerValue, bool $lowerCaseValue = true, bool $lowerCaseParameter = true, bool $lowerCaseParameterValue = true) : array
+ public static function getValueAndParameters(string $headerValue, bool $lowerCaseValue = true, bool $lowerCaseParameter = false, bool $lowerCaseParameterValue = true) : array
{
$headerValue = trim($headerValue);
if ($headerValue === '') {
|
Run roave infection.:
src/HeaderValueHelper.php#L81
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*
* @return string[] First element is the value, and key-value are the parameters.
*/
- public static function getValueAndParameters(string $headerValue, bool $lowerCaseValue = true, bool $lowerCaseParameter = true, bool $lowerCaseParameterValue = true) : array
+ public static function getValueAndParameters(string $headerValue, bool $lowerCaseValue = true, bool $lowerCaseParameter = true, bool $lowerCaseParameterValue = false) : array
{
$headerValue = trim($headerValue);
if ($headerValue === '') {
|
Loading