Passed
Pull Request — master (#802)
by butschster
17:09
created
src/Framework/Filter/InputScope.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 {
16 16
     public function __construct(
17 17
         private InputManager $input
18
-    ) {
18
+    ){
19 19
     }
20 20
 
21 21
     public function withPrefix(string $prefix, bool $add = true): InputInterface
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function getValue(string $source, mixed $name = null): mixed
30 30
     {
31
-        if ($source !== 'input' && !$this->input->hasBag($source)) {
31
+        if ($source !== 'input' && !$this->input->hasBag($source)){
32 32
             throw new InputException(\sprintf('Undefined input source %s', $source));
33 33
         }
34 34
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function hasValue(string $source, string $name): bool
39 39
     {
40
-        if (!$this->input->hasBag($source)) {
40
+        if (!$this->input->hasBag($source)){
41 41
             return false;
42 42
         }
43 43
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function getValue(string $source, mixed $name = null): mixed
30 30
     {
31
-        if ($source !== 'input' && !$this->input->hasBag($source)) {
31
+        if ($source !== 'input' && !$this->input->hasBag($source))
32
+        {
32 33
             throw new InputException(\sprintf('Undefined input source %s', $source));
33 34
         }
34 35
 
@@ -37,7 +38,8 @@  discard block
 block discarded – undo
37 38
 
38 39
     public function hasValue(string $source, string $name): bool
39 40
     {
40
-        if (!$this->input->hasBag($source)) {
41
+        if (!$this->input->hasBag($source))
42
+        {
41 43
             return false;
42 44
         }
43 45
 
Please login to merge, or discard this patch.
src/Stempler/src/Transform/Import/Bundle.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,25 +23,25 @@
 block discarded – undo
23 23
         private string $path,
24 24
         private ?string $prefix = null,
25 25
         Context $context = null
26
-    ) {
26
+    ){
27 27
         $this->context = $context;
28 28
     }
29 29
 
30 30
     public function resolve(Builder $builder, string $name): ?Template
31 31
     {
32
-        if ($this->template === null) {
32
+        if ($this->template === null){
33 33
             $this->template = $builder->load($this->path);
34 34
         }
35 35
 
36 36
         $path = $name;
37
-        if ($this->prefix !== null) {
37
+        if ($this->prefix !== null){
38 38
             $path = \substr($path, \strlen($this->prefix) + 1);
39 39
         }
40 40
 
41 41
         /** @var ImportInterface $import */
42
-        foreach ($this->template->getAttribute(ImportContext::class, []) as $import) {
42
+        foreach ($this->template->getAttribute(ImportContext::class, []) as $import){
43 43
             $tpl = $import->resolve($builder, $path);
44
-            if ($tpl !== null) {
44
+            if ($tpl !== null){
45 45
                 return $tpl;
46 46
             }
47 47
         }
Please login to merge, or discard this patch.