php/WP_CLI/Configurator.php
public function get_aliases() {
		$runtime_alias = getenv( 'WP_CLI_RUNTIME_ALIAS' );
		if ( false !== $runtime_alias ) {
			$returned_aliases = array();
			foreach ( json_decode( $runtime_alias, true ) as $key => $value ) {
				if ( preg_match( '#' . self::ALIAS_REGEX . '#', $key ) ) {
					$returned_aliases[ $key ] = array();
					foreach ( self::$alias_spec as $i ) {
						if ( isset( $value[ $i ] ) ) {
							$returned_aliases[ $key ][ $i ] = $value[ $i ];
						}
					}
				}
			}
			return $returned_aliases;
		}

		return $this->aliases;
	}
public function get_aliases() {
		$runtime_alias = getenv( 'WP_CLI_RUNTIME_ALIAS' );
		if ( false !== $runtime_alias ) {
			$returned_aliases = array();
			foreach ( json_decode( $runtime_alias, true ) as $key => $value ) {
				if ( preg_match( '#' . self::ALIAS_REGEX . '#', $key ) ) {
					$returned_aliases[ $key ] = array();
					foreach ( self::$alias_spec as $i ) {
						if ( isset( $value[ $i ] ) ) {
							$returned_aliases[ $key ][ $i ] = $value[ $i ];
						}
					}
				}
			}
			return $returned_aliases;
		}

		return $this->aliases;
	}
public function get_aliases ( ) { $ runtime_alias = getenv ( 'WP_CLI_RUNTIME_ALIAS' ) ; if ( false !== $ runtime_alias ) { $ returned_aliases = array ( ) ; foreach ( json_decode ( $ runtime_alias , true ) as $ key => $ value ) { if ( preg_match ( '#' . self :: ALIAS_REGEX . '#' , $ key ) ) { $ returned_aliases [ $ key ] = array ( ) ; foreach ( self :: $ alias_spec as $ i ) { if ( isset ( $ value [ $ i ] ) ) { $ returned_aliases [ $ key ] [ $ i ] = $ value [ $ i ] ; } } } } return $ returned_aliases ; } return $ this -> aliases ; }
Get any aliases defined in config files.

@return array
Get any aliases defined in config files .