Add TarsParser: RegularParser's output at RegexParser's speed#123
Open
rhukster wants to merge 2 commits into
Open
Add TarsParser: RegularParser's output at RegexParser's speed#123rhukster wants to merge 2 commits into
rhukster wants to merge 2 commits into
Annotations
11 warnings
|
Complete job
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Infection:
src/Handler/WrapHandler.php#L42
Escaped Mutant for Mutator "CastString":
@@ @@
*/
public function __invoke(ShortcodeInterface $shortcode)
{
- return $this->before.(string)$shortcode->getContent().$this->after;
+ return $this->before.$shortcode->getContent().$this->after;
}
}
|
|
Infection:
src/Handler/UrlHandler.php#L24
Escaped Mutant for Mutator "CastString":
@@ @@
{
$url = null !== $shortcode->getBbCode() ? $shortcode->getBbCode() : $shortcode->getContent();
- return '<a href="'.(string)$url.'">'.(string)$shortcode->getContent().'</a>';
+ return '<a href="'.(string)$url.'">'.$shortcode->getContent().'</a>';
}
}
|
|
Infection:
src/Handler/UrlHandler.php#L24
Escaped Mutant for Mutator "CastString":
@@ @@
{
$url = null !== $shortcode->getBbCode() ? $shortcode->getBbCode() : $shortcode->getContent();
- return '<a href="'.(string)$url.'">'.(string)$shortcode->getContent().'</a>';
+ return '<a href="'.$url.'">'.(string)$shortcode->getContent().'</a>';
}
}
|
|
Infection:
src/Handler/PlaceholderHandler.php#L35
Escaped Mutant for Mutator "CastString":
@@ @@
/** @var string[] $values */
$values = array_values($args);
- return str_replace($keys, $values, (string)$shortcode->getContent());
+ return str_replace($keys, $values, $shortcode->getContent());
}
}
|
|
Infection:
src/Handler/PlaceholderHandler.php#L33
Escaped Mutant for Mutator "UnwrapArrayValues":
@@ @@
$delimiter = $this->delimiter;
$keys = array_map(function($key) use($delimiter) { return $delimiter.$key.$delimiter; }, array_keys($args));
/** @var string[] $values */
- $values = array_values($args);
+ $values = $args;
return str_replace($keys, $values, (string)$shortcode->getContent());
}
|
|
Infection:
src/Handler/EmailHandler.php#L25
Escaped Mutant for Mutator "CastString":
@@ @@
$email = null !== $shortcode->getBbCode() ? $shortcode->getBbCode() : $shortcode->getContent();
$content = $shortcode->getContent() === null ? $email : $shortcode->getContent();
- return '<a href="mailto:'.(string)$email.'">'.(string)$content.'</a>';
+ return '<a href="mailto:'.(string)$email.'">'.$content.'</a>';
}
}
|
|
Infection:
src/Handler/EmailHandler.php#L25
Escaped Mutant for Mutator "CastString":
@@ @@
$email = null !== $shortcode->getBbCode() ? $shortcode->getBbCode() : $shortcode->getContent();
$content = $shortcode->getContent() === null ? $email : $shortcode->getContent();
- return '<a href="mailto:'.(string)$email.'">'.(string)$content.'</a>';
+ return '<a href="mailto:'.$email.'">'.(string)$content.'</a>';
}
}
|
|
Infection:
src/Handler/DeclareHandler.php#L45
Escaped Mutant for Mutator "UnwrapArrayValues":
@@ @@
$args = $shortcode->getParameters();
$keys = array_map(function($key) use($delimiter) { return $delimiter.$key.$delimiter; }, array_keys($args));
/** @var string[] $values */
- $values = array_values($args);
+ $values = $args;
return str_replace($keys, $values, $content);
});
|
|
Infection:
src/Handler/DeclareHandler.php#L38
Escaped Mutant for Mutator "CastString":
@@ @@
}
$keys = array_keys($args);
$name = array_shift($keys);
- $content = (string)$shortcode->getContent();
+ $content = $shortcode->getContent();
$delimiter = $this->delimiter;
$this->handlers->add($name, function(ShortcodeInterface $shortcode) use($content, $delimiter) {
|
|
Infection:
src/EventContainer/EventContainer.php#L30
Escaped Mutant for Mutator "LogicalNot":
@@ @@
throw new \InvalidArgumentException(sprintf('Unsupported event %s!', $event));
}
- if(!array_key_exists($event, $this->listeners)) {
+ if(array_key_exists($event, $this->listeners)) {
$this->listeners[$event] = array();
}
|
background
wait
wait-all
cancel
parallel
Loading