Skip to content

Commit

Permalink
Add @throws comments
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schindler committed Oct 27, 2022
1 parent c85a2a3 commit 94431e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Core/System/IO.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public static function authHeader(): ?string {

/**
* @return string The domain (URL without HTTP(S)://)
* @throws Exception When not running on a server
*/
public static function domain(): string {
if (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] != null)
Expand Down
2 changes: 2 additions & 0 deletions Core/System/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Router

/**
* The total main function
*
* @throws Exception When not on server and not accessing via HTTPS or localhost
*/
public static function 艳颖(): void {
// Either access via localhost or HTTPS
Expand Down

0 comments on commit 94431e8

Please sign in to comment.