mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 03:04:05 +00:00
Setup pint & run code style fix
This commit is contained in:
@@ -25,7 +25,7 @@ class CompanyResource extends JsonResource
|
||||
'address' => $this->when($this->address()->exists(), function () {
|
||||
return new AddressResource($this->address);
|
||||
}),
|
||||
'roles' => RoleResource::collection($this->roles)
|
||||
'roles' => RoleResource::collection($this->roles),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class CurrencyResource extends JsonResource
|
||||
'thousand_separator' => $this->thousand_separator,
|
||||
'decimal_separator' => $this->decimal_separator,
|
||||
'swap_currency_symbol' => $this->swap_currency_symbol,
|
||||
'exchange_rate' => $this->exchange_rate
|
||||
'exchange_rate' => $this->exchange_rate,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace InvoiceShelf\Http\Resources;
|
||||
|
||||
use InvoiceShelf\Models\CompanySetting;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use InvoiceShelf\Models\CompanySetting;
|
||||
|
||||
class CustomFieldValueResource extends JsonResource
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ class CurrencyResource extends JsonResource
|
||||
'thousand_separator' => $this->thousand_separator,
|
||||
'decimal_separator' => $this->decimal_separator,
|
||||
'swap_currency_symbol' => $this->swap_currency_symbol,
|
||||
'exchange_rate' => $this->exchange_rate
|
||||
'exchange_rate' => $this->exchange_rate,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace InvoiceShelf\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use InvoiceShelf\Models\Module as ModelsModule;
|
||||
use InvoiceShelf\Models\Setting;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use Nwidart\Modules\Facades\Module;
|
||||
|
||||
class ModuleResource extends JsonResource
|
||||
@@ -50,7 +50,7 @@ class ModuleResource extends JsonResource
|
||||
'update_available' => $this->updateAvailable(),
|
||||
'video_link' => $this->video_link,
|
||||
'video_thumbnail' => $this->video_thumbnail,
|
||||
'links' => $this->links
|
||||
'links' => $this->links,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
namespace InvoiceShelf\Http\Resources;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use InvoiceShelf\Models\CompanySetting;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use InvoiceShelf\Models\CompanySetting;
|
||||
|
||||
class RoleResource extends JsonResource
|
||||
{
|
||||
@@ -22,7 +22,7 @@ class RoleResource extends JsonResource
|
||||
'title' => $this->title,
|
||||
'level' => $this->level,
|
||||
'formatted_created_at' => $this->getFormattedAt(),
|
||||
'abilities' => $this->getAbilities()
|
||||
'abilities' => $this->getAbilities(),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class UserResource extends JsonResource
|
||||
}),
|
||||
'companies' => $this->when($this->companies()->exists(), function () {
|
||||
return CompanyResource::collection($this->companies);
|
||||
})
|
||||
}),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user