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
1351a2b1
Commit
1351a2b1
authored
Feb 07, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaning up code.
parent
fc927aa6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
key.php
laravel/cli/tasks/key.php
+3
-1
route.php
laravel/cli/tasks/route.php
+2
-2
manager.php
laravel/cli/tasks/session/manager.php
+1
-2
schema.php
laravel/database/schema.php
+1
-2
No files found.
laravel/cli/tasks/key.php
View file @
1351a2b1
...
@@ -36,7 +36,9 @@ class Key extends Task {
...
@@ -36,7 +36,9 @@ class Key extends Task {
// specified through the CLI.
// specified through the CLI.
$key
=
Str
::
random
(
array_get
(
$arguments
,
0
,
32
));
$key
=
Str
::
random
(
array_get
(
$arguments
,
0
,
32
));
$config
=
str_replace
(
"'key' => '',"
,
"'key' => '
{
$key
}
',"
,
File
::
get
(
$this
->
path
),
$count
);
$config
=
File
::
get
(
$this
->
path
);
$config
=
str_replace
(
"'key' => '',"
,
"'key' => '
{
$key
}
',"
,
$config
,
$count
);
File
::
put
(
$this
->
path
,
$config
);
File
::
put
(
$this
->
path
,
$config
);
...
...
laravel/cli/tasks/route.php
View file @
1351a2b1
...
@@ -12,7 +12,7 @@ class Route extends Task {
...
@@ -12,7 +12,7 @@ class Route extends Task {
* @param array $arguments
* @param array $arguments
* @return void
* @return void
*/
*/
public
function
run
(
$arguments
=
array
())
public
function
call
(
$arguments
=
array
())
{
{
if
(
!
count
(
$arguments
)
==
2
)
if
(
!
count
(
$arguments
)
==
2
)
{
{
...
@@ -21,7 +21,7 @@ class Route extends Task {
...
@@ -21,7 +21,7 @@ class Route extends Task {
// First we'll set the request method and URI in the $_SERVER array,
// First we'll set the request method and URI in the $_SERVER array,
// which will allow the framework to retrieve the proper method
// which will allow the framework to retrieve the proper method
// and URI using the
normal
URI and Request classes.
// and URI using the URI and Request classes.
$_SERVER
[
'REQUEST_METHOD'
]
=
strtoupper
(
$arguments
[
0
]);
$_SERVER
[
'REQUEST_METHOD'
]
=
strtoupper
(
$arguments
[
0
]);
$_SERVER
[
'REQUEST_URI'
]
=
$arguments
[
1
];
$_SERVER
[
'REQUEST_URI'
]
=
$arguments
[
1
];
...
...
laravel/cli/tasks/session/manager.php
View file @
1351a2b1
...
@@ -69,8 +69,7 @@ class Manager extends Task {
...
@@ -69,8 +69,7 @@ class Manager extends Task {
// If the driver implements the "Sweeper" interface, we know that
// If the driver implements the "Sweeper" interface, we know that
// it can sweep expired sessions from storage. Not all drivers
// it can sweep expired sessions from storage. Not all drivers
// need be sweepers, as stores like Memcached and APC will
// need be sweepers since they do their own.
// perform their own garbage collection.
if
(
$driver
instanceof
Sweeper
)
if
(
$driver
instanceof
Sweeper
)
{
{
$lifetime
=
Config
::
get
(
'session.lifetime'
);
$lifetime
=
Config
::
get
(
'session.lifetime'
);
...
...
laravel/database/schema.php
View file @
1351a2b1
...
@@ -45,8 +45,7 @@ class Schema {
...
@@ -45,8 +45,7 @@ class Schema {
// Once we have the statements, we will cast them to an array
// Once we have the statements, we will cast them to an array
// even though not all of the commands return an array just
// even though not all of the commands return an array just
// in case the command needs to run more than one query to
// in case the command needs to run more than one query.
// do what it needs to do.
foreach
((
array
)
$statements
as
$statement
)
foreach
((
array
)
$statements
as
$statement
)
{
{
$connection
->
statement
(
$statement
);
$connection
->
statement
(
$statement
);
...
...
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