/** * Delete a blog post category * * @param int $categoryId * @param array $post * @return bool */ protected function processDeleteCategory(int $categoryId, array $post = []) : bool { if (!$this->isSuperUser()) { if (!$this->can('delete')) { return false; } } return $this->blog->deleteCategory($categoryId, (int) ($post['moveChildrenTo'] ?? 0)); }