/var/www/vhosts/ihelp.ro/httpdocs/vendor/josegonzalez/dotenv/src/josegonzalez/Dotenv
NameSizeModeActions
Filter/-0755rm
Expect.php12090644editdlrm
Loader.php115350644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/josegonzalez/dotenv/src/josegonzalez/Dotenv/Expect.php (1209B)
environment = $environment; $this->raise = $raise; } public function __invoke() { $args = func_get_args(); if (count($args) == 0) { return $this->raise('LogicException', 'No arguments were passed to expect()'); } if (isset($args[0]) && is_array($args[0])) { $args = $args[0]; } $keys = (array) $args; $missingEnvs = array(); foreach ($keys as $key) { if (!isset($this->environment[$key])) { $missingEnvs[] = $key; } } if (!empty($missingEnvs)) { return $this->raise( 'RuntimeException', sprintf("Required ENV vars missing: ['%s']", implode("', '", $missingEnvs)) ); } return true; } protected function raise($exception, $message) { if ($this->raise) { throw new $exception($message); } return false; } }