diff --git a/laravel/cli/tasks/key.php b/laravel/cli/tasks/key.php index 883f1e22..0c08a84f 100644 --- a/laravel/cli/tasks/key.php +++ b/laravel/cli/tasks/key.php @@ -36,7 +36,9 @@ public function generate($arguments = array()) // 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); diff --git a/laravel/cli/tasks/route.php b/laravel/cli/tasks/route.php index 6c2eccc7..494d5ba0 100644 --- a/laravel/cli/tasks/route.php +++ b/laravel/cli/tasks/route.php @@ -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 @@ public function run($arguments = array()) // 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]; diff --git a/laravel/cli/tasks/session/manager.php b/laravel/cli/tasks/session/manager.php index aee27ec6..19a38bb3 100644 --- a/laravel/cli/tasks/session/manager.php +++ b/laravel/cli/tasks/session/manager.php @@ -69,8 +69,7 @@ public function sweep($arguments = array()) // 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'); diff --git a/laravel/database/schema.php b/laravel/database/schema.php index c28e62b1..2434ab6a 100644 --- a/laravel/database/schema.php +++ b/laravel/database/schema.php @@ -45,8 +45,7 @@ public static function execute($table) // 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);