Automation #13800
Annotations
1 error and 10 warnings
|
|
|
src/Value/Handle.php#L27
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$this->handle
) === false
) {
- throw new InvalidArgumentException('Invalid handle: ' . $this->handle);
+ throw new InvalidArgumentException($this->handle);
}
}
|
|
src/Value/Handle.php#L27
Escaped Mutant for Mutator "Concat":
@@ @@
$this->handle
) === false
) {
- throw new InvalidArgumentException('Invalid handle: ' . $this->handle);
+ throw new InvalidArgumentException($this->handle . 'Invalid handle: ');
}
}
|
|
src/Value/Handle.php#L22
Escaped Mutant for Mutator "PregMatchRemoveDollar":
@@ @@
preg_match(
'#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#',
$this->handle
- ) === 0 || preg_match(
- '#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#',
- $this->handle
- ) === false
+ ) === 0 || preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?#', $this->handle) === false
) {
throw new InvalidArgumentException('Invalid handle: ' . $this->handle);
}
|
|
src/Value/Handle.php#L22
Escaped Mutant for Mutator "PregMatchRemoveCaret":
@@ @@
preg_match(
'#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#',
$this->handle
- ) === 0 || preg_match(
- '#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#',
- $this->handle
- ) === false
+ ) === 0 || preg_match('#([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === false
) {
throw new InvalidArgumentException('Invalid handle: ' . $this->handle);
}
|
|
src/Value/Did.php#L28
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
) === false
) {
// Todo: create custom exception
- throw new InvalidArgumentException('Invalid DID: ' . $this->did);
+ throw new InvalidArgumentException('Invalid DID: ');
}
}
|
|
src/Value/Did.php#L28
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
) === false
) {
// Todo: create custom exception
- throw new InvalidArgumentException('Invalid DID: ' . $this->did);
+ throw new InvalidArgumentException($this->did);
}
}
|
|
src/Value/Did.php#L28
Escaped Mutant for Mutator "Concat":
@@ @@
) === false
) {
// Todo: create custom exception
- throw new InvalidArgumentException('Invalid DID: ' . $this->did);
+ throw new InvalidArgumentException($this->did . 'Invalid DID: ');
}
}
|
|
src/Value/Did.php#L22
Escaped Mutant for Mutator "PregMatchRemoveDollar":
@@ @@
// should we split the value into parts and validate each part?
// and store the parts in the object
if (
- preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || preg_match(
- '#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#',
- $this->did
- ) === false
+ preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]#', $this->did) === false
) {
// Todo: create custom exception
throw new InvalidArgumentException('Invalid DID: ' . $this->did);
|
|
src/Value/Did.php#L22
Escaped Mutant for Mutator "PregMatchRemoveCaret":
@@ @@
// should we split the value into parts and validate each part?
// and store the parts in the object
if (
- preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || preg_match(
- '#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#',
- $this->did
- ) === false
+ preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || preg_match('#did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false
) {
// Todo: create custom exception
throw new InvalidArgumentException('Invalid DID: ' . $this->did);
|
|
src/Value/Did.php#L22
Escaped Mutant for Mutator "PregMatchRemoveCaret":
@@ @@
// should we split the value into parts and validate each part?
// and store the parts in the object
if (
- preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || preg_match(
+ preg_match('#did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || preg_match(
'#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#',
$this->did
) === false
|
The logs for this run have expired and are no longer available.
Loading