@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Exception; |
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\Exception; |
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\Exception; |
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\Exception; |
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\Exception; |
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\Factory; |
5 | 5 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | public static function get(MockingStrategyInterface $mockingStrategy): ProxyBuilder |
25 | 25 | { |
26 | 26 | $key = self::key($mockingStrategy); |
27 | - if (!array_key_exists($key, self::$mockBuilders) || !self::$mockBuilders[$key] instanceof ProxyBuilder) { |
|
27 | + if ( ! array_key_exists($key, self::$mockBuilders) || ! self::$mockBuilders[$key] instanceof ProxyBuilder) { |
|
28 | 28 | self::$mockBuilders[$key] = static::build($mockingStrategy); |
29 | 29 | } |
30 | 30 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Factory; |
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\Factory; |
5 | 5 | |
@@ -20,7 +20,7 @@ discard block |
||
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 |
@@ -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 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | final protected static function checkDependencies(string $dependencyClassName, string $dependencyPackageName) |
33 | 33 | { |
34 | - if (!class_exists($dependencyClassName)) { |
|
34 | + if ( ! class_exists($dependencyClassName)) { |
|
35 | 35 | throw new MissingDependencyException( |
36 | 36 | sprintf( |
37 | 37 | 'Class "%s" does not exist, please install package "%s"', |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | { |
147 | 147 | $this->verifyMockType(); |
148 | 148 | |
149 | - if (!is_a($mock, $this->mockType)) { |
|
149 | + if ( ! is_a($mock, $this->mockType)) { |
|
150 | 150 | throw new InvalidArgumentException( |
151 | 151 | sprintf( |
152 | 152 | 'Mock object must be an instance of "%s", "%s" given', |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | private function verifyMockType() |
166 | 166 | { |
167 | - if (!$this->mockType) { |
|
167 | + if ( ! $this->mockType) { |
|
168 | 168 | throw new NotImplementedException('Mock type was not defined'); |
169 | 169 | } |
170 | 170 | } |