@@ -11,7 +11,7 @@ |
||
11 | 11 | /** |
12 | 12 | * @param string $fqcn |
13 | 13 | * @param MockingStrategyInterface $mockingStrategy |
14 | - * @return ProxyInterface |
|
14 | + * @return ProxyGenerator |
|
15 | 15 | */ |
16 | 16 | public static function get(string $fqcn, MockingStrategyInterface $mockingStrategy) |
17 | 17 | { |
@@ -16,6 +16,9 @@ |
||
16 | 16 | $this->mockingStrategy = $mockingStrategy; |
17 | 17 | } |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $fqcn |
|
21 | + */ |
|
19 | 22 | final public function generate($fqcn): ProxyInterface |
20 | 23 | { |
21 | 24 | $object = $this->mockingStrategy->build($fqcn); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Generator; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Generator; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Generator; |
5 | 5 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $methods = $reflection->getMethods(); |
25 | 25 | $methodsArray = []; |
26 | 26 | foreach ($methods as $method) { |
27 | - if (!in_array($method->getName(), self::UNSAFE_METHODS, true)) { |
|
27 | + if ( ! in_array($method->getName(), self::UNSAFE_METHODS, true)) { |
|
28 | 28 | $methodsArray[] = ProxyMethodGenerator::generateMethodString($method); |
29 | 29 | } |
30 | 30 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Generator; |
5 | 5 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $static = $method->isStatic() ? 'static' : ''; |
19 | 19 | $originalReturnType = $method->getReturnType(); |
20 | 20 | |
21 | - $returnType = !$originalReturnType ? '' : ProxyReturnGenerator::generateMethodReturnType($originalReturnType, $method); |
|
21 | + $returnType = ! $originalReturnType ? '' : ProxyReturnGenerator::generateMethodReturnType($originalReturnType, $method); |
|
22 | 22 | |
23 | 23 | $parameters = $method->getParameters(); |
24 | 24 | $arguments = []; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Generator; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Generator; |
5 | 5 |