diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 8ed743dbb..1946dc58e 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -16,9 +16,9 @@ protected function schedule(Schedule $schedule) { $schedule->command('moox:batchjob')->daily(); $schedule->command('moox:demojob')->hourly(); - //$schedule->command('moox:failjob')->cron('0 */3 * * *'); // Every 3 minutes - //$schedule->command('moox:longjob')->cron('0 */45 * * *'); // Every 45 minutes - //$schedule->command('moox:timeoutjob')->cron('0 */20 * * *'); // Every 20 minutes + // $schedule->command('moox:failjob')->cron('0 */3 * * *'); // Every 3 minutes + // $schedule->command('moox:longjob')->cron('0 */45 * * *'); // Every 45 minutes + // $schedule->command('moox:timeoutjob')->cron('0 */20 * * *'); // Every 20 minutes } /** diff --git a/app/Models/User.php b/app/Models/User.php index 3c567c1a9..d944b6494 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -47,7 +47,7 @@ class User extends Authenticatable implements FilamentUser public function canAccessPanel(Panel $panel): bool { // TODO: Implement roles and permissions. - //return $this->hasAnyRole(['super_admin', 'filament_user']); + // return $this->hasAnyRole(['super_admin', 'filament_user']); return true; } } diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index d023adb5c..3c6d705b7 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -32,7 +32,7 @@ public function panel(Panel $panel): Panel ->passwordReset(RequestPasswordReset::class) ->login(Login::class) // TODO: check this - //->authGuard('admin') + // ->authGuard('admin') ->brandLogo(asset('img/logo.png')) ->brandLogoHeight('1.6rem') ->colors([ @@ -70,9 +70,9 @@ public function panel(Panel $panel): Panel GravatarPlugin::make(), \Moox\Audit\AuditPlugin::make(), \Moox\Locate\AreaPlugin::make(), - //\Moox\Locate\CountryPlugin::make(), - //\Moox\Locate\LanguagePlugin::make(), - //\Moox\Locate\TimezonePlugin::make(), + // \Moox\Locate\CountryPlugin::make(), + // \Moox\Locate\LanguagePlugin::make(), + // \Moox\Locate\TimezonePlugin::make(), // Builder plugin \Moox\Builder\SimpleTaxonomyPlugin::make(), @@ -99,8 +99,8 @@ public function panel(Panel $panel): Panel \Moox\Jobs\JobsBatchesPlugin::make(), // Sync Plugins - //\Moox\Sync\SyncPlugin::make(), - //\Moox\Sync\PlatformPlugin::make(), + // \Moox\Sync\SyncPlugin::make(), + // \Moox\Sync\PlatformPlugin::make(), // User plugins \Moox\User\UserPlugin::make(), diff --git a/app/Providers/Filament/PressPanelProvider.php b/app/Providers/Filament/PressPanelProvider.php index c22a1e9bc..412fe984b 100644 --- a/app/Providers/Filament/PressPanelProvider.php +++ b/app/Providers/Filament/PressPanelProvider.php @@ -89,8 +89,8 @@ public function panel(Panel $panel): Panel \Moox\Jobs\JobsBatchesPlugin::make(), // Sync Plugins - //\Moox\Sync\SyncPlugin::make(), - //\Moox\Sync\PlatformPlugin::make(), + // \Moox\Sync\SyncPlugin::make(), + // \Moox\Sync\PlatformPlugin::make(), // User plugins \Moox\Press\WpUserPlugin::make(), diff --git a/config/permission.php b/config/permission.php index 5b6e184c3..f7c8f5a9d 100644 --- a/config/permission.php +++ b/config/permission.php @@ -75,8 +75,8 @@ /* * Change this if you want to name the related pivots other than defaults */ - 'role_pivot_key' => null, //default 'role_id', - 'permission_pivot_key' => null, //default 'permission_id', + 'role_pivot_key' => null, // default 'role_id', + 'permission_pivot_key' => null, // default 'permission_id', /* * Change this if you want to name the related model primary key other than diff --git a/config/press.php b/config/press.php index 9ed939502..e9114e7dd 100644 --- a/config/press.php +++ b/config/press.php @@ -1148,7 +1148,7 @@ 'user_registered' => now()->toDateTimeString(), 'user_status' => '0', // TODO: suppress errors for first and last name - //'display_name' => $first_name.' '.$last_name ?? $user_login ?? '', + // 'display_name' => $first_name.' '.$last_name ?? $user_login ?? '', ], /* diff --git a/database/migrations/2024_10_18_223207_create_taggables_table.php b/database/migrations/2024_10_18_223207_create_taggables_table.php index d79120623..aecb75fc2 100644 --- a/database/migrations/2024_10_18_223207_create_taggables_table.php +++ b/database/migrations/2024_10_18_223207_create_taggables_table.php @@ -13,7 +13,7 @@ public function up(): void { Schema::create('taggables', function (Blueprint $table) { $table->id(); - $table->foreignId('tag_id')->constrained()->onDelete('cascade'); //???????? + $table->foreignId('tag_id')->constrained()->onDelete('cascade'); // ???????? $table->morphs('taggable'); $table->timestamps(); }); diff --git a/packages/audit/src/Commands/InstallCommand.php b/packages/audit/src/Commands/InstallCommand.php index 2b6664ddc..6d14353b8 100644 --- a/packages/audit/src/Commands/InstallCommand.php +++ b/packages/audit/src/Commands/InstallCommand.php @@ -162,12 +162,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/builder/src/Commands/InstallCommand.php b/packages/builder/src/Commands/InstallCommand.php index 4d16e423d..322cfd84d 100644 --- a/packages/builder/src/Commands/InstallCommand.php +++ b/packages/builder/src/Commands/InstallCommand.php @@ -173,12 +173,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/builder/src/Providers/BuilderPanelProvider.php b/packages/builder/src/Providers/BuilderPanelProvider.php index 007710e92..2316a6b85 100644 --- a/packages/builder/src/Providers/BuilderPanelProvider.php +++ b/packages/builder/src/Providers/BuilderPanelProvider.php @@ -32,7 +32,7 @@ public function panel(Panel $panel): Panel ]) ->discoverResources(in: app_path('Builder/Resources'), for: 'App\\Builder\\Resources') ->plugins([ - //ExpiryPlugin::make(), + // ExpiryPlugin::make(), ]) ->pages([ BuilderDashboard::class, diff --git a/packages/category/src/Commands/InstallCommand.php b/packages/category/src/Commands/InstallCommand.php index e9abca651..9d4634ccc 100644 --- a/packages/category/src/Commands/InstallCommand.php +++ b/packages/category/src/Commands/InstallCommand.php @@ -162,12 +162,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/category/src/Resources/CategoryResource.php b/packages/category/src/Resources/CategoryResource.php index 969913305..242f2998b 100644 --- a/packages/category/src/Resources/CategoryResource.php +++ b/packages/category/src/Resources/CategoryResource.php @@ -35,7 +35,7 @@ use Moox\Core\Traits\Base\BaseInResource; use Moox\Core\Traits\Tabs\TabsInResource; -//use Moox\Core\Forms\Components\TitleWithSlugInput; +// use Moox\Core\Forms\Components\TitleWithSlugInput; class CategoryResource extends Resource { diff --git a/packages/core/tests/Feature/ConfigApiTest.php b/packages/core/tests/Feature/ConfigApiTest.php index e81d59cec..25f67b9f3 100644 --- a/packages/core/tests/Feature/ConfigApiTest.php +++ b/packages/core/tests/Feature/ConfigApiTest.php @@ -1,11 +1,11 @@ get('/api/core'); // // $response->assertStatus(200); -//}); +// }); // -//arch('globals') +// arch('globals') // ->expect(['dd', 'dump']) // ->not->toBeUsed(); diff --git a/packages/data-languages/src/Commands/InstallCommand.php b/packages/data-languages/src/Commands/InstallCommand.php index e26ffb003..a555bded4 100644 --- a/packages/data-languages/src/Commands/InstallCommand.php +++ b/packages/data-languages/src/Commands/InstallCommand.php @@ -162,12 +162,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/expiry/src/Commands/InstallCommand.php b/packages/expiry/src/Commands/InstallCommand.php index 53dc4fcdc..9a523e9f4 100644 --- a/packages/expiry/src/Commands/InstallCommand.php +++ b/packages/expiry/src/Commands/InstallCommand.php @@ -162,12 +162,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/jobs/resources/lang/de/translations.php b/packages/jobs/resources/lang/de/translations.php index 1dbaa6776..4c48947ee 100644 --- a/packages/jobs/resources/lang/de/translations.php +++ b/packages/jobs/resources/lang/de/translations.php @@ -21,10 +21,10 @@ 'plural' => 'Jobs Batches', 'navigation_label' => 'Job Batches', ], - //general + // general 'breadcrumb' => 'Jobs', 'navigation_group' => 'Moox Jobs', - //used by multiple plugins + // used by multiple plugins 'id' => 'ID', 'failed_at' => 'Fehlgeschlagen am', 'delete' => 'Löschen', @@ -36,18 +36,18 @@ 'waiting' => 'Wartend', 'exception_message' => 'Exception message', 'created_at' => 'Erstellt am', - //jobs + // jobs 'status' => 'Status', 'running' => 'In Bearbeitung', 'succeeded' => 'Erfolgreich', 'progress' => 'Fortschritt', - //Jobswaiting + // Jobswaiting 'attempts' => 'Versuche', 'reserved_at' => 'Reserviert am', 'waiting_jobs' => 'Wartende Jobs', 'execution_time' => 'Gesamte Ausführungszeit', 'average_time' => 'Durchschnittliche Ausführungszeit', - //jobfailed + // jobfailed 'uuid' => 'Uuid', 'payload' => 'Warteschlange', 'connection' => 'Verbindung', @@ -59,7 +59,7 @@ 'delete_all_failed_jobs_notification' => 'Alle fehlgeschlagenen Jobs wurden gelöscht', 'jobs_pushed_back_notification' => 'Jobs sind wieder in der Warteschlange.', 'job_pushed_back_notification' => 'ist wieder zurück in der Warteschlange', - //jobbatches + // jobbatches 'canceled_at' => 'Abgebrochen am', 'failed_jobs' => 'Fehlgeschlagene Jobs', 'failed_job_id' => 'Fehlgeschlagener Job ID', diff --git a/packages/jobs/resources/lang/en/translations.php b/packages/jobs/resources/lang/en/translations.php index 1f358d592..4e1e6a541 100644 --- a/packages/jobs/resources/lang/en/translations.php +++ b/packages/jobs/resources/lang/en/translations.php @@ -22,11 +22,11 @@ 'navigation_label' => 'Job Batches', ], - //general + // general 'breadcrumb' => 'Moox Job', 'navigation_group' => 'Job Manager', - //used by multiple plugins + // used by multiple plugins 'id' => 'ID', 'failed_at' => 'Failed at', 'delete' => 'Delete', @@ -39,20 +39,20 @@ 'exception_message' => 'Exception message', 'created_at' => 'Created at', - //jobs + // jobs 'status' => 'Status', 'running' => 'Running', 'succeeded' => 'Succeeded', 'progress' => 'Progress', - //Jobswaiting + // Jobswaiting 'attempts' => 'Attempts', 'reserved_at' => 'Reserved at', 'waiting_jobs' => 'Total Jobs Waiting', 'execution_time' => 'Total Execution Time', 'average_time' => 'Average Execution Time', - //jobfailed + // jobfailed 'uuid' => 'Uuid', 'payload' => 'Queue', 'connection' => 'Connection', @@ -65,7 +65,7 @@ 'jobs_pushed_back_notification' => 'jobs have been pushed back onto the queue.', 'job_pushed_back_notification' => 'has been pushed back onto the queue.', - //jobbatches + // jobbatches 'canceled_at' => 'Canceled at', 'failed_jobs' => 'Failed Jobs', 'failed_job_id' => 'Failed Job id', diff --git a/packages/jobs/resources/lang/es/translations.php b/packages/jobs/resources/lang/es/translations.php index e2e45a76b..aa7126661 100644 --- a/packages/jobs/resources/lang/es/translations.php +++ b/packages/jobs/resources/lang/es/translations.php @@ -21,10 +21,10 @@ 'plural' => 'Lotes de trabajos', 'navigation_label' => 'Lotes de trabajos', ], - //general + // general 'breadcrumb' => 'Trabajo en Moox', 'navigation_group' => 'Sistema', - //used by multiple plugins + // used by multiple plugins 'queue' => 'Cola', 'name' => 'Nombre', 'started_at' => 'Iniciado a las', @@ -45,7 +45,7 @@ 'delete' => 'Borrar', 'finished_at' => 'Completado en', 'exception_message' => 'Mensaje de excepción', - //jobfailed + // jobfailed 'uuid' => 'Identificador único universal (Uuid)', 'payload' => 'Cola', 'connection' => 'Conexión', @@ -54,11 +54,11 @@ 'delete_all_failed_jobs' => 'Se eliminaron todos los trabajos fallidos', 'delete_all_failed_jobs_notification' => 'Se han eliminado todos los trabajos fallidos.', 'jobs_pushed_back_notification' => 'Los trabajos han sido devueltos a la cola.', - //jobbatches + // jobbatches 'canceled_at' => 'Cancelado en', 'failed_jobs' => 'Trabajos fallidos', 'prune_batches_notification' => 'Todos los lotes han sido purgados.', - //used by multiple plugins + // used by multiple plugins 'id' => 'ID', 'failed_job_id' => 'ID del trabajo fallido', 'pending_jobs' => 'Trabajos pendientes', diff --git a/packages/jobs/resources/lang/hr/translations.php b/packages/jobs/resources/lang/hr/translations.php index cf9ddb9b4..158a80d88 100644 --- a/packages/jobs/resources/lang/hr/translations.php +++ b/packages/jobs/resources/lang/hr/translations.php @@ -21,10 +21,10 @@ 'plural' => '', 'navigation_label' => '', ], - //general + // general 'breadcrumb' => '', 'navigation_group' => '', - //used by multiple plugins + // used by multiple plugins 'id' => 'ID', 'failed_at' => 'Neuspjelo', 'delete' => 'Izbriši', @@ -36,18 +36,18 @@ 'waiting' => 'Čeka', 'exception_message' => 'Poruka za iznimku', 'created_at' => 'Stvoreno', - //jobs + // jobs 'status' => 'Stanje', 'running' => '', 'succeeded' => 'Uspjelo', 'progress' => 'Napredak', - //Jobswaiting + // Jobswaiting 'attempts' => 'Pokušaji', 'reserved_at' => 'Rezervirano', 'waiting_jobs' => '', 'execution_time' => 'Ukupno vrijeme izvršavanja', 'average_time' => 'Prosječno vrijeme izvršavanja', - //jobfailed + // jobfailed 'uuid' => 'Univerzalni jedinstveni identifikator (Uuid)', 'payload' => '', 'connection' => 'Veza', @@ -59,7 +59,7 @@ 'delete_all_failed_jobs_notification' => 'Svi neuspjeli poslovi su uklonjeni.', 'jobs_pushed_back_notification' => '', 'job_pushed_back_notification' => '', - //jobbatches + // jobbatches 'canceled_at' => 'Prekinuto', 'failed_jobs' => 'Neuspjeli poslovi', 'failed_job_id' => 'ID neuspjelog posla', diff --git a/packages/jobs/src/Commands/InstallCommand.php b/packages/jobs/src/Commands/InstallCommand.php index e0907fa11..69282de4e 100644 --- a/packages/jobs/src/Commands/InstallCommand.php +++ b/packages/jobs/src/Commands/InstallCommand.php @@ -213,12 +213,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/locate/src/Commands/InstallCommand.php b/packages/locate/src/Commands/InstallCommand.php index b3f6be947..a138dfc82 100644 --- a/packages/locate/src/Commands/InstallCommand.php +++ b/packages/locate/src/Commands/InstallCommand.php @@ -160,12 +160,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/locate/src/Resources/AreaResource/Pages/ListPage.php b/packages/locate/src/Resources/AreaResource/Pages/ListPage.php index e3e0d0413..e024ddd4a 100644 --- a/packages/locate/src/Resources/AreaResource/Pages/ListPage.php +++ b/packages/locate/src/Resources/AreaResource/Pages/ListPage.php @@ -18,7 +18,7 @@ public function getActions(): array public function getHeaderWidgets(): array { return [ - //LocateWidgets::class, + // LocateWidgets::class, ]; } diff --git a/packages/login-link/src/Commands/InstallCommand.php b/packages/login-link/src/Commands/InstallCommand.php index 7ead9a369..f9530b9d9 100644 --- a/packages/login-link/src/Commands/InstallCommand.php +++ b/packages/login-link/src/Commands/InstallCommand.php @@ -160,12 +160,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/login-link/src/Models/LoginLink.php b/packages/login-link/src/Models/LoginLink.php index 9099752b0..e5c4fc801 100644 --- a/packages/login-link/src/Models/LoginLink.php +++ b/packages/login-link/src/Models/LoginLink.php @@ -31,8 +31,8 @@ public function __construct(array $attributes = []) parent::__construct($attributes); // TODO: Add the appends here. - //$this->appends = [ - //]; + // $this->appends = [ + // ]; } protected static function boot() diff --git a/packages/notifications/src/Commands/InstallCommand.php b/packages/notifications/src/Commands/InstallCommand.php index 00958d516..725c9eb4a 100644 --- a/packages/notifications/src/Commands/InstallCommand.php +++ b/packages/notifications/src/Commands/InstallCommand.php @@ -160,12 +160,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/page/src/Commands/InstallCommand.php b/packages/page/src/Commands/InstallCommand.php index c0ed1a957..72ffd7e88 100644 --- a/packages/page/src/Commands/InstallCommand.php +++ b/packages/page/src/Commands/InstallCommand.php @@ -159,12 +159,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/passkey/src/Commands/InstallCommand.php b/packages/passkey/src/Commands/InstallCommand.php index 815124970..fd6055e90 100644 --- a/packages/passkey/src/Commands/InstallCommand.php +++ b/packages/passkey/src/Commands/InstallCommand.php @@ -160,12 +160,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/passkey/src/PasskeyServiceProvider.php b/packages/passkey/src/PasskeyServiceProvider.php index d6125c837..6a1e57e61 100644 --- a/packages/passkey/src/PasskeyServiceProvider.php +++ b/packages/passkey/src/PasskeyServiceProvider.php @@ -16,7 +16,7 @@ public function configurePackage(Package $package): void ->name('passkey') ->hasConfigFile() ->hasViews() - //->hasRoute('web') + // ->hasRoute('web') ->hasTranslations() ->hasMigrations(['create_passkeys_table']) ->hasCommand(InstallCommand::class); diff --git a/packages/passkey/src/Resources/PasskeyResource.php b/packages/passkey/src/Resources/PasskeyResource.php index fafa7be51..7f5f85cee 100644 --- a/packages/passkey/src/Resources/PasskeyResource.php +++ b/packages/passkey/src/Resources/PasskeyResource.php @@ -132,7 +132,7 @@ public static function getPages(): array public static function getWidgets(): array { return [ - //PasskeyWidgets::class, + // PasskeyWidgets::class, ]; } diff --git a/packages/passkey/src/Resources/PasskeyResource/Pages/ListPage.php b/packages/passkey/src/Resources/PasskeyResource/Pages/ListPage.php index ea500d9f5..081892e83 100644 --- a/packages/passkey/src/Resources/PasskeyResource/Pages/ListPage.php +++ b/packages/passkey/src/Resources/PasskeyResource/Pages/ListPage.php @@ -23,7 +23,7 @@ public function getActions(): array public function getHeaderWidgets(): array { return [ - //PasskeyWidgets::class, + // PasskeyWidgets::class, ]; } diff --git a/packages/permission/config/permission.php b/packages/permission/config/permission.php index af5d4e219..5f0be8db0 100644 --- a/packages/permission/config/permission.php +++ b/packages/permission/config/permission.php @@ -139,8 +139,8 @@ /* * Change this if you want to name the related pivots other than defaults */ - 'role_pivot_key' => null, //default 'role_id', - 'permission_pivot_key' => null, //default 'permission_id', + 'role_pivot_key' => null, // default 'role_id', + 'permission_pivot_key' => null, // default 'permission_id', /* * Change this if you want to name the related model primary key other than diff --git a/packages/permission/src/Commands/InstallCommand.php b/packages/permission/src/Commands/InstallCommand.php index 30b27c018..9054f432d 100644 --- a/packages/permission/src/Commands/InstallCommand.php +++ b/packages/permission/src/Commands/InstallCommand.php @@ -160,12 +160,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/press-trainings/src/Commands/InstallCommand.php b/packages/press-trainings/src/Commands/InstallCommand.php index 394440283..bf0ed1d4e 100644 --- a/packages/press-trainings/src/Commands/InstallCommand.php +++ b/packages/press-trainings/src/Commands/InstallCommand.php @@ -136,12 +136,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/press-wiki/src/Commands/InstallCommand.php b/packages/press-wiki/src/Commands/InstallCommand.php index ca45fc88e..3d9ebd431 100644 --- a/packages/press-wiki/src/Commands/InstallCommand.php +++ b/packages/press-wiki/src/Commands/InstallCommand.php @@ -136,12 +136,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/press/config/press.php b/packages/press/config/press.php index 9ed939502..e9114e7dd 100644 --- a/packages/press/config/press.php +++ b/packages/press/config/press.php @@ -1148,7 +1148,7 @@ 'user_registered' => now()->toDateTimeString(), 'user_status' => '0', // TODO: suppress errors for first and last name - //'display_name' => $first_name.' '.$last_name ?? $user_login ?? '', + // 'display_name' => $first_name.' '.$last_name ?? $user_login ?? '', ], /* diff --git a/packages/press/src/Commands/InstallCommand.php b/packages/press/src/Commands/InstallCommand.php index 64abbfea3..6b7969405 100644 --- a/packages/press/src/Commands/InstallCommand.php +++ b/packages/press/src/Commands/InstallCommand.php @@ -37,8 +37,8 @@ public function handle() $this->art(); $this->welcome(); $this->publishConfiguration(); - //$this->publishMigrations(); - //$this->runMigrations(); + // $this->publishMigrations(); + // $this->runMigrations(); $this->registerPluginInPanelProvider(); $this->sayGoodbye(); } @@ -160,12 +160,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/press/src/Resources/WpMediaResource.php b/packages/press/src/Resources/WpMediaResource.php index a76b3ec78..a62467440 100644 --- a/packages/press/src/Resources/WpMediaResource.php +++ b/packages/press/src/Resources/WpMediaResource.php @@ -284,7 +284,7 @@ public static function table(Table $table): Table ->label(__('core::core.asset')) ->square() ->size('100%'), - //->url(fn ($record) => $record->getAssetAttribute()), + // ->url(fn ($record) => $record->getAssetAttribute()), ]), /* Currently not looking nice @@ -357,8 +357,8 @@ public static function table(Table $table): Table 96, 'all', ]); - //->actions([ViewAction::make(), EditAction::make()]); - //->bulkActions([DeleteBulkAction::make()]); + // ->actions([ViewAction::make(), EditAction::make()]); + // ->bulkActions([DeleteBulkAction::make()]); } public static function getRelations(): array diff --git a/packages/security/src/Commands/InstallCommand.php b/packages/security/src/Commands/InstallCommand.php index d95334bc5..ed6813718 100644 --- a/packages/security/src/Commands/InstallCommand.php +++ b/packages/security/src/Commands/InstallCommand.php @@ -160,12 +160,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/sync/src/Commands/InstallCommand.php b/packages/sync/src/Commands/InstallCommand.php index 2380db4dd..7c637304d 100644 --- a/packages/sync/src/Commands/InstallCommand.php +++ b/packages/sync/src/Commands/InstallCommand.php @@ -159,12 +159,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/tag/src/Commands/InstallCommand.php b/packages/tag/src/Commands/InstallCommand.php index 54f4e8006..7447541a6 100644 --- a/packages/tag/src/Commands/InstallCommand.php +++ b/packages/tag/src/Commands/InstallCommand.php @@ -162,12 +162,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/trainings/src/Commands/InstallCommand.php b/packages/trainings/src/Commands/InstallCommand.php index 56a6b6615..09d86846c 100644 --- a/packages/trainings/src/Commands/InstallCommand.php +++ b/packages/trainings/src/Commands/InstallCommand.php @@ -160,12 +160,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/user-device/src/Commands/InstallCommand.php b/packages/user-device/src/Commands/InstallCommand.php index 49adc40a3..9d342f6d5 100644 --- a/packages/user-device/src/Commands/InstallCommand.php +++ b/packages/user-device/src/Commands/InstallCommand.php @@ -160,12 +160,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/user-device/src/Notifications/NewDeviceNotification.php b/packages/user-device/src/Notifications/NewDeviceNotification.php index cd1e6ef94..b1823a0e7 100644 --- a/packages/user-device/src/Notifications/NewDeviceNotification.php +++ b/packages/user-device/src/Notifications/NewDeviceNotification.php @@ -49,7 +49,7 @@ public function toMail($notifiable) ->line(__('core::device.device_details').': '.$this->deviceDetails['title']) ->line(__('core::device.if_not_you_secure_account')); // TODO: Add a button to review devices (need user profile) or Magic Link or to secure account - //->action('Review Devices', url('/user/devices')) + // ->action('Review Devices', url('/user/devices')) } /** diff --git a/packages/user-device/src/Resources/UserDeviceResource.php b/packages/user-device/src/Resources/UserDeviceResource.php index b7068a367..6955dfe1e 100644 --- a/packages/user-device/src/Resources/UserDeviceResource.php +++ b/packages/user-device/src/Resources/UserDeviceResource.php @@ -138,7 +138,7 @@ public static function getPages(): array { return [ 'index' => ListPage::route('/'), - //'view' => ViewPage::route('/{record}'), + // 'view' => ViewPage::route('/{record}'), ]; } @@ -146,7 +146,7 @@ public static function getWidgets(): array { return [ // TODO: Implement widgets - //UserDeviceWidgets::class, + // UserDeviceWidgets::class, ]; } diff --git a/packages/user-device/src/Resources/UserDeviceResource/Pages/ListPage.php b/packages/user-device/src/Resources/UserDeviceResource/Pages/ListPage.php index 17e06468a..52e2c5e2d 100644 --- a/packages/user-device/src/Resources/UserDeviceResource/Pages/ListPage.php +++ b/packages/user-device/src/Resources/UserDeviceResource/Pages/ListPage.php @@ -23,7 +23,7 @@ public function getHeaderWidgets(): array { return [ // TODO: Widgets - //UserDeviceWidgets::class, + // UserDeviceWidgets::class, ]; } diff --git a/packages/user-session/config/user-session.php b/packages/user-session/config/user-session.php index 995f174a9..7222f09c6 100644 --- a/packages/user-session/config/user-session.php +++ b/packages/user-session/config/user-session.php @@ -126,6 +126,6 @@ | // TODO: currently not implemented! */ 'whitelisted_ips' => [ - //'Your Network' => '61.2.101.101', + // 'Your Network' => '61.2.101.101', ], ]; diff --git a/packages/user-session/src/Commands/InstallCommand.php b/packages/user-session/src/Commands/InstallCommand.php index 3d4d1c683..a27db8ea6 100644 --- a/packages/user-session/src/Commands/InstallCommand.php +++ b/packages/user-session/src/Commands/InstallCommand.php @@ -164,12 +164,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/user-session/src/Resources/UserSessionResource.php b/packages/user-session/src/Resources/UserSessionResource.php index 802248ee3..c806c7ca7 100644 --- a/packages/user-session/src/Resources/UserSessionResource.php +++ b/packages/user-session/src/Resources/UserSessionResource.php @@ -34,7 +34,7 @@ public static function form(Form $form): Form { return $form ->schema([ - //TextInput::make('id') + // TextInput::make('id') // ->maxLength(255), TextInput::make('user_id') ->label(__('core::user.user_id')) @@ -45,8 +45,8 @@ public static function form(Form $form): Form TextInput::make('user_agent') ->label(__('core::user.user_agent')) ->maxLength(255), - //Textarea::make('payload'), - //TextInput::make('last_activity') + // Textarea::make('payload'), + // TextInput::make('last_activity') // ->maxLength(255), ]); } @@ -127,7 +127,7 @@ public static function getPages(): array { return [ 'index' => ListPage::route('/'), - //'view' => ViewPage::route('/{record}'), + // 'view' => ViewPage::route('/{record}'), ]; } @@ -136,7 +136,7 @@ public static function getWidgets(): array { return [ // TODO: Implement widgets - //UserSessionWidgets::class, + // UserSessionWidgets::class, ]; } diff --git a/packages/user-session/src/Resources/UserSessionResource/Pages/ListPage.php b/packages/user-session/src/Resources/UserSessionResource/Pages/ListPage.php index 4f2a739f8..18cc145d7 100644 --- a/packages/user-session/src/Resources/UserSessionResource/Pages/ListPage.php +++ b/packages/user-session/src/Resources/UserSessionResource/Pages/ListPage.php @@ -23,7 +23,7 @@ public function getHeaderWidgets(): array { return [ // TODO: Widgets - //UserSessionWidgets::class, + // UserSessionWidgets::class, ]; } diff --git a/packages/user/src/Commands/InstallCommand.php b/packages/user/src/Commands/InstallCommand.php index 7e04320ce..33af82f24 100644 --- a/packages/user/src/Commands/InstallCommand.php +++ b/packages/user/src/Commands/InstallCommand.php @@ -195,12 +195,12 @@ public function registerPluginInPanelProvider(): void $panelsToregister = $this->getPanelProviderPath(); if ($panelsToregister != null) { if (is_array($panelsToregister)) { - //Multiselect + // Multiselect foreach ($panelsToregister as $panelprovider) { $this->registerPlugins($providerPath.'/'.$panelprovider); } } else { - //only one + // only one $this->registerPlugins($panelsToregister); } } else { diff --git a/packages/user/src/Models/User.php b/packages/user/src/Models/User.php index c4f254d74..679bbd54c 100644 --- a/packages/user/src/Models/User.php +++ b/packages/user/src/Models/User.php @@ -50,7 +50,7 @@ class User extends Authenticatable implements FilamentUser, HasAvatar public function canAccessPanel(Panel $panel): bool { // TODO: Implement roles and permissions. - //return $this->hasAnyRole(['super_admin', 'filament_user']); + // return $this->hasAnyRole(['super_admin', 'filament_user']); return true; } diff --git a/packages/user/src/Resources/UserResource.php b/packages/user/src/Resources/UserResource.php index a8088820a..bbe963e5e 100644 --- a/packages/user/src/Resources/UserResource.php +++ b/packages/user/src/Resources/UserResource.php @@ -334,10 +334,10 @@ public static function table(Table $table): Table public static function getRelations(): array { return [ - //UserResource\RelationManagers\AuthorsRelationManager::class, - //UserResource\RelationManagers\SessionsRelationManager::class, - //UserResource\RelationManagers\SyncsRelationManager::class, - //UserResource\RelationManagers\PlatformsRelationManager::class, + // UserResource\RelationManagers\AuthorsRelationManager::class, + // UserResource\RelationManagers\SessionsRelationManager::class, + // UserResource\RelationManagers\SyncsRelationManager::class, + // UserResource\RelationManagers\PlatformsRelationManager::class, ]; } diff --git a/tests/ArchTest.php b/tests/ArchTest.php index 50889278c..e33f6a5df 100644 --- a/tests/ArchTest.php +++ b/tests/ArchTest.php @@ -20,5 +20,5 @@ ->expect('App\Http') ->toOnlyBeUsedIn('App\Http'); -//arch()->preset()->php(); -//arch()->preset()->security()->ignoring('md5'); +// arch()->preset()->php(); +// arch()->preset()->security()->ignoring('md5');