php cs fixes

This commit is contained in:
2023-11-09 19:25:41 +01:00
parent 6d608ab35a
commit 32a103d86a
9 changed files with 48 additions and 56 deletions

View File

@@ -1,5 +1,14 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Repository;
use Chill\MainBundle\Entity\NewsItem;
@@ -7,11 +16,9 @@ use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Doctrine\Persistence\ObjectRepository;
use Faker\Core\DateTime;
class NewsItemRepository implements ObjectRepository
{
private readonly EntityRepository $repository;
public function __construct(EntityManagerInterface $entityManager)
@@ -24,40 +31,26 @@ class NewsItemRepository implements ObjectRepository
return $this->repository->createQueryBuilder($alias, $indexBy);
}
/**
* @inheritDoc
*/
public function find($id)
{
return $this->repository->find($id);
}
/**
* @inheritDoc
*/
public function findAll()
{
return $this->repository->findAll();
}
/**
* @inheritDoc
*/
public function findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null)
public function findBy(array $criteria, array $orderBy = null, int $limit = null, int $offset = null)
{
return $this->repository->findBy($criteria, $orderBy, $limit, $offset);
}
/**
* @inheritDoc
*/
public function findOneBy(array $criteria)
{
return $this->repository->findOneBy($criteria);
}
/**
* @inheritDoc
*/
public function getClassName()
{
return NewsItem::class;