Implement PHP CS Fixer and a coding standard to follow (#471)

* Create PHP CS Fixer config and add to CI workflow

* Run php cs fixer on project

* Add newline at end of file

* Update to use PHP CS Fixer v3

* Run v3 config on project

* Run seperate config in CI
This commit is contained in:
Mwikala Kangwa
2021-05-21 12:57:51 +01:00
committed by GitHub
parent 633cad9b89
commit 9e98a96d61
316 changed files with 4715 additions and 3195 deletions

View File

@ -167,7 +167,7 @@ return [
Crater\Providers\EventServiceProvider::class,
Crater\Providers\RouteServiceProvider::class,
Crater\Providers\DropboxServiceProvider::class,
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
],
/*

View File

@ -29,7 +29,7 @@ return [
'exclude' => [
base_path('vendor'),
base_path('node_modules'),
base_path('.git')
base_path('.git'),
],
/*
@ -102,7 +102,7 @@ return [
* The disk names on which the backups will be stored.
*/
'disks' => [
'local'
'local',
],
],
@ -235,7 +235,7 @@ return [
],
'queue' => [
'name' => env('BACKUP_QUEUE_NAME', 'backup')
]
'name' => env('BACKUP_QUEUE_NAME', 'backup'),
],
];

View File

@ -37,7 +37,7 @@ return [
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => 'ap2',
'encrypted' => true
'encrypted' => true,
],
],

View File

@ -11,21 +11,21 @@ return [
* List of languages supported by Crater.
*/
'languages' => [
["code"=>"ar", "name" => "Arabic"],
["code"=>"nl", "name" => "Dutch"],
["code"=>"en", "name" => "English"],
["code"=>"fr", "name" => "French"],
["code"=>"de", "name" => "German"],
["code"=>"ja", "name" => "Japanese"],
["code"=>"it", "name" => "Italian"],
["code"=>"lv", "name" => "Latvian"],
["code"=>"pt_BR", "name" => "Portuguese (Brazilian)"],
["code"=>"sr", "name" => "Serbian Latin"],
["code"=>"ko", "name" => "Korean"],
["code"=>"es", "name" => "Spanish"],
["code"=>"sv", "name"=> "Svenska"],
["code"=>"sk", "name"=> "Slovak"],
["code"=>"vi", "name"=> "Tiếng Việt"]
["code" => "ar", "name" => "Arabic"],
["code" => "nl", "name" => "Dutch"],
["code" => "en", "name" => "English"],
["code" => "fr", "name" => "French"],
["code" => "de", "name" => "German"],
["code" => "ja", "name" => "Japanese"],
["code" => "it", "name" => "Italian"],
["code" => "lv", "name" => "Latvian"],
["code" => "pt_BR", "name" => "Portuguese (Brazilian)"],
["code" => "sr", "name" => "Serbian Latin"],
["code" => "ko", "name" => "Korean"],
["code" => "es", "name" => "Spanish"],
["code" => "sv", "name" => "Svenska"],
["code" => "sk", "name" => "Slovak"],
["code" => "vi", "name" => "Tiếng Việt"],
],
/*
@ -44,5 +44,5 @@ return [
['key' => 'october-september', 'value' => '10-9'],
['key' => 'november-october' , 'value' => '11-10'],
['key' => 'december-november', 'value' => '12-11'],
]
],
];

View File

@ -1,6 +1,6 @@
<?php
return array(
return [
/*
|--------------------------------------------------------------------------
@ -13,7 +13,7 @@ return array(
*/
'show_warnings' => false, // Throw an Exception on warnings from dompdf
'orientation' => 'portrait',
'defines' => array(
'defines' => [
/**
* The location of the DOMPDF font directory
*
@ -238,7 +238,7 @@ return array(
* Use the more-than-experimental HTML5 Lib parser
*/
"enable_html5_parser" => true,
),
],
);
];

View File

@ -51,7 +51,7 @@ return [
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL') . '/storage',
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
@ -61,12 +61,12 @@ return [
'secret' => env('AWS_SECRET'),
'region' => env('AWS_REGION'),
'bucket' => env('AWS_BUCKET'),
'root' => env('AWS_ROOT')
'root' => env('AWS_ROOT'),
],
'media' => [
'driver' => 'local',
'root' => public_path('media'),
'root' => public_path('media'),
],
'doSpaces' => [

View File

@ -43,17 +43,17 @@ return [
Invoice::class => [
'salt' => Invoice::class.config('app.key'),
'length' => '20',
'alphabet' => 'XKyIAR7mgt8jD2vbqPrOSVenNGpiYLx4M61T'
'alphabet' => 'XKyIAR7mgt8jD2vbqPrOSVenNGpiYLx4M61T',
],
Estimate::class => [
'salt' => Estimate::class.config('app.key'),
'length' => '20',
'alphabet' => 'yLJWP79M8rYVqbn1NXjulO6IUDdvekRQGo40'
'alphabet' => 'yLJWP79M8rYVqbn1NXjulO6IUDdvekRQGo40',
],
Payment::class => [
'salt' => Payment::class.config('app.key'),
'length' => '20',
'alphabet' => 'asqtW3eDRIxB65GYl7UVLS1dybn9XrKTZ4zO'
'alphabet' => 'asqtW3eDRIxB65GYl7UVLS1dybn9XrKTZ4zO',
],
],

View File

@ -1,4 +1,5 @@
<?php
return [
/*
|--------------------------------------------------------------------------
@ -41,4 +42,4 @@ return [
'threads' => 2,
'time' => 2,
],
];
];

View File

@ -1,6 +1,6 @@
<?php
return array(
return [
/*
|--------------------------------------------------------------------------
@ -15,6 +15,6 @@ return array(
|
*/
'driver' => 'gd'
'driver' => 'gd',
);
];

View File

@ -43,8 +43,8 @@ return [
|
*/
'permissions' => [
'storage/framework/' => '775',
'storage/logs/' => '775',
'bootstrap/cache/' => '775',
'storage/framework/' => '775',
'storage/logs/' => '775',
'bootstrap/cache/' => '775',
],
];

View File

@ -1,6 +1,8 @@
<?php
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
return [
/*
|--------------------------------------------------------------------------
@ -51,7 +53,7 @@ return [
'level' => 'critical',
],
'papertrail' => [
'driver' => 'monolog',
'driver' => 'monolog',
'level' => 'debug',
'handler' => SyslogUdpHandler::class,
'handler_with' => [
@ -75,4 +77,4 @@ return [
'level' => 'debug',
],
],
];
];

View File

@ -126,7 +126,7 @@ return [
'cookie' => env(
'SESSION_COOKIE',
Str::slug(env('APP_NAME', 'laravel'), '_') . '_session'
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
),
/*