This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
17
{
18
$qb = $this->createQueryBuilder('s');
19
$qb->where('s.identifier = :id');
20
$qb->setParameter('id', $identifier);
21
$query = $qb->getQuery();
22
$result = $query->getResult();
23
return empty($result) ? null : $result[0];
24
}
25
26
/**
27
* @param array|ScopeEntityInterface[] $scopes
28
* @param string $grantType
29
* @param ClientEntityInterface $clientEntity
30
* @param null|string|null $userIdentifier
31
* @return mixed
32
*/
33
public function finalizeScopes(array $scopes, $grantType, ClientEntityInterface $clientEntity, $userIdentifier = null)
34
{
35
// TODO: Implement finalizeScopes() method.
36
return $scopes; // until we figure out what we need to do in here
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.