@@ 53-58 (lines=6) @@ | ||
50 | 'next' => false, |
|
51 | 'last' => false, |
|
52 | ]; |
|
53 | foreach (explode(', ', $response->getHeader('link')[0]) as $link) { |
|
54 | list($url, $rel) = explode('>; rel="', ltrim(rtrim($link, '"'), '<')); |
|
55 | if (isset($links[$rel])) { |
|
56 | $links[$rel] = $url; |
|
57 | } |
|
58 | } |
|
59 | ||
60 | if ($links['next'] === false || $links['last'] === false) { |
|
61 | return; |
|
@@ 110-115 (lines=6) @@ | ||
107 | 'next' => false, |
|
108 | 'last' => false, |
|
109 | ]; |
|
110 | foreach (explode(', ', $response->getHeader('link')[0]) as $link) { |
|
111 | list($url, $rel) = explode('>; rel="', ltrim(rtrim($link, '"'), '<')); |
|
112 | if (isset($links[$rel])) { |
|
113 | $links[$rel] = $url; |
|
114 | } |
|
115 | } |
|
116 | ||
117 | if ($links['next'] === false || $links['last'] === false) { |
|
118 | $subject->onCompleted(); |