Completed
Push — master ( 51895c...7790b0 )
by Alberto
15s
created
src/Moka/Traits/MokaPHPUnitTrait.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\Traits;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Traits/MokaMockeryTrait.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\Traits;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Traits/MokaProphecyTrait.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\Traits;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Strategy/ProphecyMockingStrategy.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\Strategy;
5 5
 
Please login to merge, or discard this patch.
src/Moka/Strategy/AbstractMockingStrategy.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\Strategy;
5 5
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $this->verifyMockType();
101 101
 
102
-        if (!is_a($mock, $this->mockType)) {
102
+        if ( ! is_a($mock, $this->mockType)) {
103 103
             throw new InvalidArgumentException(
104 104
                 sprintf(
105 105
                     'Mock must be of type "%s", "%s" given',
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     private function verifyMockType()
138 138
     {
139
-        if (!$this->mockType) {
139
+        if ( ! $this->mockType) {
140 140
             throw new NotImplementedException('Mock type was not defined');
141 141
         }
142 142
     }
Please login to merge, or discard this patch.
src/Moka/Moka.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;
5 5
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public static function brew(string $fqcn, string $alias = null, MockingStrategyInterface $mockingStrategy = null): Proxy
43 43
     {
44
-        if (!$mockingStrategy instanceof MockingStrategyInterface) {
44
+        if ( ! $mockingStrategy instanceof MockingStrategyInterface) {
45 45
             $defaultMockingStrategy = static::MOCKING_STRATEGY_DEFAULT;
46 46
             $mockingStrategy = new $defaultMockingStrategy();
47 47
         }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public static function __callStatic($name, $arguments)
60 60
     {
61
-        if (!isset(static::MOCKING_STRATEGIES[$name])) {
61
+        if ( ! isset(static::MOCKING_STRATEGIES[$name])) {
62 62
             throw new NotImplementedException(
63 63
                 sprintf(
64 64
                     'Mocking strategy "%s" does not exist',
Please login to merge, or discard this patch.