Completed
Pull Request — master (#288)
by Sébastien
08:06
created
Tests/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
 
747 747
         public static function setTrustedHosts(array $hostPatterns)
748 748
         {
749
-            self::$trustedHostPatterns = array_map(function ($hostPattern) {
749
+            self::$trustedHostPatterns = array_map(function($hostPattern) {
750 750
                     return sprintf('#%s#i', $hostPattern);
751 751
                 }, $hostPatterns);
752 752
             self::$trustedHosts = [];
@@ -2525,7 +2525,7 @@  discard block
 block discarded – undo
2525 2525
                     $alternatives = [];
2526 2526
                     foreach ($this->services as $key => $associatedService) {
2527 2527
                         $lev = levenshtein($id, $key);
2528
-                        if ($lev <= strlen($id) / 3 || false !== strpos($key, $id)) {
2528
+                        if ($lev <= strlen($id)/3 || false !== strpos($key, $id)) {
2529 2529
                             $alternatives[] = $key;
2530 2530
                         }
2531 2531
                     }
Please login to merge, or discard this patch.