Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dp-ifacesoft committed May 19, 2020
1 parent 7ca82a7 commit cc58e83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/Ice/Core/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public function setTemplateClass($templateClass = null)
$this->templateClass = $widgetClass;
}

if ($this->templateClass[0] == '_') {
if ($this->templateClass[0] === '_') {
$this->templateClass = $widgetClass . $this->templateClass;
}

Expand Down Expand Up @@ -875,7 +875,7 @@ public function getLayout($attributes = '', $force = false)
return 'div.' . Class_Object::getClassName($class) . $attributes;
}

if ($this->layout[0] == '_') {
if ($this->layout[0] === '_') {
return 'div.' . Class_Object::getClassName($class) . $this->layout . $attributes;
}

Expand Down Expand Up @@ -1075,7 +1075,8 @@ public function scope($scope, array $data = [], $widgetClass = null)
? Widget::getClass($widgetClass)
: get_class($this);

return Widget_Scope::getInstance(str_replace('Widget', 'Widget\Scope', $widgetClass))->$scope($this, $data, $widgetClass);
return Widget_Scope::getInstance(str_replace('Widget', 'Widget\Scope', $widgetClass))
->$scope($this, $data, $widgetClass);
}

/**
Expand Down

0 comments on commit cc58e83

Please sign in to comment.