mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 12:40:08 +02:00
Removed unused variables.
This commit is contained in:
parent
3671c94844
commit
0fe83c7b3a
18 changed files with 14 additions and 29 deletions
|
@ -163,7 +163,7 @@ class EventLoggerSubscriber implements EventSubscriber
|
|||
*/
|
||||
public function hasFieldRestrictions(AbstractDBElement $element): bool
|
||||
{
|
||||
foreach (static::FIELD_BLACKLIST as $class => $blacklist) {
|
||||
foreach (array_keys(static::FIELD_BLACKLIST) as $class) {
|
||||
if (is_a($element, $class)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -53,8 +53,6 @@ use Symfony\Component\Security\Core\Security;
|
|||
final class LogoutOnDisabledUserListener implements EventSubscriberInterface
|
||||
{
|
||||
private $security;
|
||||
private $translator;
|
||||
private $flashBag;
|
||||
private $urlGenerator;
|
||||
|
||||
public function __construct(Security $security, UrlGeneratorInterface $urlGenerator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue