Use imports instead of FQNs

This commit is contained in:
Jan Böhmer 2023-06-11 14:55:06 +02:00
parent f63b6d7207
commit 5629215ce4
179 changed files with 792 additions and 597 deletions

View file

@ -2,6 +2,7 @@
namespace App\Services\Parts;
use App\Entity\Parts\Storelocation;
use App\Entity\LogSystem\PartStockChangedLogEntry;
use App\Entity\Parts\PartLot;
use App\Services\LogSystem\EventCommentHelper;
@ -24,7 +25,7 @@ final class PartLotWithdrawAddHelper
}
//So far all other restrictions are defined at the storelocation level
if(!$partLot->getStorageLocation() instanceof \App\Entity\Parts\Storelocation) {
if(!$partLot->getStorageLocation() instanceof Storelocation) {
return true;
}
//We can not add parts if the storage location of the lot is marked as full