mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Added missing comments into Env class (#633)
This commit is contained in:
parent
faf2306862
commit
068f58847f
1 changed files with 14 additions and 3 deletions
13
src/Env.php
13
src/Env.php
|
@ -1,4 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* TorrentPier – Bull-powered BitTorrent tracker engine
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2005-2023 TorrentPier (https://torrentpier.com)
|
||||||
|
* @link https://github.com/torrentpier/torrentpier for the canonical source repository
|
||||||
|
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License
|
||||||
|
*/
|
||||||
|
|
||||||
namespace TorrentPier;
|
namespace TorrentPier;
|
||||||
|
|
||||||
|
@ -6,6 +13,10 @@ use Dotenv\Repository\Adapter\PutenvAdapter;
|
||||||
use Dotenv\Repository\RepositoryBuilder;
|
use Dotenv\Repository\RepositoryBuilder;
|
||||||
use PhpOption\Option;
|
use PhpOption\Option;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Env
|
||||||
|
* @package TorrentPier
|
||||||
|
*/
|
||||||
class Env
|
class Env
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -96,6 +107,6 @@ class Env
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
})
|
})
|
||||||
->getOrCall(fn () => value($default));
|
->getOrCall(fn() => value($default));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue