Domain/DomainUtil.php
public static function cancelAllSuccessResources(ResourceListInterface $resources): void
    {
        foreach ($resources->all() as $resource) {
            if (ResourceStatutes::ERROR !== $resource->getStatus()) {
                $resource->setStatus(ResourceStatutes::CANCELED);
            }
        }
    }
public static function cancelAllSuccessResources(ResourceListInterface $resources): void
    {
        foreach ($resources->all() as $resource) {
            if (ResourceStatutes::ERROR !== $resource->getStatus()) {
                $resource->setStatus(ResourceStatutes::CANCELED);
            }
        }
    }
public static function cancelAllSuccessResources ( ResourceListInterface $ resources ) : void { foreach ( $ resources -> all ( ) as $ resource ) { if ( ResourceStatutes :: ERROR !== $ resource -> getStatus ( ) ) { $ resource -> setStatus ( ResourceStatutes :: CANCELED ) ; } } }
Cancel all resource in list that have an successfully status.

@param ResourceListInterface $resources The list of resources
Cancel all resource in list that have an successfully status .