feat: install phpstan and resolving reported errors in PHPStan

This commit is contained in:
amir-ys
2024-11-07 01:41:19 +03:30
parent b7efa6b24a
commit 865d565a91
27 changed files with 1023 additions and 642 deletions
+9 -9
View File
@@ -1,5 +1,7 @@
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
@@ -10,11 +12,8 @@
| contains the "web" middleware group. Now create something great!
|
*/
//
// app()->bind('messages', function() {
// return new \App\Appended\Classes\Common\Response\MessageResponse;
// });
#todo move passport routes to own file
/*
|--------------------------------------------------------------------------
| Laravel Passport Routes
@@ -26,6 +25,7 @@
| This will use "auth:api" guard instead of "auth"
|
*/
Route::get('oauth/authorize', '\Laravel\Passport\Http\Controllers\AuthorizationController@authorize')->middleware('auth:api');
Route::delete('oauth/authorize', '\Laravel\Passport\Http\Controllers\DenyAuthorizationController@deny')->middleware('auth:api');
Route::post('oauth/authorize', '\Laravel\Passport\Http\Controllers\ApproveAuthorizationController@approve')->middleware('auth:api');
@@ -51,19 +51,19 @@ Route::delete('oauth/tokens/{token_id}', '\Laravel\Passport\Http\Controllers\Aut
| Allows vue router to pick up all other URL's.
|
*/
Route::get('/test',function(){
Route::get('/test', function () {
return view('home');
});
// Route::get('Show/Package/{Package}', 'PackageController@show');
Route::get('/',function(){
Route::get('/', function () {
return view('showMaster');
});
Route::get('/Show/{any?}/{any2?}',function(){
Route::get('/Show/{any?}/{any2?}', function () {
return view('showMaster');
});
Route::get('Landingpage',function(){
Route::get('Landingpage', function () {
return view('Landingpage');
});
Route::get('ShowTestResult/{id}', 'TestResultController@showTestResult');
@@ -74,6 +74,6 @@ Route::get('ShowCycle/{Cycle}', 'CycleController@showCycle');
Route::post('/BarCode/{Code}/{Type?}', 'BarCodeController@generateBarcode');
Route::post('Package/QRCode/{Package}', 'BarCodeController@generatePackageQRCode');
Route::any('{all}', function(){
Route::any('{all}', function () {
return view('welcome');
})->where(['all' => '.*']);