section) !== null; } /** * Can remove part piece * * @param \App\Models\User $authUser * @param \App\Models\Section $section * @return boolean * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed */ public function removePartPiece(User $authUser, Section $section): bool { // phpcs:enable return Section::getAddablePartPieceBlock($section->section) !== null; } }