/** * Whether a given UpdateRepo should be pushed to the repo * * @param UpdateRepo $updateRepo * @return bool */ private function shouldBePushed(UpdateRepo $updateRepo) { return $updateRepo->getEntityId() && $updateRepo->userIsValidOnRepo(); }