Skip to content

Commit

Permalink
Address Psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed May 29, 2019
1 parent 01d36ef commit 4e98678
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
9 changes: 1 addition & 8 deletions lib/Auth/Process/SmartID.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ class SmartID extends \SimpleSAML\Auth\ProcessingFilter
*/
private $add_candidate = true;

/**
* Attributes which should be added/appended.
*
* @var array Associative array of arrays.
*/
private $attributes = [];


/**
* @param array $config
Expand Down Expand Up @@ -138,7 +131,7 @@ public function process(&$request)

$id = $this->addID($request['Attributes'], $request);

if (isset($id)) {
if (!empty($id)) {
$request['Attributes'][$this->id_attribute] = [$id];
}
}
Expand Down
8 changes: 0 additions & 8 deletions lib/Auth/Process/SmartName.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@
*/
class SmartName extends \SimpleSAML\Auth\ProcessingFilter
{
/**
* Attributes which should be added/appended.
*
* @var array Associative array of arrays.
*/
private $attributes = [];


/**
* @param array $attributes
* @return string|null
Expand Down

0 comments on commit 4e98678

Please sign in to comment.