@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Moka\Plugin; |
| 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\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\Proxy; |
| 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\Stub; |
| 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\Stub; |
| 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\Stub; |
| 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 StubInterface) { |
|
| 23 | + if ( ! $elem instanceof StubInterface) { |
|
| 24 | 24 | throw new InvalidArgumentException( |
| 25 | 25 | sprintf( |
| 26 | 26 | 'Element must be an instance of "%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\Stub; |
| 5 | 5 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public static function isMethodName(string $name): bool |
| 93 | 93 | { |
| 94 | - return !static::isPropertyName($name); |
|
| 94 | + return ! static::isPropertyName($name); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | ? array_intersect(array_keys(static::PREFIXES), $prefixes) |
| 130 | 130 | : array_keys(static::PREFIXES); |
| 131 | 131 | |
| 132 | - return array_reduce($prefixes, function (string $name, string $prefix) { |
|
| 132 | + return array_reduce($prefixes, function(string $name, string $prefix) { |
|
| 133 | 133 | return preg_replace( |
| 134 | 134 | sprintf('/^%s/', static::PREFIXES[$prefix]), |
| 135 | 135 | '', |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | ? static::$methodName($name) |
| 153 | 153 | : preg_match(static::REGEX_NAME, $name); |
| 154 | 154 | |
| 155 | - if (!$nameIsValid) { |
|
| 155 | + if ( ! $nameIsValid) { |
|
| 156 | 156 | $message = isset(static::PREFIXES[$type]) |
| 157 | 157 | ? sprintf( |
| 158 | 158 | 'Name must be prefixed by "%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\Stub; |
| 5 | 5 | |