mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 23:53:50 +00:00
phpstan, rector, cs-fixer
This commit is contained in:
@@ -279,7 +279,7 @@ class User implements UserInterface, \Stringable
|
||||
)
|
||||
);
|
||||
|
||||
$scopes = $this->scopeHistories->matching($criteria);
|
||||
$scopes = $this->scopeHistories->matching($criteria)->getIterator();
|
||||
|
||||
if ($scopes->count() > 0) {
|
||||
return $scopes->first()->getScope();
|
||||
@@ -328,7 +328,7 @@ class User implements UserInterface, \Stringable
|
||||
)
|
||||
);
|
||||
|
||||
$jobs = $this->jobHistories->matching($criteria);
|
||||
$jobs = $this->jobHistories->matching($criteria)->getIterator();
|
||||
|
||||
if ($jobs->count() > 0) {
|
||||
return $jobs->first()->getJob();
|
||||
|
@@ -11,7 +11,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Repository\User;
|
||||
|
||||
use App\Entity\UserJobHistory;
|
||||
use Chill\MainBundle\Entity\User\UserJobHistory;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\ORM\OptimisticLockException;
|
||||
use Doctrine\ORM\ORMException;
|
||||
|
@@ -11,7 +11,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Repository\User;
|
||||
|
||||
use App\Entity\UserScopeHistory;
|
||||
use Chill\MainBundle\Entity\User\UserScopeHistory;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\ORM\OptimisticLockException;
|
||||
use Doctrine\ORM\ORMException;
|
||||
|
@@ -17,6 +17,10 @@ use Chill\MainBundle\Entity\UserJob;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
class UserTest extends TestCase
|
||||
{
|
||||
use ProphecyTrait;
|
||||
|
Reference in New Issue
Block a user