@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Traits; |
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\Traits; |
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\Traits; |
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\Strategy; |
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\Strategy; |
5 | 5 | |
@@ -99,7 +99,7 @@ discard block |
||
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 |
||
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 | } |
@@ -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; |
5 | 5 | |
@@ -41,7 +41,7 @@ discard block |
||
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 |
||
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', |