Passed
Pull Request — master (#1093)
by butschster
20:45
created
src/Tokenizer/src/Bootloader/TokenizerBootloader.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function __construct(
49 49
         private readonly ConfiguratorInterface $config,
50
-    ) {
50
+    ){
51 51
     }
52 52
 
53 53
     public function init(BinderInterface $binder, DirectoriesInterface $dirs, EnvironmentInterface $env): void
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     'migrations',
70 70
                 ],
71 71
                 'cache' => [
72
-                    'directory' => $dirs->get('runtime') . 'cache/listeners',
72
+                    'directory' => $dirs->get('runtime').'cache/listeners',
73 73
                     'enabled' => \filter_var($env->get('TOKENIZER_CACHE_TARGETS', false), \FILTER_VALIDATE_BOOL),
74 74
                 ],
75 75
                 'load' => [
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         $this->config->modify(
105 105
             TokenizerConfig::CONFIG,
106
-            new Append('scopes.' . $scope . '.directories', null, $directory),
106
+            new Append('scopes.'.$scope.'.directories', null, $directory),
107 107
         );
108 108
     }
109 109
 
@@ -118,20 +118,20 @@  discard block
 block discarded – undo
118 118
 
119 119
         $this->config->modify(
120 120
             TokenizerConfig::CONFIG,
121
-            new Append('scopes.' . $scope . '.exclude', null, $directory),
121
+            new Append('scopes.'.$scope.'.exclude', null, $directory),
122 122
         );
123 123
     }
124 124
 
125 125
     private function ensureScopeExists(string $scope, string $section): void
126 126
     {
127
-        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'])) {
127
+        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'])){
128 128
             $this->config->modify(
129 129
                 TokenizerConfig::CONFIG,
130 130
                 new Set('scopes', []),
131 131
             );
132 132
         }
133 133
 
134
-        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'][$scope])) {
134
+        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'][$scope])){
135 135
             $this->config->modify(
136 136
                 TokenizerConfig::CONFIG,
137 137
                 new Append('scopes', $scope, [$section => []]),
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,14 +124,16 @@
 block discarded – undo
124 124
 
125 125
     private function ensureScopeExists(string $scope, string $section): void
126 126
     {
127
-        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'])) {
127
+        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes']))
128
+        {
128 129
             $this->config->modify(
129 130
                 TokenizerConfig::CONFIG,
130 131
                 new Set('scopes', []),
131 132
             );
132 133
         }
133 134
 
134
-        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'][$scope])) {
135
+        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'][$scope]))
136
+        {
135 137
             $this->config->modify(
136 138
                 TokenizerConfig::CONFIG,
137 139
                 new Append('scopes', $scope, [$section => []]),
Please login to merge, or discard this patch.