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

EmissionRepository::findAllBySector()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 8
nc 1
nop 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
}