Test Failed
Push — master ( 432ed3...7e901a )
by NexusLink
49:37 queued 07:43
created
src/Services/ExternalLinkFilter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,16 +13,16 @@
 block discarded – undo
13 13
      */
14 14
     public static function removeWebLinks($content, $domain) {
15 15
         if (!empty($content)) {
16
-            if(!empty($domain)) {                
16
+            if (!empty($domain)) {                
17 17
                 $regex = '/<a (.*)<\/a>/isU';
18 18
                 $result = array();
19
-                preg_match_all($regex,$content,$result);
19
+                preg_match_all($regex, $content, $result);
20 20
                 $filter_regex = '/<a (.*)>(.*)<\/a>/isU';
21
-                foreach($result[0] as $rs)
21
+                foreach ($result[0] as $rs)
22 22
                 {
23
-                    if($rs !== $domain) {                        
24
-                        $text = preg_replace($filter_regex,'$2',$rs);
25
-                        $str = str_replace($rs,$text,$str);   
23
+                    if ($rs !== $domain) {                        
24
+                        $text = preg_replace($filter_regex, '$2', $rs);
25
+                        $str = str_replace($rs, $text, $str);   
26 26
                     }                 
27 27
                 }
28 28
             } else {
Please login to merge, or discard this patch.
src/LinkPurifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         
40 40
         $configArray = Yaml::parse(file_get_contents($this->pathToYml));
41 41
         
42
-        if(true === $purify || true === $configArray['external_link']['purify'])
42
+        if (true === $purify || true === $configArray['external_link']['purify'])
43 43
         {
44 44
             $content = ExternalLinkFilter::removeWebLinks($content, $domain);
45 45
         }
Please login to merge, or discard this patch.
Tests/src/LinkPurifierTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use ExternalLinkPurifier\LinkPurifier;
6 6
 
7
-class LinkPurifierTest extends \PHPUnit_Framework_TestCase{
7
+class LinkPurifierTest extends \PHPUnit_Framework_TestCase {
8 8
     
9 9
     /**
10 10
      * @test
Please login to merge, or discard this patch.