@@ -40,11 +40,15 @@ |
||
| 40 | 40 | { |
| 41 | 41 | $extractor = $this->getExtractor($url); |
| 42 | 42 | |
| 43 | - if (!$extractor) return null; |
|
| 43 | + if (!$extractor) { |
|
| 44 | + return null; |
|
| 45 | + } |
|
| 44 | 46 | |
| 45 | 47 | $embed = $extractor->fetch(); |
| 46 | 48 | |
| 47 | - if (!$embed) return null; |
|
| 49 | + if (!$embed) { |
|
| 50 | + return null; |
|
| 51 | + } |
|
| 48 | 52 | |
| 49 | 53 | $embed->setOptions($this->options)->setAmp($this->amp); |
| 50 | 54 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | } else { |
| 48 | 48 | $data[$key] = str_replace('{protocol}', $protocol, $data[$key]); |
| 49 | 49 | for ($i = 1; $i < count($matches); $i++) { |
| 50 | - $data[$key] = str_replace('{'.$i.'}', $matches[$i], $data[$key]); |
|
| 50 | + $data[$key] = str_replace('{' . $i . '}', $matches[$i], $data[$key]); |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | } |