We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 49-64 (lines=16) @@ | ||
46 | return $fields; |
|
47 | } |
|
48 | ||
49 | public function process(LazyConfig $lazyConfig) |
|
50 | { |
|
51 | $lazyConfig->addPostLoader(function ($config) { |
|
52 | if (isset($config['fields']) && is_callable($config['fields'])) { |
|
53 | $config['fields'] = function () use ($config) { |
|
54 | $fields = $config['fields'](); |
|
55 | ||
56 | return static::acl($fields, $this->accessResolver, $this->defaultResolver); |
|
57 | }; |
|
58 | } |
|
59 | ||
60 | return $config; |
|
61 | }); |
|
62 | ||
63 | return $lazyConfig; |
|
64 | } |
|
65 | ||
66 | /** |
|
67 | * @param array $field |
@@ 29-44 (lines=16) @@ | ||
26 | /** |
|
27 | * {@inheritdoc} |
|
28 | */ |
|
29 | public function process(LazyConfig $lazyConfig) |
|
30 | { |
|
31 | $lazyConfig->addPostLoader(function ($config) { |
|
32 | if (isset($config['fields']) && is_callable($config['fields'])) { |
|
33 | $config['fields'] = function () use ($config) { |
|
34 | $fields = $config['fields'](); |
|
35 | ||
36 | return static::filter($fields); |
|
37 | }; |
|
38 | } |
|
39 | ||
40 | return $config; |
|
41 | }); |
|
42 | ||
43 | return $lazyConfig; |
|
44 | } |
|
45 | } |
|
46 |