<commit_before><?php namespace Shnhrrsn\LaravelSupport\Console;

class KeyGenerateCommand extends \Illuminate\Foundation\Console\KeyGenerateCommand {

	public function fire() {
		$key = $this->getRandomKey($this->laravel['config']['app.cipher']);

		if ($this->option('show')) {
			return $this->comment($key);
		}

		list($path, $contents) = $this->getKeyFile();

		$contents = str_replace($this->laravel['config']['app.key'], $key, $contents);
		$this->laravel['files']->put($path, $contents);

		$this->laravel['config']['app.key'] = $key;

		$this->info('Application key [' . $key . '] set successfully.');
	}

	protected function getKeyFile() {
		$env = $this->option('env') ? $this->option('env') . '/' : '';

		$path = $this->laravel['path.config'] . '/' . $env . 'app.php';
		$contents = $this->laravel['files']->get($path);

		return [ $path, $contents ];
	}

}<commit_msg>Fixed broken KeyGenerateCommand due to Laravel change<commit_after><?php namespace Shnhrrsn\LaravelSupport\Console;

class KeyGenerateCommand extends \Illuminate\Foundation\Console\KeyGenerateCommand {

	public function fire() {
		$key = $this->generateRandomKey($this->laravel['config']['app.cipher']);

		if ($this->option('show')) {
			return $this->comment($key);
		}

		list($path, $contents) = $this->getKeyFile();

		$contents = str_replace($this->laravel['config']['app.key'], $key, $contents);
		$this->laravel['files']->put($path, $contents);

		$this->laravel['config']['app.key'] = $key;

		$this->info('Application key [' . $key . '] set successfully.');
	}

	protected function getKeyFile() {
		$env = $this->option('env') ? $this->option('env') . '/' : '';

		$path = $this->laravel['path.config'] . '/' . $env . 'app.php';
		$contents = $this->laravel['files']->get($path);

		return [ $path, $contents ];
	}

}
{'fraction_non_alphanumeric': 0.22775013819789938, 'fraction_numerical': 0.0, 'mean_word_length': 4.782747603833866, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7634057', 'n_tokens_mistral': 636, 'n_tokens_neox': 594, 'n_words': 100}