app/Dorcas/Utilities/Mailchimp/Mailchimp.php
/**
     * Cleans the subscriber status, and guarantees it's one of the allowed values
     *
     * @param string      $status
     * @param string|null $default
     *
     * @return string
     */
Cleans the subscriber status, and guarantees it's one of the allowed values
@param string      $status
@param string|null $default

@return string
Cleans the subscriber status and guarantees it ' s one of the allowed values @param string $status @param string|null $default @return string
private function subscriberCleanStatus(string $status, string $default = null): string
    {
        $statuses = ['subscribed', 'pending', 'unsubscribed', 'cleaned'];
        $status = strtolower($status);
        return in_array($status, $statuses) ? $status : $default;
    }
private function subscriberCleanStatus ( string $ status , string $ default = null ) : string { $ statuses = [ 'subscribed' , 'pending' , 'unsubscribed' , 'cleaned' ] ; $ status = strtolower ( $ status ) ; return in_array ( $ status , $ statuses ) ? $ status : $ default ; }
Cleans the subscriber status, and guarantees it's one of the allowed values
 @param string      $status
 @param string|null $default
Cleans the subscriber status and guarantees it ' s one of the allowed values @param string $status @param string|null $default