Various code cleanup.

This commit is contained in:
James Cole
2021-04-06 18:36:37 +02:00
parent 9c1cee738d
commit fe06a1f7a0
10 changed files with 31 additions and 27 deletions

View File

@@ -47,6 +47,7 @@ class RemoteUserGuard implements Guard
*
* @return void
*/
// @phpstan-ignore-next-line
public function __construct(UserProvider $provider, Application $app) // @phpstan-ignore-line
{
$this->application = $app;

View File

@@ -275,6 +275,9 @@ class Preferences
if (null === $value) {
return new Preference;
}
if(null === $pref) {
$pref = new Preference;
}
$pref->data = $value;
$pref->save();
Cache::forever($fullName, $pref);