Skip to content

Commit

Permalink
Fix View::autoLayout()
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 18, 2015
1 parent fc94940 commit 2adb479
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/View/View.php
Expand Up @@ -371,16 +371,16 @@ public function layoutPath($path = null)
* On by default. Setting to off means that layouts will not be
* automatically applied to rendered views.
*
* @param string $autoLayout Boolean to turn on/off. If null returns current value.
* @param bool $autoLayout Boolean to turn on/off. If null returns current value.
* @return bool|void
*/
public function autoLayout(bool $autoLayout = null)
public function autoLayout($autoLayout = null)
{
if ($var === null) {
if ($autoLayout === null) {
return $this->autoLayout;
}

$this->layoutPath = $autoLayout;
$this->autoLayout = $autoLayout;
}

/**
Expand Down

0 comments on commit 2adb479

Please sign in to comment.