mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Clean up API code and fix test code.
This commit is contained in:
@@ -25,6 +25,7 @@ namespace FireflyIII\Support;
|
||||
use Crypt;
|
||||
use FireflyIII\Models\TransactionCurrency;
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Contracts\Auth\Authenticatable;
|
||||
use Illuminate\Contracts\Encryption\DecryptException;
|
||||
use Illuminate\Support\Collection;
|
||||
use Log;
|
||||
@@ -279,7 +280,7 @@ class Amount
|
||||
}
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param User|Authenticatable $user
|
||||
*
|
||||
* @return \FireflyIII\Models\TransactionCurrency
|
||||
*/
|
||||
|
||||
@@ -26,18 +26,20 @@ use Cache;
|
||||
use Exception;
|
||||
use FireflyIII\Models\Preference;
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Contracts\Auth\Authenticatable;
|
||||
use Illuminate\Support\Collection;
|
||||
use Log;
|
||||
use Session;
|
||||
|
||||
/**
|
||||
* Class Preferences.
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Preferences
|
||||
{
|
||||
/**
|
||||
* @param User $user
|
||||
* @param User $user
|
||||
* @param string $search
|
||||
*
|
||||
* @return Collection
|
||||
@@ -92,7 +94,7 @@ class Preferences
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param mixed $default
|
||||
* @param mixed $default
|
||||
*
|
||||
* @return \FireflyIII\Models\Preference|null
|
||||
*/
|
||||
@@ -115,7 +117,7 @@ class Preferences
|
||||
|
||||
/**
|
||||
* @param \FireflyIII\User $user
|
||||
* @param array $list
|
||||
* @param array $list
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@@ -140,9 +142,9 @@ class Preferences
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \FireflyIII\User $user
|
||||
* @param string $name
|
||||
* @param null|string $default
|
||||
* @param \FireflyIII\User|Authenticatable $user
|
||||
* @param string $name
|
||||
* @param null|string $default
|
||||
*
|
||||
* @return \FireflyIII\Models\Preference|null
|
||||
*/
|
||||
@@ -212,7 +214,7 @@ class Preferences
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return \FireflyIII\Models\Preference
|
||||
*/
|
||||
@@ -233,8 +235,8 @@ class Preferences
|
||||
|
||||
/**
|
||||
* @param \FireflyIII\User $user
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return Preference
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user