| @@ 123-130 (lines=8) @@ | ||
| 120 | $assets = [$assets]; |
|
| 121 | } |
|
| 122 | ||
| 123 | foreach ($assets as &$item) { |
|
| 124 | if (!in_array($item, $this->appendedStyles)) { |
|
| 125 | $this->appendedStyles[] = [ |
|
| 126 | 'src' => $item, |
|
| 127 | 'attributes' => [], |
|
| 128 | ]; |
|
| 129 | } |
|
| 130 | } |
|
| 131 | ||
| 132 | return $this; |
|
| 133 | } |
|
| @@ 148-155 (lines=8) @@ | ||
| 145 | $assets = [$assets]; |
|
| 146 | } |
|
| 147 | ||
| 148 | foreach ($assets as &$item) { |
|
| 149 | if (!in_array($item, $this->appendedScripts[$location])) { |
|
| 150 | $this->appendedScripts[$location][] = [ |
|
| 151 | 'src' => $item, |
|
| 152 | 'attributes' => [], |
|
| 153 | ]; |
|
| 154 | } |
|
| 155 | } |
|
| 156 | ||
| 157 | return $this; |
|
| 158 | } |
|