mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-10 04:59:30 +00:00
Run rector
This commit is contained in:
parent
6665203f2a
commit
f1d34bbc24
9 changed files with 26 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue