Skip to content

Commit

Permalink
PHPCsFixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Jan 17, 2024
1 parent 0745f7e commit 7a3a71d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Controller/PersonalRecorderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Pumukit\LmsBundle\Services\SeriesService;
use Pumukit\LmsBundle\Services\SSOService;
use Pumukit\LmsBundle\Utils\SeriesUtils;
use Pumukit\PersonalRecorderBundle\PumukitPersonalRecorderBundle;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
Expand Down Expand Up @@ -36,7 +37,7 @@ public function __construct(
*/
public function personalRecorder(Request $request)
{
if (!class_exists(\Pumukit\PersonalRecorderBundle\PumukitPersonalRecorderBundle::class)) {
if (!class_exists(PumukitPersonalRecorderBundle::class)) {
return new Response($this->renderView('@PumukitLms/PersonalRecorder/not_found.html.twig'), 403);
}

Expand Down
3 changes: 2 additions & 1 deletion EventListener/PersonalRecorderEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Pumukit\LmsBundle\EventListener;

use Pumukit\LmsBundle\Services\LmsService;
use Pumukit\PersonalRecorderBundle\Event\CreateEvent;

class PersonalRecorderEventListener
{
Expand All @@ -17,7 +18,7 @@ public function __construct(LmsService $lmsService)

public function postCreateMultimediaObject($event): void
{
if (class_exists(\Pumukit\PersonalRecorderBundle\Event\CreateEvent::class)) {
if (class_exists(CreateEvent::class)) {
$user = $event->getUser();
$multimediaObject = $event->getMultimediaObject();
if (!$user->hasRole('ROLE_TAG_DEFAULT_PUCHWEBTV')) {
Expand Down
3 changes: 2 additions & 1 deletion Services/SSOService.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
use Twig\Environment;

class SSOService
{
Expand Down Expand Up @@ -57,7 +58,7 @@ public function __construct(
ConfigurationService $configurationService,
TokenStorageInterface $tokenStorage,
EventDispatcherInterface $dispatcher,
\Twig\Environment $templating,
Environment $templating,
bool $checkLDAPInfoToUpdatePermissionProfile,
LDAPService $ldapService = null,
RequestStack $requestStack = null,
Expand Down

0 comments on commit 7a3a71d

Please sign in to comment.