Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -44,19 +44,19 @@ class Exists extends Rule {
*
* @param mixed $value Value being checked.
*/
public function check($value) : bool {
public function check($value): bool {
$this->requireParameters(array(
'model',
'column'
));
$this->requireParameters(
array(
'model',
'column',
)
);
$column = $this->parameter('column');
$model = $this->parameter('model');
// do query
return !!$model::get_by($column, $value);
} // end check;
} // end class Exists;
return (bool) $model::get_by($column, $value);
}
}