original_string: public function findOneByRole($role)
      {
          $qb = $this->createQueryBuilder('g');
  
          return $qb
              ->andWhere($qb->expr()->like('g.roles', $qb->expr()->literal('%"'.strtoupper($role).'"%')))
              ->orderBy('g.position', 'DESC')
              ->setMaxResults(1)
              ->getQuery()
              ->getOneOrNullResult()
          ;
      }
code: public function findOneByRole($role)
      {
          $qb = $this->createQueryBuilder('g');
  
          return $qb
              ->andWhere($qb->expr()->like('g.roles', $qb->expr()->literal('%"'.strtoupper($role).'"%')))
              ->orderBy('g.position', 'DESC')
              ->setMaxResults(1)
              ->getQuery()
              ->getOneOrNullResult()
          ;
      }
code_tokens: public function findOneByRole ( $ role ) { $ qb = $ this -> createQueryBuilder ( 'g' ) ; return $ qb -> andWhere ( $ qb -> expr ( ) -> like ( 'g.roles' , $ qb -> expr ( ) -> literal ( '%"' . strtoupper ( $ role ) . '"%' ) ) ) -> orderBy ( 'g.position' , 'DESC' ) -> setMaxResults ( 1 ) -> getQuery ( ) -> getOneOrNullResult ( ) ; }
docstring: Finds the lower privilege level group having the given role.
  
  @param string $role
  @return GroupInterface|null
  @throws \Doctrine\ORM\NonUniqueResultException
docstring_tokens: Finds the lower privilege level group having the given role .