More yoda conditions
This commit is contained in:
1 parent
d9122a410d
commit
0a4c81c105
97 files changed
+323
-289
No files matched your search
@@ -213,12 +213,12 @@ class Form implements \JsonSerializable {
|
||||
|
||||
unset($this->atts['html_attr']['class']);
|
||||
|
||||
if ($this->type === 'number') {
|
||||
if ($this->min !== false) {
|
||||
if ('number' === $this->type) {
|
||||
if (false !== $this->min) {
|
||||
$attributes['min'] = $this->min;
|
||||
}
|
||||
|
||||
if ($this->max !== false) {
|
||||
if (false !== $this->max) {
|
||||
$attributes['max'] = $this->max;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user