Static analysis

This commit is contained in:
David Bomba 2024-06-15 17:34:08 +10:00
parent 953e2e3e48
commit 109d5cfdca
43 changed files with 106 additions and 107 deletions

View File

@ -25,6 +25,7 @@ class ProductSalesExport extends BaseExport
{
public string $date_key = 'created_at';
/** @var Collection<\App\Models\Product> $products*/
protected Collection $products;
public Writer $csv;
@ -327,9 +328,9 @@ class ProductSalesExport extends BaseExport
* getProduct
*
* @param string $product_key
* @return Product
* @return ?\App\Models\Product
*/
private function getProduct(string $product_key): ?Product
private function getProduct(string $product_key): ?\App\Models\Product
{
return $this->products->firstWhere('product_key', $product_key);
}

View File

@ -23,14 +23,13 @@ class BankIntegrationFactory
$bank_integration->company_id = $company_id;
$bank_integration->provider_name = '';
$bank_integration->bank_account_id = '';
$bank_integration->bank_account_name = '';
$bank_integration->bank_account_number = '';
$bank_integration->bank_account_status = '';
$bank_integration->bank_account_type = '';
$bank_integration->balance = 0;
$bank_integration->currency = '';
$bank_integration->auto_sync = 1;
$bank_integration->auto_sync = true;
return $bank_integration;
}

View File

@ -29,7 +29,7 @@ class ClientFactory
$client->balance = 0;
$client->paid_to_date = 0;
$client->country_id = null;
$client->is_deleted = 0;
$client->is_deleted = false;
$client->client_hash = Str::random(40);
$client->settings = ClientSettings::defaults();
$client->classification = '';

View File

@ -33,7 +33,7 @@ class CloneQuoteToProjectFactory
$project->custom_value2 = '';
$project->custom_value3 = '';
$project->custom_value4 = '';
$project->is_deleted = 0;
$project->is_deleted = false;
return $project;
}

View File

@ -48,7 +48,7 @@ class CompanyFactory
$company->markdown_email_enabled = true;
$company->markdown_enabled = false;
$company->tax_data = new TaxModel();
$company->first_month_of_year = 1;
$company->first_month_of_year = '1';
$company->smtp_encryption = 'tls';
$company->smtp_host = '';
$company->smtp_local_domain = '';

View File

@ -26,7 +26,7 @@ class VendorFactory
$vendor->private_notes = '';
$vendor->public_notes = '';
$vendor->country_id = 4;
$vendor->is_deleted = 0;
$vendor->is_deleted = false;
$vendor->vendor_hash = Str::random(40);
// $vendor->classification = '';

View File

@ -61,7 +61,7 @@ class AccountController extends BaseController
* Store a newly created resource in storage.
*
* @param CreateAccountRequest $request
* @return Response
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*/
public function store(CreateAccountRequest $request)

View File

@ -46,7 +46,7 @@ class ForgotPasswordController extends Controller
/**
* @param Request $request
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
* @throws \Illuminate\Validation\ValidationException
*/
public function sendResetLinkEmail(Request $request)

View File

