src/Repository/SearchRepository.php
Method findByApId
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function findByApId($url): array
{
// @todo union adapter
$conn = $this->entityManager->getConnection();
$sql = "
Method findBoosts
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function findBoosts(int $page, User $user): PagerfantaInterface
{
// @todo union adapter
$conn = $this->entityManager->getConnection();
$sql = "
Method search
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function search($query, int $page = 1): PagerfantaInterface
{
// @todo union adapter
$conn = $this->entityManager->getConnection();
$sql = "
Method buildResult
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function buildResult(array $result, $page, $countAll)
{
$entries = $this->entityManager->getRepository(Entry::class)->findBy(
['id' => $this->getOverviewIds((array) $result, 'entry')]
);