Completed
Pull Request — master (#37)
by Angelo
02:51
created
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.
src/Moka/Factory/ProxyGeneratorFactory.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\Factory;
5 5
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public static function get(MockingStrategyInterface $mockingStrategy): ProxyGenerator
21 21
     {
22 22
         $key = self::key($mockingStrategy);
23
-        if (!array_key_exists($key, self::$proxyGenerators) || !self::$proxyGenerators[$key] instanceof ProxyGenerator) {
23
+        if ( ! array_key_exists($key, self::$proxyGenerators) || ! self::$proxyGenerators[$key] instanceof ProxyGenerator) {
24 24
             self::$proxyGenerators[$key] = static::build($mockingStrategy);
25 25
         }
26 26
 
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
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $methodsArray = [];
30 30
 
31 31
         foreach ($methods as $method) {
32
-            if (!$method->isFinal() && !in_array($method->getName(), self::UNSAFE_METHODS, true)) {
32
+            if ( ! $method->isFinal() && ! in_array($method->getName(), self::UNSAFE_METHODS, true)) {
33 33
                 $methodsArray[] = ProxyMethodGenerator::generateMethodString($method);
34 34
             }
35 35
 
Please login to merge, or discard this patch.