Skip to content

Commit e5e3c8f

Browse files
committed
no === with isset
1 parent 249aeb4 commit e5e3c8f

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Ajax/bootstrap/html/content/HtmlGridRow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getColAt($offset,$force=true){
5757
break;
5858
}
5959
}
60-
if(!$result || isset($result)==false){
60+
if(!$result || isset($result)===false){
6161
$result=$this->getCol($offset,$force);
6262
}
6363
return $result;

Ajax/semantic/html/modules/HtmlDimmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function run(JsUtils $js) {
4747
}
4848

4949
public function jsShow() {
50-
if (isset($this->_container) === true)
50+
if (isset($this->_container))
5151
return '$("#.' . $this->_container->getIdentifier() . ').dimmer("show");';
5252
}
5353

Ajax/semantic/html/modules/HtmlProgress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ class HtmlProgress extends HtmlSemDoubleElement {
1212

1313
public function __construct($identifier, $value=NULL, $label=NULL, $attributes=array()) {
1414
parent::__construct($identifier, "div", "ui progress");
15-
if (isset($value) === true)
15+
if (isset($value))
1616
$this->setProperty("data-percent", $value);
1717
$this->createBar();
18-
if (isset($label) === true)
18+
if (isset($label))
1919
$this->setLabel($label);
2020
$this->_states=[ State::SUCCESS,State::WARNING,State::ERROR,State::ACTIVE,State::DISABLED ];
2121
$this->addToProperty("class", $attributes);

Ajax/semantic/html/modules/HtmlSearch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public function __construct($identifier, $placeholder=NULL, $icon=NULL) {
2121

2222
private function createField($placeholder=NULL, $icon=NULL) {
2323
$field=new HtmlInput($this->identifier);
24-
if (isset($placeholder) === true)
24+
if (isset($placeholder))
2525
$field->setPlaceholder($placeholder);
26-
if (isset($icon) === true)
26+
if (isset($icon))
2727
$field->addIcon($icon, Direction::RIGHT);
2828
//TODO check getField
2929
$field->getDataField()->setClass("prompt");

Ajax/semantic/html/modules/checkbox/HtmlCheckbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class HtmlCheckbox extends AbstractCheckbox {
99

1010
public function __construct($identifier, $label=NULL, $value=NULL, $checkboxType=NULL) {
1111
parent::__construct($identifier, $identifier, $label, $value, "checkbox", "checkbox");
12-
if (isset($checkboxType)===true) {
12+
if (isset($checkboxType)) {
1313
$this->setType($checkboxType);
1414
}
1515
}

Ajax/semantic/html/modules/checkbox/HtmlRadio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class HtmlRadio extends AbstractCheckbox {
99

1010
public function __construct($identifier, $name=NULL, $label=NULL, $value=NULL, $checkboxType=NULL) {
1111
parent::__construct($identifier, $name, $label, $value, "radio", "radio checkbox");
12-
if (isset($checkboxType)===true) {
12+
if (isset($checkboxType)) {
1313
$this->setType($checkboxType);
1414
}
1515
}

0 commit comments

Comments
 (0)