@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | ->map('sort_direction', $this->builder->fromArgument('sortDirection')) |
| 193 | 193 | ->map('sort_by', $this->builder->compose( |
| 194 | 194 | $this->builder->fromArgument('sortBy'), |
| 195 | - $this->builder->callback(function ($direction) { |
|
| 195 | + $this->builder->callback(function($direction) { |
|
| 196 | 196 | $map = ['TITLE' => 'title', 'NID' => 'nid']; |
| 197 | 197 | return $map[$direction] ?? NULL; |
| 198 | 198 | }) |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | ->map('display_id', $this->builder->fromValue('filtered')) |
| 287 | 287 | ->map('filter', $this->builder->compose( |
| 288 | 288 | $this->builder->fromArgument('filter'), |
| 289 | - $this->builder->callback(function ($filter) { |
|
| 289 | + $this->builder->callback(function($filter) { |
|
| 290 | 290 | $mapped = []; |
| 291 | 291 | $map = ['TITLE' => 'title', 'NID' => 'nid']; |
| 292 | 292 | foreach ($filter as $key => $value) { |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | ->map('display_id', $this->builder->fromValue('filtered')) |
| 362 | 362 | ->map('filter', $this->builder->compose( |
| 363 | 363 | $this->builder->fromArgument('filter'), |
| 364 | - $this->builder->callback(function ($filter) { |
|
| 364 | + $this->builder->callback(function($filter) { |
|
| 365 | 365 | $mapped = []; |
| 366 | 366 | $map = ['field_tags' => 'field_tags']; |
| 367 | 367 | foreach ($filter as $key => $value) { |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | ->map('display_id', $this->builder->fromValue('filtered')) |
| 443 | 443 | ->map('filter', $this->builder->compose( |
| 444 | 444 | $this->builder->fromArgument('filter'), |
| 445 | - $this->builder->callback(function ($filter) { |
|
| 445 | + $this->builder->callback(function($filter) { |
|
| 446 | 446 | $mapped = []; |
| 447 | 447 | $map = ['node_type' => 'node_type']; |
| 448 | 448 | foreach ($filter as $key => $value) { |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | foreach ($this->letters as $letter) { |
| 78 | 78 | $this->createNode([ |
| 79 | - 'title' => 'Node ' . $letter, |
|
| 79 | + 'title' => 'Node '.$letter, |
|
| 80 | 80 | 'type' => 'test', |
| 81 | 81 | 'field_tags' => $terms[$letter], |
| 82 | 82 | ])->save(); |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | use Drupal\views\ViewExecutable; |
| 4 | 4 | |
| 5 | 5 | function graphql_views_test_views_pre_build(ViewExecutable $view) { |
| 6 | - $args =& drupal_static('graphql_views_test:view:args', []); |
|
| 7 | - $id = $view->storage->id() . ':' . $view->current_display; |
|
| 6 | + $args = & drupal_static('graphql_views_test:view:args', []); |
|
| 7 | + $id = $view->storage->id().':'.$view->current_display; |
|
| 8 | 8 | if (!isset($args[$id])) { |
| 9 | 9 | $args[$id] = []; |
| 10 | 10 | } |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | /** @var \Drupal\Core\Cache\CacheableMetadata $cache */ |
| 143 | 143 | if ($cache = $result['cache']) { |
| 144 | 144 | $cache->setCacheContexts( |
| 145 | - array_filter($cache->getCacheContexts(), function ($context) { |
|
| 145 | + array_filter($cache->getCacheContexts(), function($context) { |
|
| 146 | 146 | // Don't emit the url cache contexts. |
| 147 | 147 | return $context !== 'url' && strpos($context, 'url.') !== 0; |
| 148 | 148 | }) |