@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | $namespace = $phpFile->getNamespaceString(); |
| 3 | -$namespace = sprintf('namespace Test%s;', ($namespace === null? '' : '\\' . $namespace)); |
|
| 3 | +$namespace = sprintf('namespace Test%s;', ($namespace === null ? '' : '\\' . $namespace)); |
|
| 4 | 4 | ?> |
| 5 | 5 | <?= $namespace ?> |
| 6 | 6 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function hasMethod(string $name): bool |
| 48 | 48 | { |
| 49 | - return $this->functions->exists(function (FunctionModelInterface $function) use ($name) { |
|
| 49 | + return $this->functions->exists(function(FunctionModelInterface $function) use ($name) { |
|
| 50 | 50 | return $function->getName() === $name; |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function countNotAbstractFunctions(): int |
| 58 | 58 | { |
| 59 | - return $this->functions->filter(function (FunctionModelInterface $function) { |
|
| 60 | - return ! $function->isAbstract(); |
|
| 59 | + return $this->functions->filter(function(FunctionModelInterface $function) { |
|
| 60 | + return !$function->isAbstract(); |
|
| 61 | 61 | })->count(); |
| 62 | 62 | } |
| 63 | 63 | } |