| @@ 714-720 (lines=7) @@ | ||
| 711 | foreach ($srcsets as $descriptor => &$alterations) { |
|
| 712 | $image = $this->make(array_pull($alterations, 'image', $this->getImage()))->setOutput('url'); |
|
| 713 | ||
| 714 | foreach ($alterations as $method => $arguments) { |
|
| 715 | if (is_array($arguments)) { |
|
| 716 | call_user_func_array([$image, $method], $arguments); |
|
| 717 | } else { |
|
| 718 | call_user_func([$image, $method], $arguments); |
|
| 719 | } |
|
| 720 | } |
|
| 721 | ||
| 722 | $alterations = $image; |
|
| 723 | } |
|
| @@ 750-756 (lines=7) @@ | ||
| 747 | call_user_func([$image, 'media'], $media); |
|
| 748 | } |
|
| 749 | ||
| 750 | foreach ($alterations as $method => $arguments) { |
|
| 751 | if (is_array($arguments)) { |
|
| 752 | call_user_func_array([$image, $method], $arguments); |
|
| 753 | } else { |
|
| 754 | call_user_func([$image, $method], $arguments); |
|
| 755 | } |
|
| 756 | } |
|
| 757 | ||
| 758 | $alterations = $image; |
|
| 759 | } |
|
| @@ 783-789 (lines=7) @@ | ||
| 780 | || ($agent == 'tablet' && $this->agent->isTablet()) |
|
| 781 | || ($agent == 'desktop' && $this->agent->isDesktop()) |
|
| 782 | ) { |
|
| 783 | foreach ($alterations as $method => $arguments) { |
|
| 784 | if (is_array($arguments)) { |
|
| 785 | call_user_func_array([$this, $method], $arguments); |
|
| 786 | } else { |
|
| 787 | call_user_func([$this, $method], $arguments); |
|
| 788 | } |
|
| 789 | } |
|
| 790 | ||
| 791 | if ($exit) { |
|
| 792 | return $this; |
|