Improve code quality.

This commit is contained in:
James Cole
2018-07-09 19:24:08 +02:00
parent 76386dad7d
commit 5665f127aa
55 changed files with 278 additions and 100 deletions

View File

@@ -45,6 +45,12 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property bool $active
* @property string $virtual_balance
* @property User $user
* @property mixed|null startBalance
* @property mixed|null endBalance
* @property string difference
* @property mixed|null endBalance
* @property mixed|null startBalance
* @property mixed|null lastActivityDate
*/
class Account extends Model
{

View File

@@ -47,6 +47,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property int $size
* @property User $user
* @property bool $uploaded
* @property bool file_exists
*/
class Attachment extends Model
{

View File

@@ -37,6 +37,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property Carbon $start_date
* @property Carbon $end_date
* @property string $amount
* @property int $budget_id
* @property string spent
*/
class BudgetLimit extends Model
{
@@ -46,7 +48,7 @@ class BudgetLimit extends Model
* @var array
*/
protected $casts
= [
= [
'created_at' => 'datetime',
'updated_at' => 'datetime',
'start_date' => 'date',

View File

@@ -32,9 +32,10 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* Class Category.
*
* @property string $name
* @property int $id
* @property float $spent // used in category reports
* @property string $name
* @property int $id
* @property float $spent // used in category reports
* @property Carbon|null lastActivity
*/
class Category extends Model
{

View File

@@ -32,6 +32,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property User $user
* @property string $key
* @property int $user_id
* @property mixed status
*/
class ExportJob extends Model
{

View File

@@ -31,6 +31,7 @@ use Illuminate\Database\Eloquent\Model;
* @property int $transaction_journal_id
* @property int $piggy_bank_id
* @property int $id
* @property mixed date
*/
class PiggyBankEvent extends Model
{

View File

@@ -40,6 +40,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property Carbon $updated_at
* @property Carbon $created_at
* @property int $id
* @property mixed user
* @property mixed user
*/
class Preference extends Model
{

View File

@@ -33,6 +33,14 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property string $symbol
* @property int $decimal_places
* @property int $id
* @property mixed name
* @property mixed name
* @property mixed name
* @property mixed name
* @property mixed name
* @property mixed name
* @property mixed name
* @property mixed name
*
*/
class TransactionCurrency extends Model

View File

@@ -49,6 +49,12 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property int transaction_currency_id
* @property TransactionCurrency $transactionCurrency
* @property Collection $tags
* @property mixed user_id
* @property mixed transactions
* @property int transaction_count
* @property Carbon interest_date
* @property Carbon book_date
* @property Carbon process_date
*/
class TransactionJournal extends Model
{