@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | return self::$settings[$environment][$config_name]; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - public static function grab(?string $environment = null): array |
|
| 59 | + public static function grab(? string $environment = null) : array |
|
| 60 | 60 | { |
| 61 | 61 | if (is_null($environment)) { |
| 62 | 62 | $environment = static::current(); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * @param mixed $value |
| 75 | 75 | * @param null|string $environment if not specified, configures CURRENT environment only. E::ALL, sets for all envs. |
| 76 | 76 | */ |
| 77 | - public static function put(string $config_name, $value, ?string $environment = null): void |
|
| 77 | + public static function put(string $config_name, $value, ? string $environment = null) : void |
|
| 78 | 78 | { |
| 79 | 79 | if (is_null($environment)) { |
| 80 | 80 | $environment = static::current(); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * @param array $configs |
| 99 | 99 | * @param null|string $environment |
| 100 | 100 | */ |
| 101 | - public static function add(array $configs, ?string $environment = null): void |
|
| 101 | + public static function add(array $configs, ? string $environment = null) : void |
|
| 102 | 102 | { |
| 103 | 103 | if (is_null($environment)) { |
| 104 | 104 | $environment = static::current(); |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * @param array $configs |
| 123 | 123 | * @param null|string $environment |
| 124 | 124 | */ |
| 125 | - public static function set(array $configs, ?string $environment = null): void |
|
| 125 | + public static function set(array $configs, ? string $environment = null) : void |
|
| 126 | 126 | { |
| 127 | 127 | if (is_null($environment)) { |
| 128 | 128 | $environment = static::current(); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $this->route = Router::match($this->url, $this->method); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - public function getHeader(string $name): ?string |
|
| 65 | + public function getHeader(string $name): ? string |
|
| 66 | 66 | { |
| 67 | 67 | return $this->headers[$name] ?? null; |
| 68 | 68 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * @param string $key Dot notation for deeper values, i.e. `user.email` |
| 173 | 173 | * @return mixed|null |
| 174 | 174 | */ |
| 175 | - public function session(?string $key = null) |
|
| 175 | + public function session(? string $key = null) |
|
| 176 | 176 | { |
| 177 | 177 | if (session_status() != PHP_SESSION_ACTIVE) { |
| 178 | 178 | session_start(); |