public function getSigningAlgorithm()
    {
        if (isset($this->raw->algorithm)) {
            if (is_string($this->raw->algorithm)) {
                if (false === defined('Phar::' . $this->raw->algorithm)) {
                    throw new InvalidArgumentException(
                        sprintf(
                            'The signing algorithm "%s" is not supported.',
                            $this->raw->algorithm
                        )
                    );
                }

                return constant('Phar::' . $this->raw->algorithm);
            }

            return $this->raw->algorithm;
        }

        return Phar::SHA1;
    }
public function getSigningAlgorithm()
    {
        if (isset($this->raw->algorithm)) {
            if (is_string($this->raw->algorithm)) {
                if (false === defined('Phar::' . $this->raw->algorithm)) {
                    throw new InvalidArgumentException(
                        sprintf(
                            'The signing algorithm "%s" is not supported.',
                            $this->raw->algorithm
                        )
                    );
                }

                return constant('Phar::' . $this->raw->algorithm);
            }

            return $this->raw->algorithm;
        }

        return Phar::SHA1;
    }
public function getSigningAlgorithm ( ) { if ( isset ( $ this -> raw -> algorithm ) ) { if ( is_string ( $ this -> raw -> algorithm ) ) { if ( false === defined ( 'Phar::' . $ this -> raw -> algorithm ) ) { throw new InvalidArgumentException ( sprintf ( 'The signing algorithm "%s" is not supported.' , $ this -> raw -> algorithm ) ) ; } return constant ( 'Phar::' . $ this -> raw -> algorithm ) ; } return $ this -> raw -> algorithm ; } return Phar :: SHA1 ; }
Returns the Phar signing algorithm.

@return integer The signing algorithm.

@throws InvalidArgumentException If the algorithm is not valid.
Returns the Phar signing algorithm .