src/ServiceManagement/Models/Mode.php
public static function isValid($mode)
    {
        switch (strtolower($mode)) {
        case self::AUTO:
        case self::MANUAL:
        return true;

        default:
        return false;
        }
    }
public static function isValid($mode)
    {
        switch (strtolower($mode)) {
        case self::AUTO:
        case self::MANUAL:
        return true;

        default:
        return false;
        }
    }
public static function isValid ( $ mode ) { switch ( strtolower ( $ mode ) ) { case self :: AUTO : case self :: MANUAL : return true ; default : return false ; } }
Validates the provided mode.

@param string $mode The deployment change mode

@return bool
Validates the provided mode .