src/class-factory.php
protected function view( $view ) {
		if ( preg_match( '/\.\w+$/', $view, $matches ) && in_array( $matches[0], $this->extensions() ) ) {
			return str_replace( '.', '/', preg_replace( '/' . $matches[0] . '$/', '', $view ) ) . $matches[0];
		}

		return $this->extension( str_replace( '.', '/', $view ) );
	}
protected function view( $view ) {
		if ( preg_match( '/\.\w+$/', $view, $matches ) && in_array( $matches[0], $this->extensions() ) ) {
			return str_replace( '.', '/', preg_replace( '/' . $matches[0] . '$/', '', $view ) ) . $matches[0];
		}

		return $this->extension( str_replace( '.', '/', $view ) );
	}
protected function view ( $ view ) { if ( preg_match ( '/\.\w+$/' , $ view , $ matches ) && in_array ( $ matches [ 0 ] , $ this -> extensions ( ) ) ) { return str_replace ( '.' , '/' , preg_replace ( '/' . $ matches [ 0 ] . '$/' , '' , $ view ) ) . $ matches [ 0 ] ; } return $ this -> extension ( str_replace ( '.' , '/' , $ view ) ) ; }
Get the right view string from dot view or view that missing extension.

@param  string $view

@return string
Get the right view string from dot view or view that missing extension .