Skip to content

Commit

Permalink
Edit some comments; Update phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schindler committed Aug 1, 2022
1 parent 1346af9 commit a57b438
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
8 changes: 3 additions & 5 deletions Backend/Core/Data/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function setQueryString(string $queryStr): void {
}

/**
* Returns the current query string
* Query string getter
*
* @return string Current query
*/
Expand Down Expand Up @@ -130,7 +130,7 @@ private function execute(): void {
}

/**
* Counts the effected rows by the last query and returns them
* Counts the effected rows of the last query
*
* @return integer Effected rows
*/
Expand All @@ -141,9 +141,7 @@ public function count(): int {
}

/**
* Returns whether the query was successful
*
* @return boolean Query successful
* @return boolean whether the query was successful
*/
public function success(): bool {
if (!$this->run)
Expand Down
9 changes: 2 additions & 7 deletions Backend/Core/System/IO.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ public static function domain(): string {
}

/**
* Returns the currently Requested URL
*
* @return string The requested path
* @return string Currently requested path
* @throws Exception When no request is set
*/
public static function path(): string {
Expand All @@ -153,15 +151,13 @@ public static function path(): string {
}

/**
* Returns the full URL with protocol and request uri
* @return string The full URL with protocol
* @return string Full URL with protocol and request uri
*/
public static function fullURL(): string {
return 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
}

/**
* Returns the request method
* @return string HTTP request method
*/
public static function method(): string {
Expand All @@ -171,7 +167,6 @@ public static function method(): string {
}

/**
* Returns the HTTP 'Accept' header
* @return string HTTP 'Accept' header
*/
public static function accept(): string {
Expand Down
12 changes: 6 additions & 6 deletions Backend/Libraries/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a57b438

Please sign in to comment.