Skip to content

Commit

Permalink
Update Controller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
daycry authored May 24, 2024
1 parent 8c4cf1e commit 86689eb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions system/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ protected function cachePage(int $time)
/**
* A shortcut to performing validation on Request data.
*
* @param array|string $rules
* @param array $messages An array of custom error messages
* @param array|string $rules
* @param array $messages An array of custom error messages
* @param Validation|null $config The class Validation
*/
protected function validate($rules, array $messages = [], ?Validation $config = null): bool
{
Expand All @@ -140,10 +141,11 @@ protected function validate($rules, array $messages = [], ?Validation $config =
/**
* A shortcut to performing validation on any input data.
*
* @param array $data The data to validate
* @param array|string $rules
* @param array $messages An array of custom error messages
* @param string|null $dbGroup The database group to use
* @param array $data The data to validate
* @param array|string $rules
* @param array $messages An array of custom error messages
* @param string|null $dbGroup The database group to use
* @param Validation|null $config The class Validation
*/
protected function validateData(array $data, $rules, array $messages = [], ?string $dbGroup = null, ?Validation $config = null): bool
{
Expand All @@ -153,7 +155,9 @@ protected function validateData(array $data, $rules, array $messages = [], ?stri
}

/**
* @param array|string $rules
* @param array|string $rules
* @param array $messages An array of custom error messages
* @param Validation|null $config The class Validation
*/
private function setValidator($rules, array $messages, ?Validation $config = null): void
{
Expand Down

0 comments on commit 86689eb

Please sign in to comment.