private function inflate($filePath)
    {
        $currentDirectory = rtrim(dirname($this->currentView), self::DS);
        $currentDirectory .= self::DS;
        if (substr($filePath, -6, 6) != '.phtml') {
            $filePath .= '.phtml';
        }

        $searchPath = realpath($currentDirectory . $filePath);
        if ($searchPath != false && file_exists($searchPath)) {
            $content = @include $searchPath;
            if (!$content) {
                // @codeCoverageIgnoreStart
                $e = new ViewFileNotFoundException('Unable to inflate file "' . $searchPath . '"');
                $e->setAdditionalData('View Path: ', $searchPath);
                throw $e;
                // @codeCoverageIgnoreEnd
            }
            return;
        }

        // @codeCoverageIgnoreStart
        $e = new ViewFileNotFoundException('Invalid view file path, expected: "' . $currentDirectory . $filePath . '"');
        $e->setAdditionalData('View Path Checked: ', $currentDirectory . $filePath);
        throw $e;
        // @codeCoverageIgnoreEnd
    }
private function inflate($filePath)
    {
        $currentDirectory = rtrim(dirname($this->currentView), self::DS);
        $currentDirectory .= self::DS;
        if (substr($filePath, -6, 6) != '.phtml') {
            $filePath .= '.phtml';
        }

        $searchPath = realpath($currentDirectory . $filePath);
        if ($searchPath != false && file_exists($searchPath)) {
            $content = @include $searchPath;
            if (!$content) {
                // @codeCoverageIgnoreStart
                $e = new ViewFileNotFoundException('Unable to inflate file "' . $searchPath . '"');
                $e->setAdditionalData('View Path: ', $searchPath);
                throw $e;
                // @codeCoverageIgnoreEnd
            }
            return;
        }

        // @codeCoverageIgnoreStart
        $e = new ViewFileNotFoundException('Invalid view file path, expected: "' . $currentDirectory . $filePath . '"');
        $e->setAdditionalData('View Path Checked: ', $currentDirectory . $filePath);
        throw $e;
        // @codeCoverageIgnoreEnd
    }
private function inflate ( $ filePath ) { $ currentDirectory = rtrim ( dirname ( $ this -> currentView ) , self :: DS ) ; $ currentDirectory .= self :: DS ; if ( substr ( $ filePath , - 6 , 6 ) != '.phtml' ) { $ filePath .= '.phtml' ; } $ searchPath = realpath ( $ currentDirectory . $ filePath ) ; if ( $ searchPath != false && file_exists ( $ searchPath ) ) { $ content = @ include $ searchPath ; if ( ! $ content ) { // @codeCoverageIgnoreStart $ e = new ViewFileNotFoundException ( 'Unable to inflate file "' . $ searchPath . '"' ) ; $ e -> setAdditionalData ( 'View Path: ' , $ searchPath ) ; throw $ e ; // @codeCoverageIgnoreEnd } return ; } // @codeCoverageIgnoreStart $ e = new ViewFileNotFoundException ( 'Invalid view file path, expected: "' . $ currentDirectory . $ filePath . '"' ) ; $ e -> setAdditionalData ( 'View Path Checked: ' , $ currentDirectory . $ filePath ) ; throw $ e ; // @codeCoverageIgnoreEnd }
Inflate a given
@param string $filePath
@throws \Phavour\Runnable\View\Exception\ViewFileNotFoundException
Inflate a given