We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27891e4 commit f42b811Copy full SHA for f42b811
src/ReferenceClasses/Geometry.php
@@ -102,18 +102,11 @@ public function __construct(
102
$this->value = $geometry;
103
}
104
105
- public function __toString(): string
106
- {
107
- return (string) $this->value;
108
- }
109
-
110
public function validate(): string
111
{
112
$errors = [];
113
114
- if (!\preg_match(static::REGEX_VALIDATE, $this->value, $matches)) {
115
- $errors[] = 'Invalid regexp.';
116
+ \preg_match(static::REGEX_VALIDATE, $this->value, $matches);
117
118
$w = isset($matches['w']) && '' !== $matches['w'] ? $matches['w'] : null;
119
$h = isset($matches['h']) && '' !== $matches['h'] ? $matches['h'] : null;
0 commit comments