Skip to content

Commit

Permalink
DIGITAL-239: Code Standard fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
clmedders committed Dec 18, 2024
1 parent d2f2bd5 commit e6beccf
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion web/modules/custom/dg_autologout/dg_autologout.api.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
*
* This allows other modules to indicate that a page should not be included
* in the dg_autologout checks. This works in the same way as not ticking the
* enforce on admin pages option for dg_autologout which stops a user being logged
* enforce on admin pages option for
* dg_autologout which stops a user being logged
* out of admin pages.
*
* @return bool
Expand Down
3 changes: 2 additions & 1 deletion web/modules/custom/dg_autologout/dg_autologout.install
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ function dg_autologout_update_8001(&$sandbox) {
$result = array_slice($result, $sandbox['current'], $limit);
foreach ($result as $row) {
$key = $row->name;
// User uid is a part of the key after. E.g. dg_autologout.user.1 for user 1.
// User uid is a part of the key after.
// E.g. dg_autologout.user.1 for user 1.
$user_id = (substr($key, 16));
$data = unserialize($row->data);
\Drupal::service('user.data')->set('dg_autologout', $user_id, 'timeout', $data['timeout']);
Expand Down
1 change: 0 additions & 1 deletion web/modules/custom/dg_autologout/src/AutologoutManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Drupal\dg_autologout;

// use Drupal\dg_autologout\DgAutologoutManagerInterface as test;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Config\Config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php


namespace Drupal\dg_autologout\Controller;

use Drupal\Component\Datetime\TimeInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// todo: come back to this file

namespace Drupal\dg_autologout\EventSubscriber;

Expand All @@ -26,7 +25,7 @@ class AutologoutSubscriber implements EventSubscriberInterface {
*
* @var \Drupal\dg_autologout\DgAutologoutManagerInterface
*/
protected DgAutologoutManagerInterface $AutologoutManager;
protected DgAutologoutManagerInterface $autologoutManager;

/**
* The user account service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
/**
* Provides a settings for autologout module.
*/
class dg_AutologoutBlockForm extends FormBase {
class AutologoutBlockForm extends FormBase {

/**
* The autologout manager service.
*
* @var \Drupal\dg_autologout\DgAutologoutManagerInterface
*/
protected $AutologoutManager;
protected $autologoutManager;

/**
* {@inheritdoc}
Expand Down
File renamed without changes.

0 comments on commit e6beccf

Please sign in to comment.