Completed
Pull Request — master (#2)
by Csaba
02:36
created
src/HumanDirect/Socially/Util.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
      */
15 15
     public static function toCamelCase(string $input): string
16 16
     {
17
-        return str_replace(' ', '', ucwords(str_replace(['.', '_', '-'], ' ', $input)));
17
+        return str_replace(' ', '', ucwords(str_replace([ '.', '_', '-' ], ' ', $input)));
18 18
     }
19 19
 
20 20
     /**
Please login to merge, or discard this patch.
src/HumanDirect/Socially/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
      */
153 153
     public function __toString(): string
154 154
     {
155
-        return (string) $this->tldResult;
155
+        return (string)$this->tldResult;
156 156
     }
157 157
 
158 158
     /**
Please login to merge, or discard this patch.
src/HumanDirect/Socially/Parser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             __DIR__ . '/Normalizer',
92 92
             \RecursiveDirectoryIterator::SKIP_DOTS
93 93
         );
94
-        $files = new \RecursiveCallbackFilterIterator($directory, function ($current, $key, $iterator) use ($normalizerNS) {
94
+        $files = new \RecursiveCallbackFilterIterator($directory, function($current, $key, $iterator) use ($normalizerNS) {
95 95
             $className = str_replace('.php', '', $current->getFilename());
96 96
             $isNormalizer = 'Normalizer' === substr($className, -10);
97 97
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         foreach ($files as $file) {
108 108
             $className = $normalizerNS . str_replace('.php', '', $file->getFilename());
109
-            $this->normalizers[] = new $className();
109
+            $this->normalizers[ ] = new $className();
110 110
         }
111 111
     }
112 112
 
Please login to merge, or discard this patch.
src/HumanDirect/Socially/Normalizer/DefaultNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         parse_str($query, $params);
133 133
         foreach ($params as $paramKey => $paramValue) {
134 134
             if (!\in_array($paramKey, $this->allowedQueryParams, true)) {
135
-                unset($params[$paramKey]);
135
+                unset($params[ $paramKey ]);
136 136
             }
137 137
         }
138 138
 
Please login to merge, or discard this patch.
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.