Passed
Branch master (a134f2)
by Kane
02:11
created
src/OEmbed.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,11 +40,15 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/RegexExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.