Skip to content

Commit

Permalink
Merge pull request #6174 from kenjis/fix-phpdocs
Browse files Browse the repository at this point in the history
docs: fix/add PHPDocs
  • Loading branch information
kenjis authored Jun 22, 2022
2 parents 099b6f4 + 0b7eaab commit 7666380
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion system/CLI/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ public static function getSegments(): array
* Gets a single command-line option. Returns TRUE if the option
* exists, but doesn't have a value, and is simply acting as a flag.
*
* @return mixed
* @return string|true|null
*/
public static function getOption(string $name)
{
Expand Down
1 change: 1 addition & 0 deletions system/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
*/
function app_timezone(): string
{
/** @var App $config */
$config = config(App::class);

return $config->appTimezone;
Expand Down
2 changes: 1 addition & 1 deletion system/Config/Factories.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function models(string $name, array $options = [], ?ConnectionInte
* Loads instances based on the method component name. Either
* creates a new instance or returns an existing shared instance.
*
* @return mixed
* @return object|null
*/
public static function __callStatic(string $component, array $arguments)
{
Expand Down
2 changes: 1 addition & 1 deletion system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@ protected function _insert(string $table, array $keys, array $unescapedKeys): st
}

/**
* Compiles an replace into string and runs the query
* Compiles a replace into string and runs the query
*
* @throws DatabaseException
*
Expand Down
4 changes: 2 additions & 2 deletions system/Filters/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ protected function processAliasesToClass(string $position)
/**
* Check paths for match for URI
*
* @param string $uri URI to test against
* @param mixed $paths The path patterns to test
* @param string $uri URI to test against
* @param array|string $paths The path patterns to test
*
* @return bool True if any of the paths apply to the URI
*/
Expand Down
2 changes: 1 addition & 1 deletion system/HTTP/Files/UploadedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function getTempName(): string
* type but will return the clientExtension if it fails to do so.
*
* This method will always return a more or less helpfull extension
* but might be insecure if the mime type is not machted. Consider
* but might be insecure if the mime type is not matched. Consider
* using guessExtension for a more safe version.
*/
public function getExtension(): string
Expand Down
2 changes: 1 addition & 1 deletion system/HTTP/RequestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function setGlobal(string $method, $value)
* @param int|null $filter Filter constant
* @param array|int|null $flags Options
*
* @return mixed
* @return array|bool|string|null
*/
public function fetchGlobal(string $method, $index = null, ?int $filter = null, $flags = null)
{
Expand Down
1 change: 1 addition & 0 deletions system/HTTP/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ public function deleteCookie(string $name = '', string $domain = '', string $pat
$store = $this->cookieStore;
$found = false;

/** @var Cookie $cookie */
foreach ($store as $cookie) {
if ($cookie->getPrefixedName() === $prefixed) {
if ($domain !== $cookie->getDomain()) {
Expand Down

0 comments on commit 7666380

Please sign in to comment.