We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 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 |
@@ 48-63 (lines=16) @@ | ||
45 | return $fields; |
|
46 | } |
|
47 | ||
48 | public function process(LazyConfig $lazyConfig) |
|
49 | { |
|
50 | $lazyConfig->addPostLoader(function ($config) { |
|
51 | if (isset($config['fields']) && is_callable($config['fields'])) { |
|
52 | $config['fields'] = function () use ($config) { |
|
53 | $fields = $config['fields'](); |
|
54 | ||
55 | return static::acl($fields, $this->accessResolver, $this->defaultResolver); |
|
56 | }; |
|
57 | } |
|
58 | ||
59 | return $config; |
|
60 | }); |
|
61 | ||
62 | return $lazyConfig; |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * @param array $field |