@ -179,7 +179,7 @@ class LoginController extends BaseController
* Refreshes the data feed with the current Company User.
*
* @param Request $request
* @return Response|JsonResponse
* @return \Illuminate\Http\Response|JsonResponse
*/
public function refresh(Request $request)
{

View File

@ -99,7 +99,7 @@ class BankTransactionRuleController extends BaseController
*
* @param ShowBankTransactionRuleRequest $request
* @param BankTransactionRule $bank_transaction_rule
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response|\Illuminate\Http\Response
*
*
* @OA\Get(
@ -154,7 +154,7 @@ class BankTransactionRuleController extends BaseController
*
* @param EditBankTransactionRuleRequest $request
* @param BankTransactionRule $bank_transaction_rule
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*
* @OA\Get(
@ -208,7 +208,7 @@ class BankTransactionRuleController extends BaseController
*
* @param UpdateBankTransactionRuleRequest $request
* @param BankTransactionRule $bank_transaction_rule
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*
*
@ -269,7 +269,7 @@ class BankTransactionRuleController extends BaseController
* Show the form for creating a new resource.
*
* @param CreateBankTransactionRuleRequest $request
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*
*
@ -317,7 +317,7 @@ class BankTransactionRuleController extends BaseController
* Store a newly created resource in storage.
*
* @param StoreBankTransactionRuleRequest $request
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*
*
@ -369,7 +369,7 @@ class BankTransactionRuleController extends BaseController
*
* @param DestroyBankTransactionRuleRequest $request
* @param BankTransactionRule $bank_transaction_rule
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*
* @throws \Exception

View File

@ -305,7 +305,7 @@ class ClientController extends BaseController
*
* @param PurgeClientRequest $request
* @param Client $client
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*/
public function purge(PurgeClientRequest $request, Client $client)
@ -333,7 +333,7 @@ class ClientController extends BaseController
* @param PurgeClientRequest $request
* @param Client $client
* @param string $mergeable_client
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*/
@ -365,7 +365,7 @@ class ClientController extends BaseController
*
* @param PurgeClientRequest $request
* @param Client $client
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*/
public function updateTaxData(PurgeClientRequest $request, Client $client)
{
@ -381,7 +381,7 @@ class ClientController extends BaseController
*
* @param ReactivateClientEmailRequest $request
* @param string $bounce_id //could also be the invitationId
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*/
public function reactivateEmail(ReactivateClientEmailRequest $request, string $bounce_id)
{

View File

@ -13,14 +13,13 @@ namespace App\Http\Controllers\ClientPortal;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Redirect;
class TempRouteController extends Controller
{
/**
* Logs a user into the client portal using their contact_key
* @param string $hash The hash
* @return Redirect
* @return \Illuminate\View\View
*/
public function index(string $hash)
{

View File

@ -38,7 +38,7 @@ class ConnectedAccountController extends BaseController
* Connect an OAuth account to a regular email/password combination account
*
* @param Request $request
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*
* @OA\Post(

View File

@ -58,7 +58,7 @@ class LoginController extends BaseController
*
* @param Request $request The request
*
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
* @throws \Illuminate\Validation\ValidationException
*/
public function apiLogin(Request $request)

View File

@ -27,7 +27,7 @@ class ImportController extends Controller
*
* @param PreImportRequest $request
*
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
* @OA\Post(
* path="/api/v1/preimport",

View File

@ -80,7 +80,7 @@ class MigrationController extends BaseController
* ),
* )
* @param Company $company
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
* @throws \Exception
*/
public function purgeCompany(Company $company)
@ -171,7 +171,7 @@ class MigrationController extends BaseController
* )
* @param Request $request
* @param Company $company
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*/
public function purgeCompanySaveSettings(Request $request, Company $company)
{
@ -255,7 +255,7 @@ class MigrationController extends BaseController
* ),
* )
* @param Request $request
* @return \Illuminate\Http\JsonResponse|void
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response|void
*/
public function startMigration(Request $request)
{

View File

@ -692,7 +692,7 @@ class QuoteController extends BaseController
* @param ActionQuoteRequest $request
* @param Quote $quote
* @param $action
* @return \Illuminate\Http\JsonResponse|Response|mixed|\Symfony\Component\HttpFoundation\StreamedResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response|Response|mixed|\Symfony\Component\HttpFoundation\StreamedResponse
*/
public function action(ActionQuoteRequest $request, Quote $quote, $action)
{

View File

@ -60,7 +60,7 @@ class SendingController extends Controller
* ),
* )
* @param Request $request
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*/
public function __invoke(Request $request)
{

View File

@ -34,7 +34,7 @@ class TwilioController extends BaseController
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\JsonResponse;
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response;
*/
public function generate(GenerateSmsRequest $request)
{
@ -94,7 +94,7 @@ class TwilioController extends BaseController
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\JsonResponse;
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response;
*/
public function confirm(ConfirmSmsRequest $request)
{
@ -143,7 +143,7 @@ class TwilioController extends BaseController
/**
* generate2faResetCode
*
* @return \Illuminate\Http\JsonResponse;
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response;
*/
public function generate2faResetCode(Generate2faRequest $request)
{
@ -193,7 +193,7 @@ class TwilioController extends BaseController
* confirm2faResetCode
*
* @param Confirm2faRequest $request
* @return \Illuminate\Http\JsonResponse;
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response;
*/
public function confirm2faResetCode(Confirm2faRequest $request)
{

View File

@ -191,7 +191,7 @@ class UserController extends BaseController
*
* @param DestroyUserRequest $request
* @param User $user
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
*/
public function destroy(DestroyUserRequest $request, User $user)
@ -253,7 +253,7 @@ class UserController extends BaseController
*
* @param DetachCompanyUserRequest $request
* @param User $user
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*/
public function detach(DetachCompanyUserRequest $request, User $user)
{
@ -283,7 +283,7 @@ class UserController extends BaseController
*
* @param ReconfirmUserRequest $request
* @param User $user
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*/
public function invite(ReconfirmUserRequest $request, User $user)
{
@ -301,7 +301,7 @@ class UserController extends BaseController
*
* @param ReconfirmUserRequest $request
* @param User $user
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*/
public function reconfirm(ReconfirmUserRequest $request, User $user)
{

View File

@ -23,7 +23,7 @@ class WebCronController extends Controller
/**
* Store a newly created resource in storage.
*
* @return \Illuminate\Http\JsonResponse
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
*
* @OA\Get(
* path="/webcron",

View File

@ -71,7 +71,7 @@ use Laracasts\Presenter\PresentableTrait;
* @property string|null $account_sms_verification_number
* @property bool $account_sms_verified
* @property string|null $bank_integration_account_id
* @property int $is_trial
* @property bool $is_trial
* @property-read int|null $bank_integrations_count
* @property-read int|null $companies_count
* @property-read int|null $company_users_count

View File

@ -29,7 +29,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property string|null $bank_account_status
* @property string|null $bank_account_type
* @property float $balance
* @property int|null $currency
* @property string|null $currency
* @property string $nickname
* @property string $nordigen_account_id
* @property string $nordigen_institution_id

View File

@ -24,7 +24,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int $bank_integration_id
* @property int $transaction_id
* @property string $nordigen_transaction_id
* @property string $amount
* @property float $amount
* @property string|null $currency_code
* @property int|null $currency_id
* @property string|null $account_type
@ -41,7 +41,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int|null $expense_id
* @property int|null $vendor_id
* @property int $status_id
* @property int $is_deleted
* @property bool $is_deleted
* @property int|null $created_at
* @property int|null $updated_at
* @property int|null $deleted_at

View File

@ -27,7 +27,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int|null $client_id
* @property int|null $vendor_id
* @property int|null $category_id
* @property int $is_deleted
* @property bool $is_deleted
* @property int|null $created_at
* @property int|null $updated_at
* @property int|null $deleted_at

View File

@ -25,12 +25,12 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int $company_gateway_id
* @property string|null $gateway_customer_reference
* @property int $gateway_type_id
* @property int $is_default
* @property bool $is_default
* @property object|null $meta
* @property int|null $deleted_at
* @property int|null $created_at
* @property int|null $updated_at
* @property int $is_deleted
* @property bool $is_deleted
* @property-read \App\Models\Client|null $client
* @property-read \App\Models\Company $company
* @property-read \App\Models\CompanyGateway|null $gateway

View File

@ -59,7 +59,7 @@ use Laracasts\Presenter\PresentableTrait;
* @property string|null $portal_domain
* @property int $enable_modules
* @property object $custom_fields
* @property \App\DataMapper\CompanySettings $settings
* @property \App\DataMapper\CompanySettings|\stdClass $settings
* @property string $slack_webhook_url
* @property string $google_analytics_key
* @property int|null $created_at

View File

@ -53,7 +53,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property-read \App\Models\Gateway $gateway
* @property-read mixed $hashed_id
* @method getConfigField(string $field)
* @method static \Illuminate\Database\Eloquent\Builder|BaseModel company()
* @method static \Illuminate\Database\Eloquent\Builder|CompanyGateway filter(\App\Filters\QueryFilters $filters)
* @method static \Illuminate\Database\Eloquent\Builder|CompanyGateway newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CompanyGateway newQuery()

View File

@ -46,7 +46,7 @@ use Laracasts\Presenter\PresentableTrait;
* @property string|null $date
* @property string|null $last_sent_date
* @property string|null $due_date
* @property int $is_deleted
* @property bool $is_deleted
* @property array|null $line_items
* @property object|null $backup
* @property string|null $footer
@ -60,7 +60,7 @@ use Laracasts\Presenter\PresentableTrait;
* @property string|null $tax_name3
* @property float $tax_rate3
* @property string $total_taxes
* @property int $uses_inclusive_taxes
* @property bool $uses_inclusive_taxes
* @property string|null $custom_value1
* @property string|null $custom_value2
* @property string|null $custom_value3

View File

@ -36,7 +36,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property bool $is_deleted
* @property float $amount
* @property float $foreign_amount
* @property string $exchange_rate
* @property float $exchange_rate
* @property string|null $tax_name1
* @property float $tax_rate1
* @property string|null $tax_name2
@ -60,8 +60,8 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property float $tax_amount1
* @property float $tax_amount2
* @property float $tax_amount3
* @property int $uses_inclusive_taxes
* @property int $calculate_tax_by_amount
* @property bool $uses_inclusive_taxes
* @property bool $calculate_tax_by_amount
* @property-read \App\Models\User|null $assigned_user
* @property-read \App\Models\ExpenseCategory|null $category
* @property-read \App\Models\Client|null $client

View File

@ -28,7 +28,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int|null $deleted_at
* @property int|null $created_at
* @property int|null $updated_at
* @property int $is_deleted
* @property bool $is_deleted
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Client> $clients
* @property-read int|null $clients_count
* @property-read \App\Models\Company $company

View File

@ -21,7 +21,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property string|null $name
* @property int|null $company_id
* @property int|null $user_id
* @property int $is_deleted
* @property bool $is_deleted
* @property int|null $created_at
* @property int|null $updated_at
* @property int|null $deleted_at

View File

@ -54,7 +54,7 @@ use Illuminate\Support\Carbon;
* @property string|null $tax_name3
* @property float $tax_rate3
* @property float $total_taxes
* @property int $uses_inclusive_taxes
* @property bool $uses_inclusive_taxes
* @property string|null $reminder1_sent
* @property string|null $reminder2_sent
* @property string|null $reminder3_sent

View File

@ -48,20 +48,20 @@ use Laracasts\Presenter\PresentableTrait;
* @property string|null|Carbon $due_date
* @property string|null $next_send_date
* @property bool $is_deleted
* @property object|null $line_items
* @property array|null $line_items
* @property object|null $backup
* @property string|null $footer
* @property string|null $public_notes
* @property string|null $private_notes
* @property string|null $terms
* @property string|null $tax_name1
* @property string $tax_rate1
* @property float $tax_rate1
* @property string|null $tax_name2
* @property string $tax_rate2
* @property float $tax_rate2
* @property string|null $tax_name3
* @property string $tax_rate3
* @property float $tax_rate3
* @property string $total_taxes
* @property int $uses_inclusive_taxes
* @property bool $uses_inclusive_taxes
* @property string|null $custom_value1
* @property string|null $custom_value2
* @property string|null $custom_value3
@ -87,7 +87,7 @@ use Laracasts\Presenter\PresentableTrait;
* @property string|null $reminder2_sent
* @property string|null $reminder3_sent
* @property string|null $reminder_last_sent
* @property string $paid_to_date
* @property float $paid_to_date
* @property int|null $subscription_id
* @property \App\Models\User|null $assigned_user
* @property \App\Models\Client $client

View File

@ -33,30 +33,30 @@ use Illuminate\Support\Carbon;
* @property int|null $payment_type_id
* @property int|null $recurring_expense_id
* @property bool $is_deleted
* @property int $uses_inclusive_taxes
* @property bool $uses_inclusive_taxes
* @property string|null $tax_name1
* @property string|null $tax_name2
* @property string|null $tax_name3
* @property string|null $date
* @property string|null $payment_date
* @property int $should_be_invoiced
* @property int $invoice_documents
* @property bool $should_be_invoiced
* @property bool $invoice_documents
* @property string|null $transaction_id
* @property string|null $custom_value1
* @property string|null $custom_value2
* @property string|null $custom_value3
* @property string|null $custom_value4
* @property int|null $category_id
* @property int $calculate_tax_by_amount
* @property string|null $tax_amount1
* @property string|null $tax_amount2
* @property string|null $tax_amount3
* @property string|null $tax_rate1
* @property string|null $tax_rate2
* @property string|null $tax_rate3
* @property string|null $amount
* @property string|null $foreign_amount
* @property string $exchange_rate
* @property bool $calculate_tax_by_amount
* @property float|null $tax_amount1
* @property float|null $tax_amount2
* @property float|null $tax_amount3
* @property float|null $tax_rate1
* @property float|null $tax_rate2
* @property float|null $tax_rate3
* @property float|null $amount
* @property float|null $foreign_amount
* @property float|null $exchange_rate
* @property int|null $assigned_user_id
* @property string|null $number
* @property int|null $invoice_currency_id

View File

@ -40,7 +40,7 @@ use Laracasts\Presenter\PresentableTrait;
* @property string|null $date
* @property string|null $due_date
* @property bool $is_deleted
* @property mixed $line_items
* @property array $line_items
* @property object|null $backup
* @property string|null $footer
* @property string|null $public_notes
@ -72,17 +72,17 @@ use Laracasts\Presenter\PresentableTrait;
* @property bool $auto_bill_enabled
* @property int|null $design_id
* @property bool $uses_inclusive_taxes
* @property string|null $custom_surcharge1
* @property string|null $custom_surcharge2
* @property string|null $custom_surcharge3
* @property string|null $custom_surcharge4
* @property float|null $custom_surcharge1
* @property float|null $custom_surcharge2
* @property float|null $custom_surcharge3
* @property float|null $custom_surcharge4
* @property bool $custom_surcharge_tax1
* @property bool $custom_surcharge_tax2
* @property bool $custom_surcharge_tax3
* @property bool $custom_surcharge_tax4
* @property string|null $due_date_days
* @property string|null $partial_due_date
* @property string $exchange_rate
* @property float $exchange_rate
* @property float $paid_to_date
* @property int|null $subscription_id
* @property string|null $next_send_date_client

View File

@ -34,31 +34,31 @@ use Laracasts\Presenter\PresentableTrait;
* @property int|null $vendor_id
* @property int $status_id
* @property float $discount
* @property int $is_amount_discount
* @property bool $is_amount_discount
* @property string|null $number
* @property string|null $po_number
* @property string|null $date
* @property string|null $due_date
* @property int $is_deleted
* @property object|null $line_items
* @property bool $is_deleted
* @property array $line_items
* @property object|null $backup
* @property string|null $footer
* @property string|null $public_notes
* @property string|null $private_notes
* @property string|null $terms
* @property string|null $tax_name1
* @property string $tax_rate1
* @property float $tax_rate1
* @property string|null $tax_name2
* @property string $tax_rate2
* @property float $tax_rate2
* @property string|null $tax_name3
* @property string $tax_rate3
* @property string $total_taxes
* @property float $tax_rate3
* @property float $total_taxes
* @property string|null $custom_value1
* @property string|null $custom_value2
* @property string|null $custom_value3
* @property string|null $custom_value4
* @property string $amount
* @property string $balance
* @property float $amount
* @property float $balance
* @property string|null $last_viewed
* @property int $frequency_id
* @property int $design_id
@ -69,22 +69,22 @@ use Laracasts\Presenter\PresentableTrait;
* @property int|null $updated_at
* @property int|null $deleted_at
* @property string $auto_bill
* @property int $auto_bill_enabled
* @property string $paid_to_date
* @property string|null $custom_surcharge1
* @property string|null $custom_surcharge2
* @property string|null $custom_surcharge3
* @property string|null $custom_surcharge4
* @property bool $auto_bill_enabled
* @property float $paid_to_date
* @property float|null $custom_surcharge1
* @property float|null $custom_surcharge2
* @property float|null $custom_surcharge3
* @property float|null $custom_surcharge4
* @property int $custom_surcharge_tax1
* @property int $custom_surcharge_tax2
* @property int $custom_surcharge_tax3
* @property int $custom_surcharge_tax4
* @property string|null $due_date_days
* @property string $exchange_rate
* @property float $exchange_rate
* @property float|null $partial
* @property string|null $partial_due_date
* @property int|null $subscription_id
* @property int $uses_inclusive_taxes
* @property bool $uses_inclusive_taxes
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Activity> $activities
* @property-read int|null $activities_count
* @property-read \App\Models\User|null $assigned_user

View File

@ -30,7 +30,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property string|null $auto_bill
* @property string|null $promo_code
* @property float $promo_discount
* @property int $is_amount_discount
* @property bool $is_amount_discount
* @property int $allow_cancellation
* @property int $per_seat_enabled
* @property int $min_seats_limit

View File

@ -44,7 +44,7 @@ use Illuminate\Support\Carbon;
* @property string|null $time_log
* @property string|null $number
* @property string $rate
* @property int $invoice_documents
* @property bool $invoice_documents
* @property int $is_date_based
* @property int|null $status_order
* @property-read \App\Models\User|null $assigned_user

View File

@ -20,7 +20,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property string|null $name
* @property int|null $company_id
* @property int|null $user_id
* @property int $is_deleted
* @property bool $is_deleted
* @property int|null $created_at
* @property int|null $updated_at
* @property int|null $deleted_at

View File

@ -37,7 +37,7 @@ use Laracasts\Presenter\PresentableTrait;
* @property string|null $city
* @property string|null $state
* @property string|null $postal_code
* @property string|null $country_id
* @property int|null $country_id
* @property string|null $phone
* @property string|null $private_notes
* @property string|null $website
@ -53,7 +53,7 @@ use Laracasts\Presenter\PresentableTrait;
* @property string|null $vendor_hash
* @property string|null $public_notes
* @property string|null $id_number
* @property string|null $language_id
* @property int|null $language_id
* @property int|null $last_login
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Activity> $activities
* @property-read int|null $activities_count

View File

@ -20,7 +20,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int|null $company_id
* @property int|null $user_id
* @property int|null $event_id
* @property int $is_deleted
* @property bool $is_deleted
* @property string $target_url
* @property string $format
* @property int|null $created_at

View File

@ -3,7 +3,7 @@ includes:
- ./vendor/spaze/phpstan-stripe/extension.neon
- phpstan-baseline.neon
parameters:
level: 2
level: 3
paths:
- app
excludePaths:
@ -29,4 +29,5 @@ parameters:
- '#makeHidden#'
- '#Socialite#'
- '#Access to protected property#'
- '#Call to undefined method .*#'
- '#Call to undefined method .*#'
- '#Argument of an invalid type stdClass supplied for foreach, only iterables are supported.#'