Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
9f1edfae
Commit
9f1edfae
authored
Aug 14, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring comments and code.
parent
8798d87e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
auth.php
system/auth.php
+1
-1
cache.php
system/cache.php
+2
-9
No files found.
system/auth.php
View file @
9f1edfae
...
...
@@ -111,7 +111,7 @@ class Auth {
* The user's ID will be stored in the session and the user will be considered
* "logged in" on subsequent requests to the application.
*
* Note: The user given to this method should be an object having a "id" property.
* Note: The user given to this method should be an object having a
n
"id" property.
*
* @param object $user
* @return void
...
...
system/cache.php
View file @
9f1edfae
...
...
@@ -6,6 +6,7 @@ class Cache {
* All of the active cache drivers.
*
* @var Cache\Driver
* @see driver
*/
public
static
$drivers
=
array
();
...
...
@@ -20,10 +21,7 @@ class Cache {
*/
public
static
function
driver
(
$driver
=
null
)
{
if
(
is_null
(
$driver
))
{
$driver
=
Config
::
get
(
'cache.driver'
);
}
if
(
is_null
(
$driver
))
$driver
=
Config
::
get
(
'cache.driver'
);
if
(
!
array_key_exists
(
$driver
,
static
::
$drivers
))
{
...
...
@@ -56,11 +54,6 @@ class Cache {
*/
public
static
function
get
(
$key
,
$default
=
null
,
$driver
=
null
)
{
if
(
is_null
(
$driver
))
{
$driver
=
Config
::
get
(
'cache.driver'
);
}
if
(
is_null
(
$item
=
static
::
driver
(
$driver
)
->
get
(
$key
)))
{
return
is_callable
(
$default
)
?
call_user_func
(
$default
)
:
$default
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment