Commit 157f619e authored by Taylor Otwell's avatar Taylor Otwell

basic code cleanup.

parent e69f988f
......@@ -285,8 +285,7 @@ class File {
// To get the latest created file, we'll simply spin through the
// directory, setting the latest file if we encounter a file
// with a UNIX timestamp greater than the latest one we
// have encountered thus far in the loop.
// with a UNIX timestamp greater than the latest one.
foreach ($items as $item)
{
if ($item->getMTime() > $time) $latest = $item;
......
......@@ -23,8 +23,7 @@ class Hash {
// 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
// base64 data and replace them with dots. OpenSSL will be used if it
// is available on the server.
// base64 data and replace them with dots.
if (function_exists('openssl_random_pseudo_bytes'))
{
$salt = openssl_random_pseudo_bytes(16);
......
......@@ -205,7 +205,7 @@ class URL {
// 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
// translated into URI slashes.
// translated into URI slashes for the URL.
$uri = $root.'/'.str_replace(array('.', '@'), '/', $action);
$uri = static::to(str_finish($uri, '/').$parameters);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment