| @@ -47,12 +47,12 @@ | ||
| 47 | 47 | |
| 48 | 48 | private function getLinesRecursively(&$lines, $scopes, $depth = -1, $previousScopeCode = "") | 
| 49 | 49 |      { | 
| 50 | -         foreach ($scopes as $scopeCode => $scopeName) { | |
| 51 | -             if ($scopeCode == "~name") { | |
| 52 | -                 $lines[] = [str_repeat("    ", $depth) . "- " . $previousScopeCode, $scopes["~name"]]; | |
| 53 | -             } else { | |
| 54 | - $this->getLinesRecursively($lines, $scopeName, $depth + 1, $scopeCode); | |
| 55 | - } | |
| 56 | - } | |
| 50 | +            foreach ($scopes as $scopeCode => $scopeName) { | |
| 51 | +                if ($scopeCode == "~name") { | |
| 52 | +                    $lines[] = [str_repeat("    ", $depth) . "- " . $previousScopeCode, $scopes["~name"]]; | |
| 53 | +                } else { | |
| 54 | + $this->getLinesRecursively($lines, $scopeName, $depth + 1, $scopeCode); | |
| 55 | + } | |
| 56 | + } | |
| 57 | 57 | } | 
| 58 | 58 | } | 
| 59 | 59 | \ No newline at end of file | 
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 |              if (is_object($config)) { | 
| 46 | 46 | return null; | 
| 47 | 47 | } | 
| 48 | - $child = $this->getRecursiveFirstConfigPath( $config, $parent . "/" . $key); | |
| 48 | + $child = $this->getRecursiveFirstConfigPath($config, $parent . "/" . $key); | |
| 49 | 49 | |
| 50 | 50 |              if (is_null($child)) { | 
| 51 | 51 | return $parent . "/" . $key; | 
| @@ -141,7 +141,7 @@ | ||
| 141 | 141 |          do { | 
| 142 | 142 | $scopes[] = $lastScope; | 
| 143 | 143 | $lastScope = $this->scopeResolver->inherits($lastScope); | 
| 144 | - } while(!is_null($lastScope)); | |
| 144 | + } while (!is_null($lastScope)); | |
| 145 | 145 | |
| 146 | 146 | $values = $this->storage->load($scopes); | 
| 147 | 147 | $previousScope = null; | 
| @@ -56,7 +56,7 @@ | ||
| 56 | 56 | $result = $qb->getQuery()->getResult(); | 
| 57 | 57 | |
| 58 | 58 | $groupedConfigValues = []; | 
| 59 | -        foreach ($result as $config){ | |
| 59 | +        foreach ($result as $config) { | |
| 60 | 60 | $groupedConfigValues[$config->getScope()][$config->getPath()] = $config->getValue(); | 
| 61 | 61 | $this->entities[$config->getScope()][$config->getPath()] = $config; | 
| 62 | 62 | } | 
| @@ -44,11 +44,11 @@ | ||
| 44 | 44 |      { | 
| 45 | 45 |          $builder->add('save', SubmitType::class, ['label' => 'Save configs']); | 
| 46 | 46 | |
| 47 | -        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { | |
| 47 | +        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { | |
| 48 | 48 | $data = $event->getData(); | 
| 49 | 49 | $form = $event->getForm(); | 
| 50 | 50 | |
| 51 | - $this->scope = $data['scope'] ?? null;; | |
| 51 | + $this->scope = $data['scope'] ?? null; ; | |
| 52 | 52 | $this->configs = $data['configs'] ?? []; | 
| 53 | 53 | |
| 54 | 54 |              foreach ($this->configs as $config) { | 
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 | */ | 
| 21 | 21 | public function load(array $configs, ContainerBuilder $container) | 
| 22 | 22 |      { | 
| 23 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | |
| 23 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); | |
| 24 | 24 |          $loader->load('scope-provider.yml'); | 
| 25 | 25 |          $loader->load('services.yml'); | 
| 26 | 26 |          $loader->load('form-type-provider.yml'); |