src/Sly/NotificationPusher/Console/Command/PushCommand.php
private function getAdapterClassFromArgument($argument)
    {
        if (!class_exists($adapterClass = $argument) &&
            !class_exists($adapterClass = '\\Sly\\NotificationPusher\\Adapter\\' . ucfirst($argument))) {
            throw new AdapterException(
                sprintf(
                    'Adapter class %s does not exist',
                    $adapterClass
                )
            );
        }

        return $adapterClass;
    }
private function getAdapterClassFromArgument($argument)
    {
        if (!class_exists($adapterClass = $argument) &&
            !class_exists($adapterClass = '\\Sly\\NotificationPusher\\Adapter\\' . ucfirst($argument))) {
            throw new AdapterException(
                sprintf(
                    'Adapter class %s does not exist',
                    $adapterClass
                )
            );
        }

        return $adapterClass;
    }
private function getAdapterClassFromArgument ( $ argument ) { if ( ! class_exists ( $ adapterClass = $ argument ) && ! class_exists ( $ adapterClass = '\\Sly\\NotificationPusher\\Adapter\\' . ucfirst ( $ argument ) ) ) { throw new AdapterException ( sprintf ( 'Adapter class %s does not exist' , $ adapterClass ) ) ; } return $ adapterClass ; }
Get adapter class from argument.

@param string $argument Given argument

@return string

@throws AdapterException When given adapter class doesn't exist
Get adapter class from argument .