Setup pint & run code style fix

This commit is contained in:
gdarko
2024-01-29 04:46:01 -06:00
parent 8de34efd8c
commit 4ab92473e9
406 changed files with 1616 additions and 2026 deletions

View File

@@ -1,5 +1,6 @@
<?php
use Illuminate\Support\Facades\Route;
use InvoiceShelf\Http\Controllers\V1\Admin\Auth\LoginController;
use InvoiceShelf\Http\Controllers\V1\Admin\Expense\ShowReceiptController;
use InvoiceShelf\Http\Controllers\V1\Admin\Report\CustomerSalesReportController;
@@ -18,7 +19,6 @@ use InvoiceShelf\Http\Controllers\V1\PDF\EstimatePdfController;
use InvoiceShelf\Http\Controllers\V1\PDF\InvoicePdfController;
use InvoiceShelf\Http\Controllers\V1\PDF\PaymentPdfController;
use InvoiceShelf\Models\Company;
use Illuminate\Support\Facades\Route;
// Module Asset Includes
// ----------------------------------------------
@@ -27,7 +27,6 @@ Route::get('/modules/styles/{style}', StyleController::class);
Route::get('/modules/scripts/{script}', ScriptController::class);
// Admin Auth
// ----------------------------------------------
@@ -37,7 +36,6 @@ Route::post('auth/logout', function () {
Auth::guard('web')->logout();
});
// Customer auth
// ----------------------------------------------
@@ -47,7 +45,6 @@ Route::post('/{company:slug}/customer/logout', function () {
Auth::guard('customer')->logout();
});
// Report PDF & Expense Endpoints
// ----------------------------------------------
@@ -73,14 +70,12 @@ Route::middleware('auth:sanctum')->prefix('reports')->group(function () {
//----------------------------------
Route::get('/profit-loss/{hash}', ProfitLossReportController::class);
// download expense receipt
// -------------------------------------------------
Route::get('/expenses/{expense}/download-receipt', DownloadReceiptController::class);
Route::get('/expenses/{expense}/receipt', ShowReceiptController::class);
});
// PDF Endpoints
// ----------------------------------------------
@@ -99,7 +94,6 @@ Route::middleware('pdf-auth')->group(function () {
Route::get('/payments/pdf/{payment:unique_hash}', PaymentPdfController::class);
});
// customer pdf endpoints for invoice, estimate and Payment
// -------------------------------------------------
@@ -114,7 +108,6 @@ Route::prefix('/customer')->group(function () {
Route::get('/payments/view/{email_log:token}', [CustomerPaymentPdfController::class, 'getPdf'])->name('payment');
});
// Setup for installation of app
// ----------------------------------------------
@@ -122,7 +115,6 @@ Route::get('/installation', function () {
return view('app');
})->name('install')->middleware('redirect-if-installed');
// Move other http requests to the Vue App
// -------------------------------------------------
@@ -134,7 +126,7 @@ Route::get('{company:slug}/customer/{vue?}', function (Company $company) {
return view('app')->with([
'customer_logo' => get_company_setting('customer_portal_logo', $company->id),
'current_theme' => get_company_setting('customer_portal_theme', $company->id),
'customer_page_title' => get_company_setting('customer_portal_page_title', $company->id)
'customer_page_title' => get_company_setting('customer_portal_page_title', $company->id),
]);
})->where('vue', '[\/\w\.-]*')->name('customer.dashboard')->middleware(['install']);