Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSide666 authored and StyleCIBot committed Dec 15, 2018
1 parent 2abc27b commit 8f3cf80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ class Validator
public function __construct(\atk4\data\Model $model)
{
$this->model = $model;

if (!isset($model->validator)) {
$model->validator = $this;
}

$model->addHook('validate', $this);
}

Expand Down

0 comments on commit 8f3cf80

Please sign in to comment.