@@ -27,7 +27,7 @@ |
||
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 | } |
@@ -40,7 +40,7 @@ |
||
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 | } |
@@ -34,7 +34,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |