/** * Iterate over each line and prompt for a new value * * @param File $env * * @return int */ protected function prompt_all(File $env) { $env->dictionary()->each(function ($value, $key) use($env) { $env->set($key, $this->prompt($key, $value)); }); $env->save(); }
/** * @test */ public function it_can_return_an_array_of_key_value_line_pairs() { $path = $this->get_fixture_path('env-basic'); $env = new File($path); $env->load(); $this->assertCount(1, $env->dictionary()); }
/** * Perform a simple check to see if all defined salts are using a placeholder. * @return bool */ protected function salts_are_placeholders() { return $this->env->dictionary()->only($this->salts->pluck(0)->all())->values()->unique()->count() === 1; // 1 unique means they are all the same }