src/Common/Signer.php
public function format($key, $type)
    {
        if (is_file($key)) {
            $key = file_get_contents($key);
        }

        if (is_string($key) && strpos($key, '-----') === false) {
            $key = $this->convertKey($key, $type);
        }

        return $key;
    }
public function format($key, $type)
    {
        if (is_file($key)) {
            $key = file_get_contents($key);
        }

        if (is_string($key) && strpos($key, '-----') === false) {
            $key = $this->convertKey($key, $type);
        }

        return $key;
    }
public function format ( $ key , $ type ) { if ( is_file ( $ key ) ) { $ key = file_get_contents ( $ key ) ; } if ( is_string ( $ key ) && strpos ( $ key , '-----' ) === false ) { $ key = $ this -> convertKey ( $ key , $ type ) ; } return $ key ; }
Convert key to standard format

@param $key
@param $type

@return string
Convert key to standard format