Completed
Pull Request — master (#37)
by Angelo
03:16 queued 01:16
created
src/Moka/Factory/ProxyGeneratorFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Moka/Generator/ProxyGenerator.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Generator/ProxyReturnGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Generator/ProxyClassGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Moka/Generator/ProxyMethodGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 = [];
Please login to merge, or discard this patch.
src/Moka/Generator/ProxyArgumentGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Generator/ProxyTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator;
5 5
 
Please login to merge, or discard this patch.