validator(); if ($validator->fails()) { foreach ($validator->errors()->all() as $error) { $this->error($error); } return 1; } $result = $this->reconcileRepositories($validator->validated()); $result->toLog(); $result->toConsole($this); return $result->hasFailed() ? 1 : 0; } /** * Get the validator for options. * * @return Validator */ abstract protected function validator(): Validator; }