Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2019-08-20 18:39:57 +02:00
parent 8e23629dc0
commit 1629f31fed
31 changed files with 187 additions and 211 deletions

View file

@ -33,7 +33,6 @@ namespace App\Entity\Parts;
use App\Entity\Base\DBElement;
use App\Entity\Base\NamedDBElement;
use App\Entity\Base\TimestampTrait;
use App\Validator\Constraints\Selectable;
use Doctrine\ORM\Mapping as ORM;
@ -56,13 +55,13 @@ class PartLot extends DBElement
* @var string A short description about this lot, shown in table
* @ORM\Column(type="text")
*/
protected $description = "";
protected $description = '';
/**
* @var string A comment stored with this lot.
* @ORM\Column(type="text")
*/
protected $comment = "";
protected $comment = '';
/**
* @var ?\DateTime Set a time until when the lot must be used.
@ -126,7 +125,7 @@ class PartLot extends DBElement
*/
public function isExpired(): ?bool
{
if ($this->expiration_date == null) {
if ($this->expiration_date === null) {
return null;
}