Skip to content

Commit

Permalink
Fix CS in stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Dec 9, 2022
1 parent 7633966 commit e56bc77
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions stubs/Helpers.stub
Expand Up @@ -94,9 +94,7 @@ function url($path = null, $parameters = [], $secure = null) {}
* @param bool $report
* @return TValue|TDefault
*/
function rescue(callable $callback, $rescue = null, $report = true)
{
}
function rescue(callable $callback, $rescue = null, $report = true) {}

/**
* @template TValue
Expand All @@ -108,29 +106,23 @@ function rescue(callable $callback, $rescue = null, $report = true)
*
* @throws \Exception
*/
function retry($times, callable $callback, $sleep = 0, $when = null)
{
}
function retry($times, callable $callback, $sleep = 0, $when = null) {}

/**
* @template TValue
* @param TValue $value
* @param null|callable(TValue): mixed $callback
* @return mixed
*/
function tap($value, $callback = null)
{
}
function tap($value, $callback = null) {}

/**
* @param view-string|null $view
* @param \Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<string, mixed> $data
* @param array<string, mixed> $mergeData
* @return mixed
*/
function view($view = null, $data = [], $mergeData = [])
{
}
function view($view = null, $data = [], $mergeData = []) {}

/**
* Translate the given message.
Expand All @@ -140,9 +132,7 @@ function view($view = null, $data = [], $mergeData = [])
* @param string|null $locale
* @return ($key is null ? \Illuminate\Contracts\Translation\Translator : mixed)
*/
function trans($key = null, $replace = [], $locale = null)
{
}
function trans($key = null, $replace = [], $locale = null) {}

/**
* Translate the given message.
Expand All @@ -152,9 +142,7 @@ function trans($key = null, $replace = [], $locale = null)
* @param string|null $locale
* @return ($key is null ? null : mixed)
*/
function __($key = null, $replace = [], $locale = null)
{
}
function __($key = null, $replace = [], $locale = null) {}

/**
* Provide access to optional objects.
Expand All @@ -166,6 +154,4 @@ function __($key = null, $replace = [], $locale = null)
* @param ?callable(TValue): TReturn $callback
* @return ($callback is null ? mixed : ($value is null ? null : TReturn))
*/
function optional($value = null, callable $callback = null)
{
}
function optional($value = null, callable $callback = null) {}

0 comments on commit e56bc77

Please sign in to comment.