for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Application\Api\Field\Query;
use Application\Api\Field\FieldInterface;
use GraphQL\Type\Definition\Type;
abstract class ExcelExport implements FieldInterface
{
public static function build(): array
return
[
'name' => 'excelExport',
'type' => Type::nonNull(Type::string()),
'description' => 'URL to download the Excel listing',
'resolve' => function ($root, array $args): string {
$args
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
'resolve' => function ($root, /** @scrutinizer ignore-unused */ array $args): string {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$root
'resolve' => function (/** @scrutinizer ignore-unused */ $root, array $args): string {
return 'test';
},
];
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.