@@ -47,7 +47,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 => []]), |
@@ -124,14 +124,16 @@ |
||
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 => []]), |