Skip to content

Commit

Permalink
Apply fixes from StyleCI (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmuscnielsen authored Mar 11, 2021
1 parent 96da664 commit 012a8ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Concerns/HasLocaleQueryPreferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function getCurrentLocale()
* @param callable|null $callback
* @return mixed|void
*/
public static function setLocale($locale, ? callable $callback = null)
public static function setLocale($locale, ?callable $callback = null)
{
return static::handleSetLocale(__CLASS__.'@currentLocale', $locale, $callback);
}
Expand All @@ -31,12 +31,12 @@ public static function setLocale($locale, ? callable $callback = null)
* @param callable|null $callback
* @return mixed|void
*/
public static function setGlobalLocale($locale, ? callable $callback = null)
public static function setGlobalLocale($locale, ?callable $callback = null)
{
return static::handleSetLocale(__TRAIT__.'@globalLocale', $locale, $callback);
}

protected static function handleSetLocale($containerKey, $locale, ? callable $callback = null)
protected static function handleSetLocale($containerKey, $locale, ?callable $callback = null)
{
$previous = app()[$containerKey] ?? null;
$reset = function () use ($containerKey, $previous) {
Expand Down

0 comments on commit 012a8ef

Please sign in to comment.