Run rector

This commit is contained in:
Jan Böhmer 2025-07-14 00:26:40 +02:00
parent 6665203f2a
commit f1d34bbc24
9 changed files with 26 additions and 10 deletions

View file

@ -23,6 +23,7 @@ declare(strict_types=1);
namespace App\Controller;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use App\Settings\AppSettings;
use Jbtronics\SettingsBundle\Form\SettingsFormFactoryInterface;
use Jbtronics\SettingsBundle\Manager\SettingsManagerInterface;
@ -49,7 +50,7 @@ class SettingsController extends AbstractController
$builder = $this->settingsFormFactory->createSettingsFormBuilder($settings);
//Add a submit button to the form
$builder->add('submit', \Symfony\Component\Form\Extension\Core\Type\SubmitType::class, ['label' => 'save']);
$builder->add('submit', SubmitType::class, ['label' => 'save']);
//Create the form
$form = $builder->getForm();

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace App\Services\InfoProviderSystem;
use App\Entity\Parts\Manufacturer;
@ -74,4 +76,4 @@ final class ExistingPartFinder
return $qb->getQuery()->getResult();
}
}
}

View file

@ -22,6 +22,7 @@ declare(strict_types=1);
*/
namespace App\Twig;
use App\Settings\SettingsIcon;
use Symfony\Component\HttpFoundation\Request;
use App\Services\LogSystem\EventCommentType;
use Jbtronics\SettingsBundle\Proxy\SettingsProxyInterface;
@ -71,7 +72,7 @@ final class MiscExtension extends AbstractExtension
$reflection = new ReflectionClass($objectOrClass);
$attribute = $reflection->getAttributes(\App\Settings\SettingsIcon::class)[0] ?? null;
$attribute = $reflection->getAttributes(SettingsIcon::class)[0] ?? null;
return $attribute?->newInstance()->icon;
}