@@ -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\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 | |
@@ -33,11 +33,11 @@ discard block |
||
33 | 33 | */ |
34 | 34 | final protected function checkMockType($mock) |
35 | 35 | { |
36 | - if (!$this->mockType) { |
|
36 | + if ( ! $this->mockType) { |
|
37 | 37 | throw new NotImplementedException(); |
38 | 38 | } |
39 | 39 | |
40 | - if (!is_a($mock, $this->mockType)) { |
|
40 | + if ( ! is_a($mock, $this->mockType)) { |
|
41 | 41 | throw new InvalidArgumentException( |
42 | 42 | sprintf( |
43 | 43 | 'Mock must be of type %s, %s given', |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Strategy\Prophecy; |
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\Stub; |
5 | 5 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function add($elem) |
22 | 22 | { |
23 | - if (!$elem instanceof Stub) { |
|
23 | + if ( ! $elem instanceof Stub) { |
|
24 | 24 | throw new InvalidArgumentException( |
25 | 25 | sprintf( |
26 | 26 | 'Element must be of type %s, %s given', |
@@ -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\Proxy; |
5 | 5 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | public function serve() |
76 | 76 | { |
77 | 77 | try { |
78 | - if (!$this->mock) { |
|
78 | + if ( ! $this->mock) { |
|
79 | 79 | $this->buildMock(); |
80 | 80 | } |
81 | 81 |
@@ -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(new $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\Strategy\Prophecy; |
5 | 5 |