Lint PHP code psr-12, add GH action
This commit is contained in:
@@ -7,7 +7,7 @@ use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class UploadAssetRequest extends FormRequest
|
||||
{
|
||||
const FORM_ASSET_MAX_SIZE = 5000000;
|
||||
public const FORM_ASSET_MAX_SIZE = 5000000;
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
@@ -22,7 +22,7 @@ class UploadAssetRequest extends FormRequest
|
||||
'jpg',
|
||||
'bmp',
|
||||
'gif',
|
||||
'svg'
|
||||
'svg',
|
||||
];
|
||||
if ($this->offsetExists('type') && $this->get('type') === 'files') {
|
||||
$fileTypes = [];
|
||||
|
||||
Reference in New Issue
Block a user