Skip to content

Commit

Permalink
Get rid of unnecessary property assignment.
Browse files Browse the repository at this point in the history
It was only used for testing purposes earlier.
  • Loading branch information
ADmad committed Dec 14, 2016
1 parent f4e8244 commit b69b189
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/View/View.php
Expand Up @@ -998,18 +998,14 @@ protected function _render($viewFile, $data = [])
*
* @param string $viewFile Filename of the view
* @param array $dataForView Data to include in rendered view.
* If empty the current View::$viewVars will be used.
* @return string Rendered output
*/
protected function _evaluate($viewFile, $dataForView)
{
$this->__viewFile = $viewFile;
extract($dataForView);
ob_start();

include $this->__viewFile;

unset($this->__viewFile);
include $viewFile;

return ob_get_clean();
}
Expand Down

0 comments on commit b69b189

Please sign in to comment.