Skip to content

Commit

Permalink
Micro optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 18, 2015
1 parent 2adb479 commit da8ed0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/View/Cell.php
Expand Up @@ -177,9 +177,8 @@ public function render($template = null)
}

$render = function () use ($template) {
$className = explode('\\', get_class($this));
$className = array_pop($className);
$name = substr($className, 0, strrpos($className, 'Cell'));
$className = substr(strrchr(get_class($this), "\\"), 1);
$name = substr($className, 0, -4);
$this->_view->viewPath('Cell' . DS . $name);

try {
Expand Down

0 comments on commit da8ed0f

Please sign in to comment.