Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2020-01-04 20:14:42 +01:00
parent 5f27abd8f3
commit 1aed1d1d26
15 changed files with 14 additions and 47 deletions

View file

@ -24,7 +24,6 @@ declare(strict_types=1);
namespace App\Entity\Attachments;
use App\Entity\Base\NamedDBElement;
use App\Entity\Parts\Category;
use App\Validator\Constraints\Selectable;
use Doctrine\ORM\Mapping as ORM;

View file

@ -22,7 +22,6 @@
namespace App\Entity\Base;
use App\Entity\Attachments\Attachment;
use App\Entity\Parts\Part;
use Symfony\Component\Validator\Constraints as Assert;
/**

View file

@ -133,7 +133,8 @@ class Device extends PartsContainingDBElement
/**
* Set the order quantity.
*
* @param int $new_order_quantity the new order quantity
* @param int $new_order_quantity the new order quantity
* @return $this
*/
public function setOrderQuantity(int $new_order_quantity): self
{

View file

@ -53,7 +53,6 @@ namespace App\Entity\Parts;
use App\Entity\Attachments\Attachment;
use App\Entity\Attachments\AttachmentContainingDBElement;
use App\Entity\Base\MasterAttachmentTrait;
use App\Entity\Devices\Device;
use App\Entity\Parts\PartTraits\AdvancedPropertyTrait;
use App\Entity\Parts\PartTraits\BasicPropertyTrait;

View file

@ -112,6 +112,7 @@ class PartLot extends DBElement
* This is the case, if the expiration date is greater the the current date.
*
* @return bool|null True, if the part lot is expired. Returns null, if no expiration date was set.
* @throws \Exception If an error with the DateTime occurs
*/
public function isExpired(): ?bool
{

View file

@ -23,7 +23,6 @@ namespace App\Entity\Parts\PartTraits;
use App\Entity\Parts\Category;
use App\Entity\Parts\Footprint;
use App\Entity\Parts\Part;
use App\Security\Annotations\ColumnSecurity;
use App\Validator\Constraints\Selectable;

View file

@ -21,7 +21,6 @@
namespace App\Entity\Parts\PartTraits;
use App\Entity\Parts\Part;
use App\Entity\PriceInformations\Orderdetail;
use App\Security\Annotations\ColumnSecurity;
use Doctrine\Common\Collections\Collection;

View file

@ -770,8 +770,9 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
/**
* Set the backup codes for this user. Existing backup codes are overridden.
* @param string[] $codes A
* @param string[] $codes An array containing the backup codes
* @return $this
* @throws \Exception If an error with the datetime occurs
*/
public function setBackupCodes(array $codes) : self
{