Updates for static analysis

This commit is contained in:
David Bomba 2023-08-06 17:41:40 +10:00
parent 68ce3be42b
commit 4290ba9db6
4 changed files with 12 additions and 12 deletions

View File

@ -122,7 +122,7 @@ class BillingPortalPurchasev2 extends Component
/** /**
* Instance of company. * Instance of company.
* *
* @var Company * @var \App\Models\Company
*/ */
public $company; public $company;
@ -498,7 +498,7 @@ class BillingPortalPurchasev2 extends Component
/** /**
* Method to handle events before payments. * Method to handle events before payments.
* *
* @return void * @return self
*/ */
public function handleBeforePaymentEvents() :self public function handleBeforePaymentEvents() :self
{ {

View File

@ -231,7 +231,7 @@ class Client extends BaseModel implements HasLocalePreference
return self::class; return self::class;
} }
public function ledger() public function ledger(): \Illuminate\Database\Eloquent\Relations\HasMany
{ {
return $this->hasMany(CompanyLedger::class)->orderBy('id', 'desc'); return $this->hasMany(CompanyLedger::class)->orderBy('id', 'desc');
} }
@ -241,17 +241,17 @@ class Client extends BaseModel implements HasLocalePreference
return $this->morphMany(CompanyLedger::class, 'company_ledgerable'); return $this->morphMany(CompanyLedger::class, 'company_ledgerable');
} }
public function gateway_tokens() public function gateway_tokens(): \Illuminate\Database\Eloquent\Relations\HasMany
{ {
return $this->hasMany(ClientGatewayToken::class)->orderBy('is_default', 'DESC'); return $this->hasMany(ClientGatewayToken::class)->orderBy('is_default', 'DESC');
} }
public function expenses() public function expenses(): \Illuminate\Database\Eloquent\Relations\HasMany
{ {
return $this->hasMany(Expense::class)->withTrashed(); return $this->hasMany(Expense::class)->withTrashed();
} }
public function projects() public function projects(): \Illuminate\Database\Eloquent\Relations\HasMany
{ {
return $this->hasMany(Project::class)->withTrashed(); return $this->hasMany(Project::class)->withTrashed();
} }
@ -275,17 +275,17 @@ class Client extends BaseModel implements HasLocalePreference
->first(); ->first();
} }
public function credits() public function credits(): \Illuminate\Database\Eloquent\Relations\HasMany
{ {
return $this->hasMany(Credit::class)->withTrashed(); return $this->hasMany(Credit::class)->withTrashed();
} }
public function purgeable_activities() public function purgeable_activities(): \Illuminate\Database\Eloquent\Relations\HasMany
{ {
return $this->hasMany(Activity::class); return $this->hasMany(Activity::class);
} }
public function activities() public function activities(): \Illuminate\Database\Eloquent\Relations\HasMany
{ {
return $this->hasMany(Activity::class)->take(50)->orderBy('id', 'desc'); return $this->hasMany(Activity::class)->take(50)->orderBy('id', 'desc');
} }
@ -350,7 +350,7 @@ class Client extends BaseModel implements HasLocalePreference
return $this->hasMany(RecurringExpense::class)->withTrashed(); return $this->hasMany(RecurringExpense::class)->withTrashed();
} }
public function shipping_country() public function shipping_country():\Illuminate\Database\Eloquent\Relations\BelongsTo
{ {
return $this->belongsTo(Country::class, 'shipping_country_id', 'id'); return $this->belongsTo(Country::class, 'shipping_country_id', 'id');
} }

View File

@ -61,8 +61,8 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @method static \Illuminate\Database\Eloquent\Builder|BaseModel scope() * @method static \Illuminate\Database\Eloquent\Builder|BaseModel scope()
* @method static \Illuminate\Database\Eloquent\Builder|CompanyGateway withTrashed() * @method static \Illuminate\Database\Eloquent\Builder|CompanyGateway withTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|CompanyGateway withoutTrashed() * @method static \Illuminate\Database\Eloquent\Builder|CompanyGateway withoutTrashed()
* @method static CompanyGateway find()
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\ClientGatewayToken> $client_gateway_tokens * @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\ClientGatewayToken> $client_gateway_tokens
* @method static CompanyGateway find($value)
* @mixin \Eloquent * @mixin \Eloquent
*/ */
class CompanyGateway extends BaseModel class CompanyGateway extends BaseModel

View File

@ -53,7 +53,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int $use_inventory_management * @property int $use_inventory_management
* @property string|null $optional_product_ids * @property string|null $optional_product_ids
* @property string|null $optional_recurring_product_ids * @property string|null $optional_recurring_product_ids
* @property-read \App\Models\Company $company * @property \App\Models\Company $company
* @property-read mixed $hashed_id * @property-read mixed $hashed_id
* @property-read \App\Models\GroupSetting|null $group_settings * @property-read \App\Models\GroupSetting|null $group_settings
* @property-read \App\Models\User $user * @property-read \App\Models\User $user