Skip to content

Commit 900fddc

Browse files
committed
Avoid unnecessary function calls
1 parent e71efd1 commit 900fddc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Auth/Source/External.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function __construct(array $info, array $config)
113113
/* Get the configuration for this module */
114114
$drupalAuthConfig = new ConfigHelper(
115115
$config,
116-
'Authentication source ' . var_export($this->getAuthId(), true)
116+
'Authentication source ' . $this->getAuthId()
117117
);
118118

119119
$this->config = $drupalAuthConfig;

src/Auth/Source/UserPass.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace SimpleSAML\Module\drupalauth\Auth\Source;
44

55
use Drupal\user\Entity\User;
6+
use SimpleSAML\Assert\Assert;
67
use SimpleSAML\Error\Error;
78
use SimpleSAML\Module\core\Auth\UserPassBase;
89
use SimpleSAML\Module\drupalauth\ConfigHelper;
@@ -80,7 +81,7 @@ public function __construct(array $info, array $config)
8081
/* Get the configuration for this module */
8182
$drupalAuthConfig = new ConfigHelper(
8283
$config,
83-
'Authentication source ' . var_export($this->getAuthId(), true)
84+
'Authentication source ' . $this->getAuthId()
8485
);
8586

8687
$this->config = $drupalAuthConfig;

0 commit comments

Comments
 (0)