@@ -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\Plugin\Phake\Matcher; |
| 5 | 5 | |
@@ -39,7 +39,7 @@ discard block |
||
| 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 |
||
| 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()"', |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Moka\Plugin\Phake; |
| 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\Tests; |
| 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\Tests; |
| 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\Builder; |
| 5 | 5 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | return $this->buildProxy($fqcnOrAlias); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - if (!$this->container->has($alias)) { |
|
| 65 | + if ( ! $this->container->has($alias)) { |
|
| 66 | 66 | $this->container->set($alias, $this->buildProxy($fqcnOrAlias)); |
| 67 | 67 | } |
| 68 | 68 | |
@@ -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 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function get($id): ProxyInterface |
| 35 | 35 | { |
| 36 | - if (!$this->has($id)) { |
|
| 36 | + if ( ! $this->has($id)) { |
|
| 37 | 37 | throw new InvalidIdentifierException( |
| 38 | 38 | sprintf( |
| 39 | 39 | 'Cannot find mock object with identifier "%s"', |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Moka\Generator; |
| 5 | 5 | |