mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Code clean up.
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Models;
|
||||
@@ -31,13 +30,10 @@ use Illuminate\Database\Eloquent\Model;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class Preference
|
||||
*
|
||||
* @package FireflyIII\Models
|
||||
* Class Preference.
|
||||
*/
|
||||
class Preference extends Model
|
||||
{
|
||||
|
||||
/**
|
||||
* The attributes that should be casted to native types.
|
||||
*
|
||||
@@ -56,6 +52,7 @@ class Preference extends Model
|
||||
* @param $value
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public function getDataAttribute($value)
|
||||
@@ -74,7 +71,7 @@ class Preference extends Model
|
||||
} catch (Exception $e) {
|
||||
// don't care, assume is false.
|
||||
}
|
||||
if (!($unserialized === false)) {
|
||||
if (!(false === $unserialized)) {
|
||||
return $unserialized;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user