mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various code cleanup.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user