@@ -71,7 +71,7 @@ |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | if ($this->checker->isGranted($action, $config)) { |
| 74 | - yield $config; |
|
| 74 | + yield $config; |
|
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | } |
@@ -76,13 +76,13 @@ |
||
| 76 | 76 | |
| 77 | 77 | private function getLinesRecursively(&$lines, array $configs, ?string $scope) |
| 78 | 78 | { |
| 79 | - foreach ($configs as $config) { |
|
| 80 | - if (is_array($config)) { |
|
| 81 | - $this->getLinesRecursively($lines, $config, $scope); |
|
| 82 | - } else { |
|
| 83 | - /** @var ConfigInterface $config */ |
|
| 84 | - $lines[] = [$config->getPath(), $config->getRawValue($scope)]; |
|
| 85 | - } |
|
| 86 | - } |
|
| 79 | + foreach ($configs as $config) { |
|
| 80 | + if (is_array($config)) { |
|
| 81 | + $this->getLinesRecursively($lines, $config, $scope); |
|
| 82 | + } else { |
|
| 83 | + /** @var ConfigInterface $config */ |
|
| 84 | + $lines[] = [$config->getPath(), $config->getRawValue($scope)]; |
|
| 85 | + } |
|
| 86 | + } |
|
| 87 | 87 | } |
| 88 | 88 | } |
@@ -48,12 +48,12 @@ |
||
| 48 | 48 | |
| 49 | 49 | private function getLinesRecursively(&$lines, $scopes, $depth = -1, $previousScopeCode = "") |
| 50 | 50 | { |
| 51 | - foreach ($scopes as $scopeCode => $scopeName) { |
|
| 52 | - if ($scopeCode == "~name") { |
|
| 53 | - $lines[] = [str_repeat(" ", $depth) . "- " . $previousScopeCode, $scopes["~name"]]; |
|
| 54 | - } else { |
|
| 55 | - $this->getLinesRecursively($lines, $scopeName, $depth + 1, $scopeCode); |
|
| 56 | - } |
|
| 57 | - } |
|
| 51 | + foreach ($scopes as $scopeCode => $scopeName) { |
|
| 52 | + if ($scopeCode == "~name") { |
|
| 53 | + $lines[] = [str_repeat(" ", $depth) . "- " . $previousScopeCode, $scopes["~name"]]; |
|
| 54 | + } else { |
|
| 55 | + $this->getLinesRecursively($lines, $scopeName, $depth + 1, $scopeCode); |
|
| 56 | + } |
|
| 57 | + } |
|
| 58 | 58 | } |
| 59 | 59 | } |
@@ -76,13 +76,13 @@ |
||
| 76 | 76 | |
| 77 | 77 | private function getLinesRecursively(&$lines, array $configs, ?string $scope) |
| 78 | 78 | { |
| 79 | - foreach ($configs as $config) { |
|
| 80 | - if (is_array($config)) { |
|
| 81 | - $this->getLinesRecursively($lines, $config, $scope); |
|
| 82 | - } else { |
|
| 83 | - /** @var ConfigInterface $config */ |
|
| 84 | - $lines[] = [$config->getPath(), $config->getRawValue($scope)]; |
|
| 85 | - } |
|
| 86 | - } |
|
| 79 | + foreach ($configs as $config) { |
|
| 80 | + if (is_array($config)) { |
|
| 81 | + $this->getLinesRecursively($lines, $config, $scope); |
|
| 82 | + } else { |
|
| 83 | + /** @var ConfigInterface $config */ |
|
| 84 | + $lines[] = [$config->getPath(), $config->getRawValue($scope)]; |
|
| 85 | + } |
|
| 86 | + } |
|
| 87 | 87 | } |
| 88 | 88 | } |