| @@ 9-13 (lines=5) @@ | ||
| 6 | { |
|
| 7 | public function og() |
|
| 8 | { |
|
| 9 | foreach ($this as $key => $value) { |
|
| 10 | if (strpos($key, 'og:') > -1) { |
|
| 11 | $result[$key] = $value; |
|
| 12 | } |
|
| 13 | } |
|
| 14 | return $result; |
|
| 15 | } |
|
| 16 | ||
| @@ 20-24 (lines=5) @@ | ||
| 17 | public function twitter() |
|
| 18 | { |
|
| 19 | $result = []; |
|
| 20 | foreach ($this as $key => $value) { |
|
| 21 | if (strpos($key, 'twitter:') > -1) { |
|
| 22 | $result[$key] = $value; |
|
| 23 | } |
|
| 24 | } |
|
| 25 | $result = $this->unFlatten($result); |
|
| 26 | return $result['twitter']; |
|
| 27 | } |
|