Passed
Pull Request — 1.11.x (#4900)
by Angel Fernando Quiroz
09:30
created

LogRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
dl 0
loc 10
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A findByLevelAndExe() 0 8 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\PluginBundle\ExerciseMonitoring\Repository;
6
7
use Chamilo\CoreBundle\Entity\TrackEExercises;
8
use Doctrine\ORM\EntityRepository;
9
10
class LogRepository extends EntityRepository
11
{
12
    public function findByLevelAndExe(int $level, TrackEExercises $exe): array
13
    {
14
        return $this->findBy(
15
            [
16
                'level' => $level,
17
                'exe' => $exe,
18
            ],
19
            ['createdAt' => 'ASC']
20
        );
21
    }
22
}
23