for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* This file is part of the Aggrego.
* (c) Tomasz Kunicki <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Aggrego\Neo4jIntegration\Api\Command\CreateRelationship;
use GraphAware\Neo4j\Client\Client;
use GraphAware\Neo4j\Client\Exception\Neo4jExceptionInterface;
class UseCase
{
/** @var Client */
private $client;
public function __construct(Client $client)
$this->client = $client;
}
public function handle(Command $command): Response
$command
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function handle(/** @scrutinizer ignore-unused */ Command $command): Response
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
try {
$this->client->run(
'MATCH (u:{nodeType} {uuid:{uuid}}), (p:Event {uuid:{parent_uuid}}) CREATE (u)-[:CREATED_FROM]->(p)',
[
'uuid' => $boardUuidValue,
$boardUuidValue
'parent_uuid' => $payload['parent_uuid']
$payload
]
);
} catch (Neo4jExceptionInterface $e) {
return Response::fail($e->getMessage());
return Response::ok();
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.