Commit 1351a2b1 authored by Taylor Otwell's avatar Taylor Otwell

cleaning up code.

parent fc927aa6
......@@ -36,7 +36,9 @@ class Key extends Task {
// specified through the CLI.
$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);
......
......@@ -12,7 +12,7 @@ class Route extends Task {
* @param array $arguments
* @return void
*/
public function run($arguments = array())
public function call($arguments = array())
{
if ( ! count($arguments) == 2)
{
......@@ -21,7 +21,7 @@ class Route extends Task {
// First we'll set the request method and URI in the $_SERVER array,
// 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_URI'] = $arguments[1];
......
......@@ -69,8 +69,7 @@ class Manager extends Task {
// If the driver implements the "Sweeper" interface, we know that
// it can sweep expired sessions from storage. Not all drivers
// need be sweepers, as stores like Memcached and APC will
// perform their own garbage collection.
// need be sweepers since they do their own.
if ($driver instanceof Sweeper)
{
$lifetime = Config::get('session.lifetime');
......
......@@ -45,8 +45,7 @@ class Schema {
// Once we have the statements, we will cast them to an array
// even though not all of the commands return an array just
// in case the command needs to run more than one query to
// do what it needs to do.
// in case the command needs to run more than one query.
foreach ((array) $statements as $statement)
{
$connection->statement($statement);
......
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