Test Failed
Push — zf3-version ( c5fe3e...47d53a )
by Diego
03:23
created

EmissionRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A findAllBySector() 0 10 1
1
<?php
2
3
namespace Api\Entity;
4
5
use Doctrine\ORM\EntityRepository;
6
7
class EmissionRepository extends EntityRepository
8
{
9
	public function findAllBySector($year)
10
	{
11
		return $this->createQueryBuilder()
0 ignored issues
show
Bug introduced by
The call to createQueryBuilder() misses a required argument $alias.

This check looks for function calls that miss required arguments.

Loading history...
Bug introduced by
The call to from() misses some required arguments starting with $from.
Loading history...
Bug introduced by
The call to join() misses some required arguments starting with $join.
Loading history...
12
			->from()
13
			->join()
14
			->where()
15
			->groupBy()
16
			->setParameter()
17
			->getResult(':year', $year);
18
	}
19
}