@@ -3,10 +3,13 @@ |
||
3 | 3 | /** |
4 | 4 | <?php if ($function->isGlobal()): ?> |
5 | 5 | * Covers the global function "<?= $function->getName() ?>". |
6 | -<?php else: ?> |
|
6 | +<?php else { |
|
7 | + : ?> |
|
7 | 8 | * @covers \<?= $function->getParentNode()->getParentNode()->getFullNameFor($function->getParentNode()->getName()) ?>::<?= $function->getName() ?> |
8 | 9 | |
9 | -<?php endif; ?> |
|
10 | +<?php endif; |
|
11 | +} |
|
12 | +?> |
|
10 | 13 | */ |
11 | 14 | public function test<?= ucfirst($function->getName()) ?>() |
12 | 15 | { |
@@ -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 | } |