private static function validateEnvironment(string $specifiedEnvironment): void
    {
        if ('' === $specifiedEnvironment ||
            false === \in_array($specifiedEnvironment, self::LIST, true)
        ) {
            throw new \LogicException(
                \sprintf(
                    'Provided incorrect value of the environment: "%s". Allowable values: %s',
                    $specifiedEnvironment,
                    \implode(', ', \array_values(self::LIST))
                )
            );
        }
    }
private static function validateEnvironment(string $specifiedEnvironment): void
    {
        if ('' === $specifiedEnvironment ||
            false === \in_array($specifiedEnvironment, self::LIST, true)
        ) {
            throw new \LogicException(
                \sprintf(
                    'Provided incorrect value of the environment: "%s". Allowable values: %s',
                    $specifiedEnvironment,
                    \implode(', ', \array_values(self::LIST))
                )
            );
        }
    }
private static function validateEnvironment ( string $ specifiedEnvironment ) : void { if ( '' === $ specifiedEnvironment || false === \ in_array ( $ specifiedEnvironment , self :: LIST , true ) ) { throw new \ LogicException ( \ sprintf ( 'Provided incorrect value of the environment: "%s". Allowable values: %s' , $ specifiedEnvironment , \ implode ( ', ' , \ array_values ( self :: LIST ) ) ) ) ; } }
Validate the specified environment.

@param string $specifiedEnvironment

@throws \LogicException The value of the environment is not specified, or is incorrect

@return void
Validate the specified environment .