src/Core/Shaders/Flat.php 1 location
|
@@ 79-86 (lines=8) @@
|
| 76 |
|
* |
| 77 |
|
* @return void |
| 78 |
|
*/ |
| 79 |
|
public function removeDefaultDOMAttributes() |
| 80 |
|
{ |
| 81 |
|
$defaults = get_class_vars(get_class($this)); |
| 82 |
|
foreach (get_object_vars($this) as $name => $value) { |
| 83 |
|
if (empty($value) || (array_key_exists($name, $defaults) && $value === $defaults[$name])) |
| 84 |
|
unset($this->$name); |
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
/** |
| 89 |
|
* Base diffuse color |
src/Core/Shaders/Standard.php 1 location
|
@@ 104-111 (lines=8) @@
|
| 101 |
|
* |
| 102 |
|
* @return void |
| 103 |
|
*/ |
| 104 |
|
public function removeDefaultDOMAttributes() |
| 105 |
|
{ |
| 106 |
|
$defaults = get_class_vars(get_class($this)); |
| 107 |
|
foreach (get_object_vars($this) as $name => $value) { |
| 108 |
|
if (empty($value) || (array_key_exists($name, $defaults) && $value === $defaults[$name])) |
| 109 |
|
unset($this->$name); |
| 110 |
|
} |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
/** |
| 114 |
|
* Base diffuse color |