private function replace_var( $matches ) {
		$cmd = $matches[0];

		foreach ( array_slice( $matches, 1 ) as $key ) {
			$cmd = str_replace( '{' . $key . '}', $this->variables[ $key ], $cmd );
		}

		return $cmd;
	}
private function replace_var( $matches ) {
		$cmd = $matches[0];

		foreach ( array_slice( $matches, 1 ) as $key ) {
			$cmd = str_replace( '{' . $key . '}', $this->variables[ $key ], $cmd );
		}

		return $cmd;
	}
private function replace_var ( $ matches ) { $ cmd = $ matches [ 0 ] ; foreach ( array_slice ( $ matches , 1 ) as $ key ) { $ cmd = str_replace ( '{' . $ key . '}' , $ this -> variables [ $ key ] , $ cmd ) ; } return $ cmd ; }
Replace variables callback.
Replace variables callback .