src/Tag/AttributesValueTagTrait.php 1 location
|
@@ 25-28 (lines=4) @@
|
| 22 |
|
$attrs = explode(',', $attrsText); |
| 23 |
|
|
| 24 |
|
$attributes = []; |
| 25 |
|
foreach ($attrs as $attr) { |
| 26 |
|
list($key, $value) = explode('=', $attr); |
| 27 |
|
$attributes[$key] = trim($value); |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
return $attributes; |
| 31 |
|
} |
src/Tag/StreamTag.php 1 location
|
@@ 152-155 (lines=4) @@
|
| 149 |
|
{ |
| 150 |
|
$attrs = preg_split("/,(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))/", self::extractValue($line)); |
| 151 |
|
$attributes = []; |
| 152 |
|
foreach ($attrs as $attr) { |
| 153 |
|
list($key, $value) = explode('=', $attr); |
| 154 |
|
$attributes[$key] = trim($value); |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
foreach (get_object_vars($this) as $prop => $value) { |
| 158 |
|
$key = strtoupper($prop); |