@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $sibling = $node; |
57 | 57 | while (!str_starts_with($tag, 'h')) { |
58 | 58 | $sibling = $sibling->nextSibling(); |
59 | - $tag = $sibling?->tag?->name(); |
|
59 | + $tag = $sibling ? ->tag ? ->name(); |
|
60 | 60 | if (empty($node->text()) or empty($tag) or $tag == 'text') { |
61 | 61 | continue; |
62 | 62 | } elseif ($tag == 'p') { |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | $phrases = explode('.', $description); |
254 | 254 | $phrases = array_filter( |
255 | 255 | $phrases, |
256 | - function ($phrase) { |
|
256 | + function($phrase) { |
|
257 | 257 | return (false !== stripos($phrase, 'returns') or false !== stripos($phrase, 'is returned')); |
258 | 258 | } |
259 | 259 | ); |