Passed
Push — master ( d37ad5...6a9ed7 )
by De Cramer
10:00 queued 07:52
created
Manager/ConfigDisplayManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Manager/ConfigManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Storage/DoctrineEntityStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
DependencyInjection/oliverde8ComfyExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Resolver/VisibleConfigsResolver.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             }
72 72
 
73 73
             if ($this->checker->isGranted($action, $config)) {
74
-               yield $config;
74
+                yield $config;
75 75
             }
76 76
         }
77 77
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $allowedConfigs = new AssociativeArray();
40 40
 
41 41
         $allConfigs = $this->configManager->getAllConfigs();
42
-        array_walk_recursive($allConfigs, function ($config, $key) use($allowedConfigs, $action) {
42
+        array_walk_recursive($allConfigs, function($config, $key) use($allowedConfigs, $action) {
43 43
             if (is_object($config)) {
44 44
                 if ($config->isHidden()) {
45 45
                     return;
Please login to merge, or discard this patch.
Form/Type/ConfigsForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@
 block discarded – undo
50 50
     {
51 51
         $builder->add('save', SubmitType::class, ['label' => 'Save configs']);
52 52
 
53
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
53
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
54 54
             $data = $event->getData();
55 55
             $form = $event->getForm();
56 56
 
57
-            $this->scope = $data['scope'] ?? null;;
57
+            $this->scope = $data['scope'] ?? null; ;
58 58
             $this->configs = $data['configs'] ?? [];
59 59
 
60 60
             $scopeObject = new Scope($this->scope);
Please login to merge, or discard this patch.
Command/SetConfigsCommand.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -76,13 +76,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Command/GetScopesCommand.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,12 +48,12 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Command/GetConfigsCommand.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -76,13 +76,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.