Completed
Pull Request — master (#153)
by ignace nyamagana
02:03
created
src/UriInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         $pairs = null === $query ? [] : explode('&', $query);
79 79
         sort($pairs, SORT_REGULAR);
80 80
 
81
-        $replace = static function (array $matches): string {
81
+        $replace = static function(array $matches): string {
82 82
             return rawurldecode($matches[0]);
83 83
         };
84 84
 
Please login to merge, or discard this patch.
src/Uri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -961,7 +961,7 @@
 block discarded – undo
961 961
             return $path;
962 962
         }
963 963
 
964
-        $replace = static function (array $matches): string {
964
+        $replace = static function(array $matches): string {
965 965
             return $matches['delim'].str_replace('|', ':', $matches['root']).$matches['rest'];
966 966
         };
967 967
 
Please login to merge, or discard this patch.
src/UriTemplate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
     private const RESERVED_OPERATOR = '=,!@|';
65 65
 
66 66
     private const OPERATOR_HASH_LOOKUP = [
67
-        ''  => ['prefix' => '',  'joiner' => ',', 'query' => false],
68
-        '+' => ['prefix' => '',  'joiner' => ',', 'query' => false],
67
+        ''  => ['prefix' => '', 'joiner' => ',', 'query' => false],
68
+        '+' => ['prefix' => '', 'joiner' => ',', 'query' => false],
69 69
         '#' => ['prefix' => '#', 'joiner' => ',', 'query' => false],
70 70
         '.' => ['prefix' => '.', 'joiner' => '.', 'query' => false],
71 71
         '/' => ['prefix' => '/', 'joiner' => '/', 'query' => false],
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      */
219 219
     private function filterVariables(array $variables): array
220 220
     {
221
-        $filter = function ($key): bool {
221
+        $filter = function($key): bool {
222 222
             return in_array($key, $this->variableNames, true);
223 223
         };
224 224
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
             $parts[] = $this->expandVariable($variable, $expression['operator'], $joiner, $useQuery);
330 330
         }
331 331
 
332
-        $nullFilter = static function ($value): bool {
332
+        $nullFilter = static function($value): bool {
333 333
             return null !== $value && '' !== $value;
334 334
         };
335 335
 
Please login to merge, or discard this patch.