public function getPartialFile($name)
    {
        $file = $this->findPartialFile($name);

        if (is_file($file)) {
            return $file;

        } else if ($this->hasStaticPartial($name)) {
            return $this->getStaticFile($name);

        } else {
            throw new LogicException(sprintf('Could not find a registered partial called %s', $name));
        }
    }
public function getPartialFile($name)
    {
        $file = $this->findPartialFile($name);

        if (is_file($file)) {
            return $file;

        } else if ($this->hasStaticPartial($name)) {
            return $this->getStaticFile($name);

        } else {
            throw new LogicException(sprintf('Could not find a registered partial called %s', $name));
        }
    }
public function getPartialFile ( $ name ) { $ file = $ this -> findPartialFile ( $ name ) ; if ( is_file ( $ file ) ) { return $ file ; } else if ( $ this -> hasStaticPartial ( $ name ) ) { return $ this -> getStaticFile ( $ name ) ; } else { throw new LogicException ( sprintf ( 'Could not find a registered partial called %s' , $ name ) ) ; } }
Attempts to return partial file path

@param string $name Partial name
@throws \LogicException If can't find partials file by its name
@return string
Attempts to return partial file path