for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
declare(strict_types=1);
namespace Overblog\GraphQLBundle\Generator\Converter;
use Murtukov\PHPCodeGenerator\ConverterInterface;
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionLanguage;
class ExpressionConverter implements ConverterInterface
{
private ExpressionLanguage $expressionLanguage;
public function __construct(ExpressionLanguage $expressionLanguage)
$this->expressionLanguage = $expressionLanguage;
}
public function convert($value)
return $this->expressionLanguage->compile(
ExpressionLanguage::unprefixExpression($value),
ExpressionLanguage::KNOWN_NAMES
);
public function check($maybeExpression): bool
if (\is_string($maybeExpression)) {
return ExpressionLanguage::stringHasTrigger($maybeExpression);
return false;