Completed
Push — master ( ffecda...e79dfa )
by Benjamin
02:28
created

CronJobResultRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 4
Bugs 1 Features 0
Metric Value
wmc 1
c 4
b 1
f 0
lcom 0
cbo 3
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A deleteOldLogs() 0 7 1
1
<?php
2
3
namespace Alpixel\Bundle\CronBundle\Entity\Repository;
4
5
use Alpixel\Bundle\CronBundle\Entity\CronJob;
6
use Doctrine\ORM\EntityRepository;
7
8
class CronJobResultRepository extends EntityRepository
9
{
10
    public function deleteOldLogs(CronJob $job = null)
0 ignored issues
show
Unused Code introduced by
The parameter $job is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
11
    {
12
        $this
13
            ->getEntityManager()
14
            ->createQuery('DELETE CronBundle:CronJobResult result')
15
            ->getResult();
16
    }
17
}
18