Completed
Pull Request — master (#44)
by Angelo
09:03 queued 06:01
created
src/Generator/Template/ParameterTemplate.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\Template;
5 5
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     protected static function doGenerate(\ReflectionParameter $parameter): string
28 28
     {
29 29
         try {
30
-            $defaultValue = !$parameter->allowsNull()
30
+            $defaultValue = ! $parameter->allowsNull()
31 31
                 ? var_export($parameter->getDefaultValue(), true)
32 32
                 : 'null';
33 33
 
Please login to merge, or discard this patch.
src/Generator/ProxyGenerator.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/Plugin/Phake/PhakeMockingStrategy.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\Plugin\Phake;
5 5
 
Please login to merge, or discard this patch.
src/Plugin/Phake/Matcher/FirstStubMatcher.php 1 patch
Spacing   +3 added lines, -3 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\Plugin\Phake\Matcher;
5 5
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $this->methodName = $methodName;
40 40
 
41 41
         $mockHash = spl_object_hash($mock);
42
-        if (!isset(self::$stubsPerMock[$mockHash])) {
42
+        if ( ! isset(self::$stubsPerMock[$mockHash])) {
43 43
             self::$stubsPerMock[$mockHash] = [];
44 44
         }
45 45
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function doArgumentsMatch(array &$arguments)
60 60
     {
61
-        if (!$this->isFirstStub) {
61
+        if ( ! $this->isFirstStub) {
62 62
             throw new MethodMatcherException(
63 63
                 sprintf(
64 64
                     'Cannot override definition for method "%s()"',
Please login to merge, or discard this patch.
src/Plugin/Phake/moka.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\Plugin\Phake;
5 5
 
Please login to merge, or discard this patch.
src/Plugin/Phake/PhakePlugin.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\Plugin\Phake;
5 5
 
Please login to merge, or discard this patch.
src/Plugin/PluginHelper.php 1 patch
Spacing   +3 added lines, -3 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\Plugin;
5 5
 
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
         $pluginFQCN = self::generateFQCN($pluginName);
28 28
 
29 29
         if (
30
-            !class_exists($pluginFQCN) ||
31
-            !in_array(PluginInterface::class, class_implements($pluginFQCN), true)
30
+            ! class_exists($pluginFQCN) ||
31
+            ! in_array(PluginInterface::class, class_implements($pluginFQCN), true)
32 32
         ) {
33 33
             throw new NotImplementedException(
34 34
                 sprintf(
Please login to merge, or discard this patch.
src/Plugin/Prophecy/Token/AbstractPriorityToken.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\Plugin\Prophecy\Token;
5 5
 
Please login to merge, or discard this patch.
src/Plugin/Prophecy/Token/MaxPriorityToken.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\Plugin\Prophecy\Token;
5 5
 
Please login to merge, or discard this patch.