Skip to content
Snippets Groups Projects

Issue #3192554: Fix phpcs errors and warnings

Closed Bastien KOPKA requested to merge issue/i18n_sso-3192554:3192554-fix-phpcs-errors into 8.x-1.x
All threads resolved!
2 files
+ 4
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -6,13 +6,12 @@ namespace Drupal\i18n_sso\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\i18n_sso\Service\Token;
use stdClass;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\RequestStack;
/**
* Class TokenController.
* Allow to manage token.
*
* @package Drupal\i18n_sso\Controller
*/
@@ -62,7 +61,7 @@ class TokenController extends ControllerBase {
* A JSON response.
*/
public function getToken() {
$token = new stdClass();
$token = new \stdClass();
$token->token = FALSE;
if ($this->currentUser()->isAuthenticated()) {
@@ -79,7 +78,7 @@ class TokenController extends ControllerBase {
$token->message = $this->t('Your account has been found. Please wait while we log you in.');
}
else {
$token = new stdClass();
$token = new \stdClass();
$token->token = FALSE;
$token->message = $this->t('You are not logged in on main website. Please go to the main website, log-in and try again.');
}
Loading