mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
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:
@ -29,79 +29,82 @@ class DiskEnvironmentRequest extends FormRequest
|
||||
$rules = [
|
||||
'credentials.key' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.secret' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.region' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.bucket' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.root' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
];
|
||||
|
||||
break;
|
||||
|
||||
case 'doSpaces':
|
||||
$rules = [
|
||||
'credentials.key' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.secret' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.region' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.bucket' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.endpoint' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.root' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
];
|
||||
|
||||
break;
|
||||
|
||||
case 'dropbox':
|
||||
$rules = [
|
||||
'credentials.token' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.key' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.secret' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.app' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
'credentials.root' => [
|
||||
'required',
|
||||
'string'
|
||||
'string',
|
||||
],
|
||||
];
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@ -111,7 +114,7 @@ class DiskEnvironmentRequest extends FormRequest
|
||||
],
|
||||
'driver' => [
|
||||
'required',
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
return array_merge($rules, $defaultRules);
|
||||
|
||||
Reference in New Issue
Block a user