Skip to content

Commit

Permalink
re-run rector
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Aug 27, 2021
1 parent 89af3c2 commit fea452b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Repository/AbstractRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ abstract class AbstractRepository extends ServiceEntityRepository implements Pag
{
protected const MICRO_CACHE = 1;

/**
* @return null|mixed
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
$queryBuilder = $this->createQueryBuilder('o');
Expand Down
3 changes: 3 additions & 0 deletions lib/Repository/GroupRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public function __construct(ManagerRegistry $registry)
parent::__construct($registry, Group::class);
}

/**
* @return null|mixed
*/
public function findByCode(string $code)
{
$queryBuilder = $this->createQueryBuilder('o');
Expand Down
4 changes: 4 additions & 0 deletions lib/Repository/MenuRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace KejawenLab\ApiSkeleton\Repository;

use Iterator;
use Doctrine\Persistence\ManagerRegistry;
use KejawenLab\ApiSkeleton\Entity\Menu;
use KejawenLab\ApiSkeleton\Security\Model\MenuInterface;
Expand Down Expand Up @@ -38,6 +39,9 @@ public function findByCode(string $code): ?MenuInterface
return $query->getOneOrNullResult();
}

/**
* @return Iterator
*/
public function findChilds(MenuInterface $menu): iterable
{
$queryBuilder = $this->createQueryBuilder('o');
Expand Down
3 changes: 2 additions & 1 deletion lib/Repository/PasswordHistoryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace KejawenLab\ApiSkeleton\Repository;

use Iterator;
use Doctrine\Persistence\ManagerRegistry;
use KejawenLab\ApiSkeleton\Entity\PasswordHistory;
use KejawenLab\ApiSkeleton\Security\Model\PasswordHistoryRepositoryInterface;
Expand All @@ -25,7 +26,7 @@ public function __construct(ManagerRegistry $registry)
}

/**
* @return PasswordHistory[]
* @return Iterator
*/
public function findPasswords(UserInterface $user): iterable
{
Expand Down
3 changes: 3 additions & 0 deletions lib/Repository/PermissionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public function findPermission(GroupInterface $group, MenuInterface $menu): ?Per
return $query->getOneOrNullResult();
}

/**
* @return Iterator
*/
public function findPermissions(GroupInterface $group, iterable $menus): iterable
{
$ids = [];
Expand Down

0 comments on commit fea452b

Please sign in to comment.