@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | public function isBetween(float $lhs, float $rhs): NumericEnsurance |
| 174 | 174 | { |
| 175 | 175 | $this->enforce($lhs <= $this->number && $rhs >= $this->number) |
| 176 | - ->orThrow('"%s" is not between "%s" and "%s"', $this->number, $lhs, $rhs); |
|
| 176 | + ->orThrow('"%s" is not between "%s" and "%s"', $this->number, $lhs, $rhs); |
|
| 177 | 177 | |
| 178 | 178 | return $this; |
| 179 | 179 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | public function isNotBetween(float $lhs, float $rhs): NumericEnsurance |
| 188 | 188 | { |
| 189 | 189 | $this->enforce($lhs > $this->number || $rhs < $this->number) |
| 190 | - ->orThrow('"%s" is between "%s" and "%s"', $this->number, $lhs, $rhs); |
|
| 190 | + ->orThrow('"%s" is between "%s" and "%s"', $this->number, $lhs, $rhs); |
|
| 191 | 191 | |
| 192 | 192 | return $this; |
| 193 | 193 | } |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | public function setExceptionMessage(string $message, ...$args) |
| 97 | 97 | { |
| 98 | 98 | if (!empty($args)) { |
| 99 | - $args = array_map(function ($arg) { |
|
| 99 | + $args = array_map(function($arg) { |
|
| 100 | 100 | return !is_string($arg) ? var_export($arg, true) : $arg; |
| 101 | 101 | }, $args); |
| 102 | 102 | $message = sprintf($message, ...$args); |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | public function implements(string $interface): ClassEnsurance |
| 112 | 112 | { |
| 113 | 113 | $this->enforce(array_key_exists($interface, class_implements($this->class, true))) |
| 114 | - ->orThrow('"%s" does not implements interface "%s"', $this->class, $interface); |
|
| 114 | + ->orThrow('"%s" does not implements interface "%s"', $this->class, $interface); |
|
| 115 | 115 | |
| 116 | 116 | return $this; |
| 117 | 117 | } |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | public function implementsNot(string $interface): ClassEnsurance |
| 125 | 125 | { |
| 126 | 126 | $this->enforce(!array_key_exists($interface, class_implements($this->class, true))) |
| 127 | - ->orThrow('"%s" does implements interface "%s"', $this->class, $interface); |
|
| 127 | + ->orThrow('"%s" does implements interface "%s"', $this->class, $interface); |
|
| 128 | 128 | |
| 129 | 129 | return $this; |
| 130 | 130 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | public function isParentOf(string $class): ClassEnsurance |
| 138 | 138 | { |
| 139 | 139 | $this->enforce(array_key_exists($this->class, class_parents($class, true))) |
| 140 | - ->orThrow('"%s" is not a parent of "%s"', $this->class, $class); |
|
| 140 | + ->orThrow('"%s" is not a parent of "%s"', $this->class, $class); |
|
| 141 | 141 | |
| 142 | 142 | return $this; |
| 143 | 143 | } |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | public function isNotParentOf(string $class): ClassEnsurance |
| 151 | 151 | { |
| 152 | 152 | $this->enforce(!array_key_exists($this->class, class_parents($class, true))) |
| 153 | - ->orThrow('"%s" is a parent of "%s"', $this->class, $class); |
|
| 153 | + ->orThrow('"%s" is a parent of "%s"', $this->class, $class); |
|
| 154 | 154 | |
| 155 | 155 | return $this; |
| 156 | 156 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | public function uses(string $trait): ClassEnsurance |
| 164 | 164 | { |
| 165 | 165 | $this->enforce(array_key_exists($trait, class_uses($this->class, true))) |
| 166 | - ->orThrow('"%s" does not use trait "%s"', $this->class, $trait); |
|
| 166 | + ->orThrow('"%s" does not use trait "%s"', $this->class, $trait); |
|
| 167 | 167 | |
| 168 | 168 | return $this; |
| 169 | 169 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | public function hasProperty(string $property): ClassEnsurance |
| 177 | 177 | { |
| 178 | 178 | $this->enforce($this->reflection->hasProperty($property)) |
| 179 | - ->orThrow('"%s" does not have a property "%s"', $this->class, $property); |
|
| 179 | + ->orThrow('"%s" does not have a property "%s"', $this->class, $property); |
|
| 180 | 180 | |
| 181 | 181 | return $this; |
| 182 | 182 | } |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | public function hasMethod(string $method): ClassEnsurance |
| 190 | 190 | { |
| 191 | 191 | $this->enforce($this->reflection->hasMethod($method)) |
| 192 | - ->orThrow('"%s" does not have a method "%s"', $this->class, $method); |
|
| 192 | + ->orThrow('"%s" does not have a method "%s"', $this->class, $method); |
|
| 193 | 193 | |
| 194 | 194 | return $this; |
| 195 | 195 | } |