Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
092968d7
Unverified
Commit
092968d7
authored
6 years ago
by
Tim van Dijen
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Phpdoc & optimization
parent
332a261b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Session.php
+2
-22
2 additions, 22 deletions
lib/SimpleSAML/Session.php
with
2 additions
and
22 deletions
lib/SimpleSAML/Session.php
+
2
−
22
View file @
092968d7
...
...
@@ -105,7 +105,7 @@ class Session implements \Serializable
*
* @var array
*/
private
$dataStore
=
null
;
private
$dataStore
=
array
()
;
/**
...
...
@@ -726,7 +726,7 @@ class Session implements \Serializable
*
* @param string $authority The authentication source that the user should be authenticated with.
*
* @return
t
rue if the user has a valid session, false if not.
* @return
bool T
rue if the user has a valid session, false if not.
*/
public
function
isValid
(
$authority
)
{
...
...
@@ -837,10 +837,6 @@ class Session implements \Serializable
assert
(
is_string
(
$type
));
assert
(
is_string
(
$id
));
if
(
!
is_array
(
$this
->
dataStore
))
{
return
;
}
if
(
!
array_key_exists
(
$type
,
$this
->
dataStore
))
{
return
;
}
...
...
@@ -901,10 +897,6 @@ class Session implements \Serializable
'data'
=>
$data
);
if
(
!
is_array
(
$this
->
dataStore
))
{
$this
->
dataStore
=
array
();
}
if
(
!
array_key_exists
(
$type
,
$this
->
dataStore
))
{
$this
->
dataStore
[
$type
]
=
array
();
}
...
...
@@ -923,10 +915,6 @@ class Session implements \Serializable
*/
private
function
expireData
()
{
if
(
!
is_array
(
$this
->
dataStore
))
{
return
;
}
$ct
=
time
();
foreach
(
$this
->
dataStore
as
&
$typedData
)
{
...
...
@@ -965,10 +953,6 @@ class Session implements \Serializable
$this
->
expireData
();
if
(
!
is_array
(
$this
->
dataStore
))
{
return
null
;
}
if
(
!
array_key_exists
(
$type
,
$this
->
dataStore
))
{
return
null
;
}
...
...
@@ -997,10 +981,6 @@ class Session implements \Serializable
{
assert
(
is_string
(
$type
));
if
(
!
is_array
(
$this
->
dataStore
))
{
return
array
();
}
if
(
!
array_key_exists
(
$type
,
$this
->
dataStore
))
{
return
array
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment