Fixed code style.

This commit is contained in:
Jan Böhmer 2020-08-21 21:36:22 +02:00
parent 2853e471c4
commit d0b1024d80
212 changed files with 495 additions and 1005 deletions

View file

@ -21,14 +21,13 @@
namespace App\Repository\Parts;
use App\Entity\Parts\Footprint;
use App\Entity\Parts\Storelocation;
use App\Repository\AbstractPartsContainingRepository;
class FootprintRepository extends AbstractPartsContainingRepository
{
public function getParts(object $element, array $order_by = ['name' => 'ASC']): array
{
if(!$element instanceof Footprint) {
if (!$element instanceof Footprint) {
throw new \InvalidArgumentException('$element must be an Footprint!');
}
@ -37,10 +36,10 @@ class FootprintRepository extends AbstractPartsContainingRepository
public function getPartsCount(object $element): int
{
if(!$element instanceof Footprint) {
if (!$element instanceof Footprint) {
throw new \InvalidArgumentException('$element must be an Footprint!');
}
return $this->getPartsCountByField($element, 'footprint');
}
}
}