| @@ -72,7 +72,7 @@ discard block | ||
| 72 | 72 |      { | 
| 73 | 73 |          foreach (self::SOCIAL_MEDIA_PATTERNS as $platform => $regex) { | 
| 74 | 74 |              foreach ($regex as $prefix => $pattern) { | 
| 75 | -                if (preg_match('#'.$pattern.'#i', $url)) { | |
| 75 | +                if (preg_match('#' . $pattern . '#i', $url)) { | |
| 76 | 76 |                      return \is_string($prefix) ? sprintf('%s.%s', $platform, $prefix) : $platform; | 
| 77 | 77 | } | 
| 78 | 78 | } | 
| @@ -91,7 +91,7 @@ discard block | ||
| 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 | ||
| 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 | |
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 | return $url; | 
| 39 | 39 | } | 
| 40 | 40 | |
| 41 | - return str_replace($subdomain.'.', '', $url); | |
| 41 | + return str_replace($subdomain . '.', '', $url); | |
| 42 | 42 | } | 
| 43 | 43 | |
| 44 | 44 | /** | 
| @@ -14,7 +14,7 @@ | ||
| 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 | /** |