Lint PHP code psr-12, add GH action

This commit is contained in:
Julien Nahum
2024-02-23 11:54:12 +01:00
parent e85e4df7fe
commit 62971a2ef4
226 changed files with 2338 additions and 2144 deletions

View File

@@ -2,8 +2,8 @@
return [
'enabled' => !empty(env('CADDY_SECRET')) && !empty(env('CADDY_AUTHORIZED_IPS', [])),
'enabled' => ! empty(env('CADDY_SECRET')) && ! empty(env('CADDY_AUTHORIZED_IPS', [])),
'caddy_secret' => env('CADDY_SECRET'),
'authorized_ips' => explode(',', env('CADDY_AUTHORIZED_IPS','')),
'authorized_ips' => explode(',', env('CADDY_AUTHORIZED_IPS', '')),
];

View File

@@ -14,7 +14,7 @@ return [
| Here you can specify how big the chunk should be.
|
*/
'chunk_size' => 1000,
'chunk_size' => 1000,
/*
|--------------------------------------------------------------------------
@@ -41,14 +41,14 @@ return [
| Configure e.g. delimiter, enclosure and line ending for CSV exports.
|
*/
'csv' => [
'delimiter' => ',',
'enclosure' => '"',
'line_ending' => PHP_EOL,
'use_bom' => true,
'csv' => [
'delimiter' => ',',
'enclosure' => '"',
'line_ending' => PHP_EOL,
'use_bom' => true,
'include_separator_line' => false,
'excel_compatibility' => false,
'output_encoding' => '',
'excel_compatibility' => false,
'output_encoding' => '',
],
/*
@@ -59,20 +59,20 @@ return [
| Configure e.g. default title, creator, subject,...
|
*/
'properties' => [
'creator' => '',
'properties' => [
'creator' => '',
'lastModifiedBy' => '',
'title' => '',
'description' => '',
'subject' => '',
'keywords' => '',
'category' => '',
'manager' => '',
'company' => '',
'title' => '',
'description' => '',
'subject' => '',
'keywords' => '',
'category' => '',
'manager' => '',
'company' => '',
],
],
'imports' => [
'imports' => [
/*
|--------------------------------------------------------------------------
@@ -121,12 +121,12 @@ return [
| Configure e.g. delimiter, enclosure and line ending for CSV imports.
|
*/
'csv' => [
'delimiter' => null,
'enclosure' => '"',
'csv' => [
'delimiter' => null,
'enclosure' => '"',
'escape_character' => '\\',
'contiguous' => false,
'input_encoding' => 'UTF-8',
'contiguous' => false,
'input_encoding' => 'UTF-8',
],
/*
@@ -137,16 +137,16 @@ return [
| Configure e.g. default title, creator, subject,...
|
*/
'properties' => [
'creator' => '',
'properties' => [
'creator' => '',
'lastModifiedBy' => '',
'title' => '',
'description' => '',
'subject' => '',
'keywords' => '',
'category' => '',
'manager' => '',
'company' => '',
'title' => '',
'description' => '',
'subject' => '',
'keywords' => '',
'category' => '',
'manager' => '',
'company' => '',
],
],
@@ -161,21 +161,21 @@ return [
|
*/
'extension_detector' => [
'xlsx' => Excel::XLSX,
'xlsm' => Excel::XLSX,
'xltx' => Excel::XLSX,
'xltm' => Excel::XLSX,
'xls' => Excel::XLS,
'xlt' => Excel::XLS,
'ods' => Excel::ODS,
'ots' => Excel::ODS,
'slk' => Excel::SLK,
'xml' => Excel::XML,
'xlsx' => Excel::XLSX,
'xlsm' => Excel::XLSX,
'xltx' => Excel::XLSX,
'xltm' => Excel::XLSX,
'xls' => Excel::XLS,
'xlt' => Excel::XLS,
'ods' => Excel::ODS,
'ots' => Excel::ODS,
'slk' => Excel::SLK,
'xml' => Excel::XML,
'gnumeric' => Excel::GNUMERIC,
'htm' => Excel::HTML,
'html' => Excel::HTML,
'csv' => Excel::CSV,
'tsv' => Excel::TSV,
'htm' => Excel::HTML,
'html' => Excel::HTML,
'csv' => Excel::CSV,
'tsv' => Excel::TSV,
/*
|--------------------------------------------------------------------------
@@ -186,7 +186,7 @@ return [
| Available options: Excel::MPDF | Excel::TCPDF | Excel::DOMPDF
|
*/
'pdf' => Excel::DOMPDF,
'pdf' => Excel::DOMPDF,
],
/*
@@ -227,7 +227,7 @@ return [
| Drivers: memory|illuminate|batch
|
*/
'driver' => 'memory',
'driver' => 'memory',
/*
|--------------------------------------------------------------------------
@@ -239,7 +239,7 @@ return [
| Here you can tweak the memory limit to your liking.
|
*/
'batch' => [
'batch' => [
'memory_limit' => 60000,
],
@@ -277,7 +277,7 @@ return [
*/
'transactions' => [
'handler' => 'db',
'db' => [
'db' => [
'connection' => null,
],
],
@@ -293,7 +293,7 @@ return [
| storing reading or downloading. Here you can customize that path.
|
*/
'local_path' => storage_path('framework/cache/laravel-excel'),
'local_path' => storage_path('framework/cache/laravel-excel'),
/*
|--------------------------------------------------------------------------
@@ -309,8 +309,8 @@ return [
| in conjunction with queued imports and exports.
|
*/
'remote_disk' => null,
'remote_prefix' => null,
'remote_disk' => null,
'remote_prefix' => null,
/*
|--------------------------------------------------------------------------

View File

@@ -10,5 +10,5 @@ return [
'twitter' => 'https://twitter.com/OpnForm',
'zapier_integration' => 'https://zapier.com/developer/public-invite/146950/58db583730cc46b821614468d94c35de/',
'book_onboarding' => 'https://zcal.co/i/YQVGEULQ',
'feature_requests' => 'https://opnform.canny.io/feature-requests'
'feature_requests' => 'https://opnform.canny.io/feature-requests',
];

View File

@@ -43,7 +43,7 @@ return [
| This can be used to ensure a read-only connection, by using a custom connection with a read-only user.
|
*/
'query_database_connection' => env('MODEL_STATS_DB_CONNECTION', env('DB_CONNECTION')),
'query_database_connection' => env('MODEL_STATS_DB_CONNECTION', env('DB_CONNECTION')),
/*
|--------------------------------------------------------------------------

View File

@@ -1,8 +1,8 @@
<?php
return [
'admin_emails' => explode(",", env('ADMIN_EMAILS') ?? ''),
'moderator_emails' => explode(",", env('MODERATOR_EMAILS') ?? ''),
'template_editor_emails' => explode(",", env('TEMPLATE_EDITOR_EMAILS') ?? ''),
'extra_pro_users_emails' => explode(",", env('EXTRA_PRO_USERS_EMAILS') ?? ''),
'admin_emails' => explode(',', env('ADMIN_EMAILS') ?? ''),
'moderator_emails' => explode(',', env('MODERATOR_EMAILS') ?? ''),
'template_editor_emails' => explode(',', env('TEMPLATE_EDITOR_EMAILS') ?? ''),
'extra_pro_users_emails' => explode(',', env('EXTRA_PRO_USERS_EMAILS') ?? ''),
];

View File

@@ -8,8 +8,8 @@ return [
'pricing' => [
'monthly' => env('STRIPE_PROD_DEFAULT_PRICING_MONTHLY'),
'yearly' => env('STRIPE_PROD_DEFAULT_PRICING_YEARLY'),
]
]
],
],
],
'test' => [
@@ -18,8 +18,8 @@ return [
'pricing' => [
'monthly' => env('STRIPE_TEST_DEFAULT_PRICING_MONTHLY'),
'yearly' => env('STRIPE_TEST_DEFAULT_PRICING_YEARLY'),
]
]
]
],
],
],
];

View File

@@ -149,7 +149,7 @@ return [
'mailto' => true,
'tel' => true,
'notion' => true,
]
],
],

View File

@@ -50,7 +50,7 @@ return [
// @see: https://docs.sentry.io/platforms/php/configuration/options/#send-default-pii
'send_default_pii' => false,
'traces_sample_rate' => (float)(env('SENTRY_TRACES_SAMPLE_RATE', 0.01)),
'traces_sample_rate' => (float) (env('SENTRY_TRACES_SAMPLE_RATE', 0.01)),
'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'),

View File

@@ -45,7 +45,7 @@ return [
],
'notion' => [
'worker' => env('NOTION_WORKER', 'https://notion-forms-worker.notionforms.workers.dev/v1')
'worker' => env('NOTION_WORKER', 'https://notion-forms-worker.notionforms.workers.dev/v1'),
],
'openai' => [

View File

@@ -1,7 +1,5 @@
<?php
use Illuminate\Support\Str;
return [
/*
@@ -127,7 +125,8 @@ return [
*/
'cookie' => env(
'SESSION_COOKIE','OpnForm_session'
'SESSION_COOKIE',
'OpnForm_session'
),
/*