Passed
Push — master ( d09870...716959 )
by Luis
02:38
created
src/Templates/TemplateEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         try {
29 29
             return $this->twig->render($template, $values);
30
-        } catch (LoaderError | RuntimeError  | SyntaxError $e) {
30
+        } catch (LoaderError | RuntimeError | SyntaxError $e) {
31 31
             throw new TemplateFailure($e);
32 32
         }
33 33
     }
Please login to merge, or discard this patch.
src/Code/Definition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function countMethodsByVisibility(Visibility $modifier): int
42 42
     {
43
-        return \count(array_filter($this->functions, function (Method $method) use ($modifier) {
43
+        return \count(array_filter($this->functions, function(Method $method) use ($modifier) {
44 44
             return $method->modifier->equals($modifier);
45 45
         }));
46 46
     }
Please login to merge, or discard this patch.
src/Code/ClassDefinition.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function hasConstructor(): bool
36 36
     {
37
-        return \count(array_filter($this->functions, function (Method $function) {
37
+        return \count(array_filter($this->functions, function(Method $function) {
38 38
             return $function->isConstructor();
39 39
         })) === 1;
40 40
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             return [];
47 47
         }
48 48
 
49
-        $constructors = array_filter($this->functions, function (Method $method) {
49
+        $constructors = array_filter($this->functions, function(Method $method) {
50 50
             return $method->isConstructor();
51 51
         });
52 52
 
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function countAttributesByVisibility(Visibility $modifier): int
62 62
     {
63
-        return \count(array_filter($this->attributes, function (Attribute $attribute) use ($modifier) {
63
+        return \count(array_filter($this->attributes, function(Attribute $attribute) use ($modifier) {
64 64
             return $attribute->modifier->equals($modifier);
65 65
         }));
66 66
     }
67 67
 
68 68
     public function countTypedAttributesByVisibility(Visibility $modifier): int
69 69
     {
70
-        return \count(array_filter($this->attributes, function (Attribute $attribute) use ($modifier) {
70
+        return \count(array_filter($this->attributes, function(Attribute $attribute) use ($modifier) {
71 71
             return $attribute->isTyped() && $attribute->modifier->equals($modifier);
72 72
         }));
73 73
     }
Please login to merge, or discard this patch.