| @@ 166-177 (lines=12) @@ | ||
| 163 | * @param array $assets |
|
| 164 | * @return $this |
|
| 165 | */ |
|
| 166 | public function removeStyles($assets) |
|
| 167 | { |
|
| 168 | if (!is_array($assets)) { |
|
| 169 | $assets = [$assets]; |
|
| 170 | } |
|
| 171 | ||
| 172 | foreach ($assets as $rem) { |
|
| 173 | array_forget($this->styles, array_search($rem, $this->styles)); |
|
| 174 | } |
|
| 175 | ||
| 176 | return $this; |
|
| 177 | } |
|
| 178 | ||
| 179 | /** |
|
| 180 | * Add scripts. |
|
| @@ 185-196 (lines=12) @@ | ||
| 182 | * @param array $assets |
|
| 183 | * @return $this |
|
| 184 | */ |
|
| 185 | public function removeScripts($assets) |
|
| 186 | { |
|
| 187 | if (!is_array($assets)) { |
|
| 188 | $assets = [$assets]; |
|
| 189 | } |
|
| 190 | ||
| 191 | foreach ($assets as $rem) { |
|
| 192 | array_forget($this->scripts, array_search($rem, $this->scripts)); |
|
| 193 | } |
|
| 194 | ||
| 195 | return $this; |
|
| 196 | } |
|
| 197 | ||
| 198 | /** |
|
| 199 | * Get All scripts in current module. |
|