Skip to content

Commit

Permalink
Apply duster fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjunges committed Aug 9, 2024
1 parent 4190d0d commit 6f28493
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 29 deletions.
18 changes: 9 additions & 9 deletions app/Models/LaravelVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ class LaravelVersion extends Model

protected $guarded = [];

protected function casts(): array
{
return [
'released_at' => 'date',
'ends_bugfixes_at' => 'date',
'ends_securityfixes_at' => 'date',
];
}

public static function notificationDays(): array
{
return [
Expand Down Expand Up @@ -168,6 +159,15 @@ public function needsNotification()
return false;
}

protected function casts(): array
{
return [
'released_at' => 'date',
'ends_bugfixes_at' => 'date',
'ends_securityfixes_at' => 'date',
];
}

public function __toString()
{
return implode('.', [
Expand Down
6 changes: 3 additions & 3 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
web: __DIR__ . '/../routes/web.php',
commands: __DIR__ . '/../routes/console.php',
health: '/up',
then: function () {
Route::prefix('api')
Expand All @@ -31,4 +31,4 @@
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();
})->create();
2 changes: 1 addition & 1 deletion bootstrap/providers.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
return [
App\Providers\AppServiceProvider::class,
\App\Providers\RouteServiceProvider::class,
];
];
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@
'store' => env('APP_MAINTENANCE_STORE', 'database'),
],

];
];
2 changes: 1 addition & 1 deletion config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@

'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),

];
];
4 changes: 2 additions & 2 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@

'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_database_'),
],

'default' => [
Expand All @@ -170,4 +170,4 @@

],

];
];
4 changes: 2 additions & 2 deletions config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'url' => env('APP_URL') . '/storage',
'visibility' => 'public',
'throw' => false,
],
Expand Down Expand Up @@ -73,4 +73,4 @@
public_path('storage') => storage_path('app/public'),
],

];
];
4 changes: 2 additions & 2 deletions config/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
'handler_with' => [
'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'),
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'),
],
'processors' => [PsrLogMessageProcessor::class],
],
Expand Down Expand Up @@ -133,4 +133,4 @@

],

];
];
2 changes: 1 addition & 1 deletion config/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@
'name' => env('MAIL_FROM_NAME', 'Example'),
],

];
];
8 changes: 4 additions & 4 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
define('LARAVEL_START', microtime(true));

// Determine if the application is in maintenance mode...
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
if (file_exists($maintenance = __DIR__ . '/../storage/framework/maintenance.php')) {
require $maintenance;
}

// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';
require __DIR__ . '/../vendor/autoload.php';

// Bootstrap Laravel and handle the request...
(require_once __DIR__.'/../bootstrap/app.php')
->handleRequest(Request::capture());
(require_once __DIR__ . '/../bootstrap/app.php')
->handleRequest(Request::capture());
2 changes: 0 additions & 2 deletions routes/console.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;

Schedule::command('fetch-laravel-versions')->hourly();
Expand Down
1 change: 0 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@
Route::get('{version}', [LaravelVersionsController::class, 'show'])->name('versions.show');
});


Route::fallback(FallbackController::class)->middleware(SetLocale::class);

0 comments on commit 6f28493

Please sign in to comment.