Completed
Pull Request — master (#161)
by
unknown
62:55
created
src/UriTemplate.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -402,9 +402,9 @@
 block discarded – undo
402 402
         $parts = [];
403 403
         /** @var array{name:string, modifier:string, position:string} $variable */
404 404
         foreach ($expression['variables'] as $variable) {
405
-          if (isset($this->variables[$variable['name']])) {
405
+            if (isset($this->variables[$variable['name']])) {
406 406
             $parts[] = $this->expandVariable($variable, $expression['operator'], $joiner, $useQuery);
407
-          }
407
+            }
408 408
         }
409 409
 
410 410
         $nullFilter = static function ($value): bool {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
      * @link https://tools.ietf.org/html/rfc6570#appendix-A
88 88
      */
89 89
     private const OPERATOR_HASH_LOOKUP = [
90
-        ''  => ['prefix' => '',  'joiner' => ',', 'query' => false],
91
-        '+' => ['prefix' => '',  'joiner' => ',', 'query' => false],
90
+        ''  => ['prefix' => '', 'joiner' => ',', 'query' => false],
91
+        '+' => ['prefix' => '', 'joiner' => ',', 'query' => false],
92 92
         '#' => ['prefix' => '#', 'joiner' => ',', 'query' => false],
93 93
         '.' => ['prefix' => '.', 'joiner' => '.', 'query' => false],
94 94
         '/' => ['prefix' => '/', 'joiner' => '/', 'query' => false],
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      */
259 259
     private function filterVariables(array $variables): array
260 260
     {
261
-        $filter = function ($key): bool {
261
+        $filter = function($key): bool {
262 262
             return in_array($key, $this->variableNames, true);
263 263
         };
264 264
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
           }
408 408
         }
409 409
 
410
-        $nullFilter = static function ($value): bool {
410
+        $nullFilter = static function($value): bool {
411 411
             return '' !== $value;
412 412
         };
413 413
 
Please login to merge, or discard this patch.