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
157f619e
Commit
157f619e
authored
Feb 23, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basic code cleanup.
parent
e69f988f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
file.php
laravel/file.php
+1
-2
hash.php
laravel/hash.php
+1
-2
url.php
laravel/url.php
+1
-1
No files found.
laravel/file.php
View file @
157f619e
...
@@ -285,8 +285,7 @@ class File {
...
@@ -285,8 +285,7 @@ class File {
// To get the latest created file, we'll simply spin through the
// To get the latest created file, we'll simply spin through the
// directory, setting the latest file if we encounter a file
// directory, setting the latest file if we encounter a file
// with a UNIX timestamp greater than the latest one we
// with a UNIX timestamp greater than the latest one.
// have encountered thus far in the loop.
foreach
(
$items
as
$item
)
foreach
(
$items
as
$item
)
{
{
if
(
$item
->
getMTime
()
>
$time
)
$latest
=
$item
;
if
(
$item
->
getMTime
()
>
$time
)
$latest
=
$item
;
...
...
laravel/hash.php
View file @
157f619e
...
@@ -23,8 +23,7 @@ class Hash {
...
@@ -23,8 +23,7 @@ class Hash {
// Bcrypt expects the salt to be 22 base64 encoded characters including
// Bcrypt expects the salt to be 22 base64 encoded characters including
// dots and slashes. We will get rid of the plus signs included in the
// dots and slashes. We will get rid of the plus signs included in the
// base64 data and replace them with dots. OpenSSL will be used if it
// base64 data and replace them with dots.
// is available on the server.
if
(
function_exists
(
'openssl_random_pseudo_bytes'
))
if
(
function_exists
(
'openssl_random_pseudo_bytes'
))
{
{
$salt
=
openssl_random_pseudo_bytes
(
16
);
$salt
=
openssl_random_pseudo_bytes
(
16
);
...
...
laravel/url.php
View file @
157f619e
...
@@ -205,7 +205,7 @@ class URL {
...
@@ -205,7 +205,7 @@ class URL {
// We'll replace both dots and @ signs in the URI since both are used
// We'll replace both dots and @ signs in the URI since both are used
// to specify the controller and action, and by convention should be
// to specify the controller and action, and by convention should be
// translated into URI slashes.
// translated into URI slashes
for the URL
.
$uri
=
$root
.
'/'
.
str_replace
(
array
(
'.'
,
'@'
),
'/'
,
$action
);
$uri
=
$root
.
'/'
.
str_replace
(
array
(
'.'
,
'@'
),
'/'
,
$action
);
$uri
=
static
::
to
(
str_finish
(
$uri
,
'/'
)
.
$parameters
);
$uri
=
static
::
to
(
str_finish
(
$uri
,
'/'
)
.
$parameters
);
...
...
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