| @@ 642-648 (lines=7) @@ | ||
| 639 | */ |
|
| 640 | private static function addExternalResource($application, $prepend, $path, $type = "script") { |
|
| 641 | if ($type === "style") { |
|
| 642 | if (!\in_array($path, self::$styles)) { |
|
| 643 | if ($prepend === true) { |
|
| 644 | \array_unshift(self::$styles, $path); |
|
| 645 | } else { |
|
| 646 | self::$styles[] = $path; |
|
| 647 | } |
|
| 648 | } |
|
| 649 | } elseif ($type === "script") { |
|
| 650 | if (!\in_array($path, self::$scripts)) { |
|
| 651 | if ($prepend === true) { |
|
| @@ 649-657 (lines=9) @@ | ||
| 646 | self::$styles[] = $path; |
|
| 647 | } |
|
| 648 | } |
|
| 649 | } elseif ($type === "script") { |
|
| 650 | if (!\in_array($path, self::$scripts)) { |
|
| 651 | if ($prepend === true) { |
|
| 652 | \array_unshift(self::$scripts, $path); |
|
| 653 | } else { |
|
| 654 | self::$scripts [] = $path; |
|
| 655 | } |
|
| 656 | } |
|
| 657 | } |
|
| 658 | } |
|
| 659 | ||
| 660 | /** |
|