for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bonfim\Tpl\Tag;
class Evaluate extends Tag
{
public function __construct()
self::match('/{{\s*--.*--\s*}}/', function () {
Bonfim\Tpl\Tag\Tag::match()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
self::/** @scrutinizer ignore-call */
match('/{{\s*--.*--\s*}}/', function () {
self::replace("");
Bonfim\Tpl\Tag\Tag::replace()
replace("");
});
self::match('/([^@]){{(.*?)}}/', function ($scape, $cond) {
self::replace("$scape<?= $cond ?>");
replace("$scape<?= $cond ?>");
self::match('/@{{/', function () {
self::replace("{{");
replace("{{");
}