for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cortex\Pages\Http\Requests\Tenantarea;
use Rinvex\Support\Http\Requests\FormRequest;
class PageFormRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
return true;
}
* Process given request data before validation.
* @param array $data
* @return array
array<string,string>
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
public function process($data)
$data['domain'] = $this->getHost();
return $data;
* Get the validation rules that apply to the request.
public function rules()
$page = $this->route('page') ?? app('rinvex.pages.page');
$page->updateRulesUniques();
return $page->getRules();
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.