Completed
Pull Request — master (#2)
by Csaba
02:36
created
src/HumanDirect/Socially/Normalizer/TwitterNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $url = parent::afterNormalization($url);
18 18
 
19 19
         // strip @ and #! from the URL, eg. twitter.com/@HumanDirectEU becomes twitter.com/HumanDirectEU
20
-        $url = str_replace(['.com/@', '.com/#!/', '.com/share'], '.com/', $url);
20
+        $url = str_replace([ '.com/@', '.com/#!/', '.com/share' ], '.com/', $url);
21 21
 
22 22
         return rtrim($url, '/');
23 23
     }
Please login to merge, or discard this patch.
src/HumanDirect/Socially/Normalizer/FacebookNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $url = parent::afterNormalization($url);
18 18
         $url = str_replace('fb.com', 'facebook.com', $url);
19 19
 
20
-        $url = str_replace(['.com/sharer.php', '.com/sharer/sharer.php'], '.com', $url);
20
+        $url = str_replace([ '.com/sharer.php', '.com/sharer/sharer.php' ], '.com', $url);
21 21
 
22 22
         return rtrim($url, '/');
23 23
     }
Please login to merge, or discard this patch.