Test Failed
Push — master ( dcffbc...6a4273 )
by NexusLink
02:56
created
src/Services/ExternalLinkFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public static function removeWebLinks($content, $domain) {
15 15
         if (!empty($content)) {
16 16
             if (!empty($domain)) {
17
-                $pattern = '#<a [^>]*\bhref=([\'"])http.?://((?<!'. $domain .')[^\'"])+\1 *.*?</a>#i';                
17
+                $pattern = '#<a [^>]*\bhref=([\'"])http.?://((?<!' . $domain . ')[^\'"])+\1 *.*?</a>#i';                
18 18
                 $filteredString = preg_replace($pattern, '', $content);
19 19
             } else {
20 20
                 $filteredString = preg_replace('#<a.*?>.*?</a>#i', '', $content);
Please login to merge, or discard this patch.
Tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 // Needed for isolated tests
3
-require_once __DIR__.'/../vendor/autoload.php';
3
+require_once __DIR__ . '/../vendor/autoload.php';
4 4
 
5 5
 ini_set('precision', 14);
6 6
 ini_set('serialize_precision', 14);
Please login to merge, or discard this patch.