src/PortaText/Command/Base.php
protected function getAcceptContentType($method)
    {
        // Just to make PHPMD happy.
        $method = null;
        $acceptFile = $this->getArgument("accept_file");
        if (!is_null($acceptFile)) {
            return "text/csv";
        }
        $acceptAnyFile = $this->getArgument("accept_any_file");
        if (!is_null($acceptAnyFile)) {
            return "*/*";
        }
        $acceptSoundFile = $this->getArgument("accept_sound_file");
        if (!is_null($acceptSoundFile)) {
            return "audio/mpeg";
        }
        return 'application/json';
    }
protected function getAcceptContentType($method)
    {
        // Just to make PHPMD happy.
        $method = null;
        $acceptFile = $this->getArgument("accept_file");
        if (!is_null($acceptFile)) {
            return "text/csv";
        }
        $acceptAnyFile = $this->getArgument("accept_any_file");
        if (!is_null($acceptAnyFile)) {
            return "*/*";
        }
        $acceptSoundFile = $this->getArgument("accept_sound_file");
        if (!is_null($acceptSoundFile)) {
            return "audio/mpeg";
        }
        return 'application/json';
    }
protected function getAcceptContentType ( $ method ) { // Just to make PHPMD happy. $ method = null ; $ acceptFile = $ this -> getArgument ( "accept_file" ) ; if ( ! is_null ( $ acceptFile ) ) { return "text/csv" ; } $ acceptAnyFile = $ this -> getArgument ( "accept_any_file" ) ; if ( ! is_null ( $ acceptAnyFile ) ) { return "*/*" ; } $ acceptSoundFile = $ this -> getArgument ( "accept_sound_file" ) ; if ( ! is_null ( $ acceptSoundFile ) ) { return "audio/mpeg" ; } return 'application/json' ; }
Returns the accepted content type for this endpoint.

@param string $method Method for this command.

@return string
Returns the accepted content type for this endpoint .