Passed
Push — master ( c81bf2...c3afe7 )
by Aleksei
09:08 queued 01:17
created
src/Framework/Command/Translator/ExportCommand.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
         ['locale', InputArgument::REQUIRED, 'Locale to be dumped'],
32 32
         ['path', InputArgument::REQUIRED, 'Export path'],
33 33
     ];
34
-    protected const OPTIONS     = [
34
+    protected const OPTIONS = [
35 35
         ['dumper', 'd', InputOption::VALUE_OPTIONAL, 'Dumper name', 'php'],
36 36
         ['fallback', 'f', InputOption::VALUE_NONE, 'Merge messages from fallback catalogue'],
37 37
     ];
38 38
 
39 39
     public function perform(TranslatorConfig $config, CatalogueManager $manager): int
40 40
     {
41
-        if (!$config->hasDumper($this->option('dumper'))) {
41
+        if (!$config->hasDumper($this->option('dumper'))){
42 42
             $this->writeln("<fg=red>Undefined dumper '{$this->option('dumper')}'.</fg=red>");
43 43
 
44 44
             return self::FAILURE;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             $manager->get($this->argument('locale')),
51 51
         );
52 52
 
53
-        if ($this->isVerbose() && !empty($mc->getDomains())) {
53
+        if ($this->isVerbose() && !empty($mc->getDomains())){
54 54
             $this->sprintf(
55 55
                 "<info>Exporting domain(s):</info> %s\n",
56 56
                 \implode(',', $mc->getDomains()),
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
             ],
69 69
         );
70 70
 
71
-        $this->writeln('Export successfully completed using <info>' . $dumper::class . '</info>');
72
-        $this->writeln('Output: <comment>' . \realpath($this->argument('path')) . '</comment>');
71
+        $this->writeln('Export successfully completed using <info>'.$dumper::class.'</info>');
72
+        $this->writeln('Output: <comment>'.\realpath($this->argument('path')).'</comment>');
73 73
 
74 74
         return self::SUCCESS;
75 75
     }
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
             $catalogue->getData(),
85 85
         );
86 86
 
87
-        if ($this->option('fallback')) {
88
-            foreach ($manager->get($config->getFallbackLocale())->getData() as $domain => $messages) {
89
-                foreach ($messages as $id => $message) {
90
-                    if (!$messageCatalogue->defines($id, $domain)) {
87
+        if ($this->option('fallback')){
88
+            foreach ($manager->get($config->getFallbackLocale())->getData() as $domain => $messages){
89
+                foreach ($messages as $id => $message){
90
+                    if (!$messageCatalogue->defines($id, $domain)){
91 91
                         $messageCatalogue->set($id, $message, $domain);
92 92
                     }
93 93
                 }
Please login to merge, or discard this patch.
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,8 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function perform(TranslatorConfig $config, CatalogueManager $manager): int
40 40
     {
41
-        if (!$config->hasDumper($this->option('dumper'))) {
41
+        if (!$config->hasDumper($this->option('dumper')))
42
+        {
42 43
             $this->writeln("<fg=red>Undefined dumper '{$this->option('dumper')}'.</fg=red>");
43 44
 
44 45
             return self::FAILURE;
@@ -50,7 +51,8 @@  discard block
 block discarded – undo
50 51
             $manager->get($this->argument('locale')),
51 52
         );
52 53
 
53
-        if ($this->isVerbose() && !empty($mc->getDomains())) {
54
+        if ($this->isVerbose() && !empty($mc->getDomains()))
55
+        {
54 56
             $this->sprintf(
55 57
                 "<info>Exporting domain(s):</info> %s\n",
56 58
                 \implode(',', $mc->getDomains()),
@@ -84,10 +86,14 @@  discard block
 block discarded – undo
84 86
             $catalogue->getData(),
85 87
         );
86 88
 
87
-        if ($this->option('fallback')) {
88
-            foreach ($manager->get($config->getFallbackLocale())->getData() as $domain => $messages) {
89
-                foreach ($messages as $id => $message) {
90
-                    if (!$messageCatalogue->defines($id, $domain)) {
89
+        if ($this->option('fallback'))
90
+        {
91
+            foreach ($manager->get($config->getFallbackLocale())->getData() as $domain => $messages)
92
+            {
93
+                foreach ($messages as $id => $message)
94
+                {
95
+                    if (!$messageCatalogue->defines($id, $domain))
96
+                    {
91 97
                         $messageCatalogue->set($id, $message, $domain);
92 98
                     }
93 99
                 }
Please login to merge, or discard this patch.
src/Framework/Command/Views/CompileCommand.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@  discard block
 block discarded – undo
25 25
         $generator = new ContextGenerator($views->getContext());
26 26
 
27 27
         $contexts = $generator->generate();
28
-        if (empty($contexts)) {
28
+        if (empty($contexts)){
29 29
             $contexts[] = $views->getContext();
30 30
         }
31 31
 
32
-        foreach ($contexts as $context) {
33
-            foreach ($views->getEngines() as $engine) {
34
-                if ($engine instanceof NativeEngine) {
32
+        foreach ($contexts as $context){
33
+            foreach ($views->getEngines() as $engine){
34
+                if ($engine instanceof NativeEngine){
35 35
                     // no need to compile
36 36
                     continue;
37 37
                 }
@@ -53,19 +53,19 @@  discard block
 block discarded – undo
53 53
             $this->describeContext($context) ?? 'default',
54 54
         );
55 55
 
56
-        foreach ($engine->getLoader()->list() as $path) {
56
+        foreach ($engine->getLoader()->list() as $path){
57 57
             $start = \microtime(true);
58
-            try {
58
+            try{
59 59
                 $engine->reset($path, $context);
60 60
                 $engine->compile($path, $context);
61 61
 
62
-                if ($this->isVerbose()) {
62
+                if ($this->isVerbose()){
63 63
                     $this->sprintf('<info>•</info> %s', $path);
64 64
                 }
65
-            } catch (\Throwable $e) {
65
+            }catch (\Throwable $e){
66 66
                 $this->renderError($path, $e);
67 67
                 continue;
68
-            } finally {
68
+            }finally{
69 69
                 $this->renderElapsed($start);
70 70
             }
71 71
         }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     protected function renderError(string $path, \Throwable $e): void
77 77
     {
78
-        if (!$this->isVerbose()) {
78
+        if (!$this->isVerbose()){
79 79
             return;
80 80
         }
81 81
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $values = [];
93 93
 
94
-        foreach ($context->getDependencies() as $dependency) {
94
+        foreach ($context->getDependencies() as $dependency){
95 95
             $values[] = \sprintf(
96 96
                 '%s%s%s:%s%s%s',
97 97
                 Color::LIGHT_WHITE,
@@ -113,11 +113,11 @@  discard block
 block discarded – undo
113 113
 
114 114
     private function renderSuccess(?string $lastPath = null): void
115 115
     {
116
-        if (!$this->isVerbose()) {
116
+        if (!$this->isVerbose()){
117 117
             return;
118 118
         }
119 119
 
120
-        if ($lastPath === null) {
120
+        if ($lastPath === null){
121 121
             $this->writeln('• no views found');
122 122
         }
123 123
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
     private function renderElapsed(float $start): void
128 128
     {
129
-        if (!$this->isVerbose()) {
129
+        if (!$this->isVerbose()){
130 130
             return;
131 131
         }
132 132
 
Please login to merge, or discard this patch.
Braces   +30 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,13 +25,17 @@  discard block
 block discarded – undo
25 25
         $generator = new ContextGenerator($views->getContext());
26 26
 
27 27
         $contexts = $generator->generate();
28
-        if (empty($contexts)) {
28
+        if (empty($contexts))
29
+        {
29 30
             $contexts[] = $views->getContext();
30 31
         }
31 32
 
32
-        foreach ($contexts as $context) {
33
-            foreach ($views->getEngines() as $engine) {
34
-                if ($engine instanceof NativeEngine) {
33
+        foreach ($contexts as $context)
34
+        {
35
+            foreach ($views->getEngines() as $engine)
36
+            {
37
+                if ($engine instanceof NativeEngine)
38
+                {
35 39
                     // no need to compile
36 40
                     continue;
37 41
                 }
@@ -53,19 +57,26 @@  discard block
 block discarded – undo
53 57
             $this->describeContext($context) ?? 'default',
54 58
         );
55 59
 
56
-        foreach ($engine->getLoader()->list() as $path) {
60
+        foreach ($engine->getLoader()->list() as $path)
61
+        {
57 62
             $start = \microtime(true);
58
-            try {
63
+            try
64
+            {
59 65
                 $engine->reset($path, $context);
60 66
                 $engine->compile($path, $context);
61 67
 
62
-                if ($this->isVerbose()) {
68
+                if ($this->isVerbose())
69
+                {
63 70
                     $this->sprintf('<info>•</info> %s', $path);
64 71
                 }
65
-            } catch (\Throwable $e) {
72
+            }
73
+            catch (\Throwable $e)
74
+            {
66 75
                 $this->renderError($path, $e);
67 76
                 continue;
68
-            } finally {
77
+            }
78
+            finally
79
+            {
69 80
                 $this->renderElapsed($start);
70 81
             }
71 82
         }
@@ -75,7 +86,8 @@  discard block
 block discarded – undo
75 86
 
76 87
     protected function renderError(string $path, \Throwable $e): void
77 88
     {
78
-        if (!$this->isVerbose()) {
89
+        if (!$this->isVerbose())
90
+        {
79 91
             return;
80 92
         }
81 93
 
@@ -91,7 +103,8 @@  discard block
 block discarded – undo
91 103
     {
92 104
         $values = [];
93 105
 
94
-        foreach ($context->getDependencies() as $dependency) {
106
+        foreach ($context->getDependencies() as $dependency)
107
+        {
95 108
             $values[] = \sprintf(
96 109
                 '%s%s%s:%s%s%s',
97 110
                 Color::LIGHT_WHITE,
@@ -113,11 +126,13 @@  discard block
 block discarded – undo
113 126
 
114 127
     private function renderSuccess(?string $lastPath = null): void
115 128
     {
116
-        if (!$this->isVerbose()) {
129
+        if (!$this->isVerbose())
130
+        {
117 131
             return;
118 132
         }
119 133
 
120
-        if ($lastPath === null) {
134
+        if ($lastPath === null)
135
+        {
121 136
             $this->writeln('• no views found');
122 137
         }
123 138
 
@@ -126,7 +141,8 @@  discard block
 block discarded – undo
126 141
 
127 142
     private function renderElapsed(float $start): void
128 143
     {
129
-        if (!$this->isVerbose()) {
144
+        if (!$this->isVerbose())
145
+        {
130 146
             return;
131 147
         }
132 148
 
Please login to merge, or discard this patch.
src/Framework/Command/Views/ResetCommand.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,20 +18,20 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function perform(ViewsConfig $config, FilesInterface $files): int
20 20
     {
21
-        if (!$files->exists($config->getCacheDirectory())) {
21
+        if (!$files->exists($config->getCacheDirectory())){
22 22
             $this->writeln('Cache directory is missing, no cache to be cleaned.');
23 23
 
24 24
             return self::FAILURE;
25 25
         }
26 26
 
27
-        if ($this->isVerbose()) {
27
+        if ($this->isVerbose()){
28 28
             $this->writeln('<info>Cleaning view cache:</info>');
29 29
         }
30 30
 
31
-        foreach ($files->getFiles($config->getCacheDirectory()) as $filename) {
32
-            try {
31
+        foreach ($files->getFiles($config->getCacheDirectory()) as $filename){
32
+            try{
33 33
                 $files->delete($filename);
34
-            } catch (\Throwable $e) {
34
+            }catch (\Throwable $e){
35 35
                 // @codeCoverageIgnoreStart
36 36
                 $this->sprintf(
37 37
                     "<fg=red>[errored]</fg=red> `%s`: <fg=red>%s</fg=red>\n",
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 // @codeCoverageIgnoreEnd
44 44
             }
45 45
 
46
-            if ($this->isVerbose()) {
46
+            if ($this->isVerbose()){
47 47
                 $this->sprintf(
48 48
                     "<fg=green>[deleted]</fg=green> `%s`\n",
49 49
                     $files->relativePath($filename, $config->getCacheDirectory()),
Please login to merge, or discard this patch.
Braces   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,20 +18,26 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function perform(ViewsConfig $config, FilesInterface $files): int
20 20
     {
21
-        if (!$files->exists($config->getCacheDirectory())) {
21
+        if (!$files->exists($config->getCacheDirectory()))
22
+        {
22 23
             $this->writeln('Cache directory is missing, no cache to be cleaned.');
23 24
 
24 25
             return self::FAILURE;
25 26
         }
26 27
 
27
-        if ($this->isVerbose()) {
28
+        if ($this->isVerbose())
29
+        {
28 30
             $this->writeln('<info>Cleaning view cache:</info>');
29 31
         }
30 32
 
31
-        foreach ($files->getFiles($config->getCacheDirectory()) as $filename) {
32
-            try {
33
+        foreach ($files->getFiles($config->getCacheDirectory()) as $filename)
34
+        {
35
+            try
36
+            {
33 37
                 $files->delete($filename);
34
-            } catch (\Throwable $e) {
38
+            }
39
+            catch (\Throwable $e)
40
+            {
35 41
                 // @codeCoverageIgnoreStart
36 42
                 $this->sprintf(
37 43
                     "<fg=red>[errored]</fg=red> `%s`: <fg=red>%s</fg=red>\n",
@@ -43,7 +49,8 @@  discard block
 block discarded – undo
43 49
                 // @codeCoverageIgnoreEnd
44 50
             }
45 51
 
46
-            if ($this->isVerbose()) {
52
+            if ($this->isVerbose())
53
+            {
47 54
                 $this->sprintf(
48 55
                     "<fg=green>[deleted]</fg=green> `%s`\n",
49 56
                     $files->relativePath($filename, $config->getCacheDirectory()),
Please login to merge, or discard this patch.
src/Framework/Command/CleanCommand.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,20 +18,20 @@  discard block
 block discarded – undo
18 18
     public function perform(FilesInterface $files, DirectoriesInterface $directories): int
19 19
     {
20 20
         $cacheDirectory = $directories->get('cache');
21
-        if (!$files->exists($cacheDirectory)) {
21
+        if (!$files->exists($cacheDirectory)){
22 22
             $this->writeln('Cache directory is missing, no cache to be cleaned.');
23 23
 
24 24
             return self::FAILURE;
25 25
         }
26 26
 
27
-        if ($this->isVerbose()) {
27
+        if ($this->isVerbose()){
28 28
             $this->writeln('<info>Cleaning application cache:</info>');
29 29
         }
30 30
 
31
-        foreach ($files->getFiles($cacheDirectory) as $filename) {
32
-            try {
31
+        foreach ($files->getFiles($cacheDirectory) as $filename){
32
+            try{
33 33
                 $files->delete($filename);
34
-            } catch (\Throwable $e) {
34
+            }catch (\Throwable $e){
35 35
                 // @codeCoverageIgnoreStart
36 36
                 $this->sprintf(
37 37
                     "<fg=red>[errored]</fg=red> `%s`: <fg=red>%s</fg=red>\n",
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 // @codeCoverageIgnoreEnd
44 44
             }
45 45
 
46
-            if ($this->isVerbose()) {
46
+            if ($this->isVerbose()){
47 47
                 $this->sprintf(
48 48
                     "<fg=green>[deleted]</fg=green> `%s`\n",
49 49
                     $files->relativePath($filename, $cacheDirectory),
Please login to merge, or discard this patch.
Braces   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,20 +18,26 @@  discard block
 block discarded – undo
18 18
     public function perform(FilesInterface $files, DirectoriesInterface $directories): int
19 19
     {
20 20
         $cacheDirectory = $directories->get('cache');
21
-        if (!$files->exists($cacheDirectory)) {
21
+        if (!$files->exists($cacheDirectory))
22
+        {
22 23
             $this->writeln('Cache directory is missing, no cache to be cleaned.');
23 24
 
24 25
             return self::FAILURE;
25 26
         }
26 27
 
27
-        if ($this->isVerbose()) {
28
+        if ($this->isVerbose())
29
+        {
28 30
             $this->writeln('<info>Cleaning application cache:</info>');
29 31
         }
30 32
 
31
-        foreach ($files->getFiles($cacheDirectory) as $filename) {
32
-            try {
33
+        foreach ($files->getFiles($cacheDirectory) as $filename)
34
+        {
35
+            try
36
+            {
33 37
                 $files->delete($filename);
34
-            } catch (\Throwable $e) {
38
+            }
39
+            catch (\Throwable $e)
40
+            {
35 41
                 // @codeCoverageIgnoreStart
36 42
                 $this->sprintf(
37 43
                     "<fg=red>[errored]</fg=red> `%s`: <fg=red>%s</fg=red>\n",
@@ -43,7 +49,8 @@  discard block
 block discarded – undo
43 49
                 // @codeCoverageIgnoreEnd
44 50
             }
45 51
 
46
-            if ($this->isVerbose()) {
52
+            if ($this->isVerbose())
53
+            {
47 54
                 $this->sprintf(
48 55
                     "<fg=green>[deleted]</fg=green> `%s`\n",
49 56
                     $files->relativePath($filename, $cacheDirectory),
Please login to merge, or discard this patch.
src/Framework/Debug/StateCollector/EnvironmentCollector.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
15 15
     public function __construct(
16 16
         private readonly ContainerInterface $container,
17 17
         private readonly EnvironmentInterface $env,
18
-    ) {}
18
+    ){}
19 19
 
20 20
     public function populate(StateInterface $state): void
21 21
     {
22 22
         $state->setTag('php', \phpversion());
23 23
 
24
-        if ($this->container->has(DispatcherInterface::class)) {
24
+        if ($this->container->has(DispatcherInterface::class)){
25 25
             $state->setTag('dispatcher', $this->container->get(DispatcherInterface::class)::class);
26 26
         }
27 27
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,13 +15,15 @@
 block discarded – undo
15 15
     public function __construct(
16 16
         private readonly ContainerInterface $container,
17 17
         private readonly EnvironmentInterface $env,
18
-    ) {}
18
+    ) {
19
+}
19 20
 
20 21
     public function populate(StateInterface $state): void
21 22
     {
22 23
         $state->setTag('php', \phpversion());
23 24
 
24
-        if ($this->container->has(DispatcherInterface::class)) {
25
+        if ($this->container->has(DispatcherInterface::class))
26
+        {
25 27
             $state->setTag('dispatcher', $this->container->get(DispatcherInterface::class)::class);
26 28
         }
27 29
 
Please login to merge, or discard this patch.
src/Framework/Security/GuardScope.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         private readonly PermissionsInterface $permissions,
23 23
         #[Proxy] private readonly ContainerInterface $container,
24 24
         private array $roles = [],
25
-    ) {}
25
+    ){}
26 26
 
27 27
     /**
28 28
      * @throws ScopeException
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     public function allows(string $permission, array $context = []): bool
31 31
     {
32 32
         $allows = false;
33
-        foreach ($this->getRoles() as $role) {
34
-            if (!$this->permissions->hasRole($role)) {
33
+        foreach ($this->getRoles() as $role){
34
+            if (!$this->permissions->hasRole($role)){
35 35
                 continue;
36 36
             }
37 37
 
@@ -71,13 +71,13 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function getActor(): ActorInterface
73 73
     {
74
-        if (!\is_null($this->actor)) {
74
+        if (!\is_null($this->actor)){
75 75
             return $this->actor;
76 76
         }
77 77
 
78
-        try {
78
+        try{
79 79
             return $this->container->get(ActorInterface::class);
80
-        } catch (NotFoundExceptionInterface $e) {
80
+        }catch (NotFoundExceptionInterface $e){
81 81
             throw new ScopeException('Unable to resolve Actor from the scope', $e->getCode(), $e);
82 82
         }
83 83
     }
Please login to merge, or discard this patch.
Braces   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,8 @@  discard block
 block discarded – undo
22 22
         private readonly PermissionsInterface $permissions,
23 23
         #[Proxy] private readonly ContainerInterface $container,
24 24
         private array $roles = [],
25
-    ) {}
25
+    ) {
26
+}
26 27
 
27 28
     /**
28 29
      * @throws ScopeException
@@ -30,8 +31,10 @@  discard block
 block discarded – undo
30 31
     public function allows(string $permission, array $context = []): bool
31 32
     {
32 33
         $allows = false;
33
-        foreach ($this->getRoles() as $role) {
34
-            if (!$this->permissions->hasRole($role)) {
34
+        foreach ($this->getRoles() as $role)
35
+        {
36
+            if (!$this->permissions->hasRole($role))
37
+            {
35 38
                 continue;
36 39
             }
37 40
 
@@ -71,13 +74,17 @@  discard block
 block discarded – undo
71 74
      */
72 75
     public function getActor(): ActorInterface
73 76
     {
74
-        if (!\is_null($this->actor)) {
77
+        if (!\is_null($this->actor))
78
+        {
75 79
             return $this->actor;
76 80
         }
77 81
 
78
-        try {
82
+        try
83
+        {
79 84
             return $this->container->get(ActorInterface::class);
80
-        } catch (NotFoundExceptionInterface $e) {
85
+        }
86
+        catch (NotFoundExceptionInterface $e)
87
+        {
81 88
             throw new ScopeException('Unable to resolve Actor from the scope', $e->getCode(), $e);
82 89
         }
83 90
     }
Please login to merge, or discard this patch.
src/Framework/Translator/MemoryCache.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function __construct(
13 13
         private readonly MemoryInterface $memory,
14
-    ) {}
14
+    ){}
15 15
 
16 16
     public function setLocales(?array $locales): void
17 17
     {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@
 block discarded – undo
11 11
 {
12 12
     public function __construct(
13 13
         private readonly MemoryInterface $memory,
14
-    ) {}
14
+    ) {
15
+}
15 16
 
16 17
     public function setLocales(?array $locales): void
17 18
     {
Please login to merge, or discard this patch.
src/Framework/Translator/Views/LocaleProcessor.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function __construct(
21 21
         private readonly TranslatorInterface $translator,
22
-    ) {}
22
+    ){}
23 23
 
24 24
     public function process(ViewSource $source, ContextInterface $context): ViewSource
25 25
     {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,8 @@
 block discarded – undo
19 19
 
20 20
     public function __construct(
21 21
         private readonly TranslatorInterface $translator,
22
-    ) {}
22
+    ) {
23
+}
23 24
 
24 25
     public function process(ViewSource $source, ContextInterface $context): ViewSource
25 26
     {
Please login to merge, or discard this patch.
src/Framework/Translator/Views/LocaleDependency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     public function __construct(
20 20
         private readonly TranslatorInterface $translator,
21
-    ) {
21
+    ){
22 22
         $this->locales = $translator->getCatalogueManager()->getLocales();
23 23
     }
24 24
 
Please login to merge, or discard this patch.