mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Fixed some more inspection issues
This commit is contained in:
parent
de96aae9a5
commit
29d1d49aca
83 changed files with 153 additions and 172 deletions
|
@ -25,14 +25,12 @@ namespace App\Form\AdminPages;
|
|||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Entity\Base\AbstractStructuralDBElement;
|
||||
use App\Entity\LabelSystem\LabelProfile;
|
||||
use App\Entity\Parameters\AbstractParameter;
|
||||
use App\Form\AttachmentFormType;
|
||||
use App\Form\ParameterType;
|
||||
use App\Form\Type\MasterPictureAttachmentType;
|
||||
use App\Form\Type\RichTextEditorType;
|
||||
use App\Form\Type\StructuralEntityType;
|
||||
use App\Services\LogSystem\EventCommentNeededHelper;
|
||||
use FOS\CKEditorBundle\Form\Type\CKEditorType;
|
||||
use function get_class;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
|
|
|
@ -27,7 +27,6 @@ use App\Entity\Attachments\AttachmentType;
|
|||
use App\Form\Type\StructuralEntityType;
|
||||
use App\Services\Attachments\AttachmentManager;
|
||||
use App\Services\Attachments\AttachmentSubmitHandler;
|
||||
use App\Validator\Constraints\AllowedFileExtension;
|
||||
use App\Validator\Constraints\UrlOrBuiltin;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
|
|
|
@ -27,7 +27,6 @@ use App\Entity\Parts\Supplier;
|
|||
use App\Entity\PriceInformations\Orderdetail;
|
||||
use App\Entity\PriceInformations\Pricedetail;
|
||||
use App\Form\Type\StructuralEntityType;
|
||||
use App\Form\WorkaroundCollectionType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
|
||||
|
|
|
@ -36,7 +36,6 @@ use App\Form\Type\MasterPictureAttachmentType;
|
|||
use App\Form\Type\RichTextEditorType;
|
||||
use App\Form\Type\SIUnitType;
|
||||
use App\Form\Type\StructuralEntityType;
|
||||
use App\Form\WorkaroundCollectionType;
|
||||
use App\Services\LogSystem\EventCommentNeededHelper;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
|
|
|
@ -43,12 +43,12 @@ class PartLotSelectType extends AbstractType
|
|||
|
||||
$resolver->setDefaults([
|
||||
'class' => PartLot::class,
|
||||
'choice_label' => ChoiceList::label($this, function (PartLot $part_lot) {
|
||||
'choice_label' => ChoiceList::label($this, static function (PartLot $part_lot) {
|
||||
return ($part_lot->getStorageLocation() ? $part_lot->getStorageLocation()->getFullPath() : '')
|
||||
. ' (' . $part_lot->getName() . '): ' . $part_lot->getAmount();
|
||||
}),
|
||||
'query_builder' => function (Options $options) {
|
||||
return function (EntityRepository $er) use ($options) {
|
||||
return static function (EntityRepository $er) use ($options) {
|
||||
return $er->createQueryBuilder('l')
|
||||
->where('l.part = :part')
|
||||
->setParameter('part', $options['part']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue