@@ -20,6 +20,9 @@ |
||
| 20 | 20 | function errorMessages(): array; |
| 21 | 21 | |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @return string |
|
| 25 | + */ |
|
| 23 | 26 | function __toString(); |
| 24 | 27 | |
| 25 | 28 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | |
| 75 | 75 | private function getValue(string $path): string |
| 76 | 76 | { |
| 77 | - $val = $this->getXml()->xpath($path . '/text()'); |
|
| 77 | + $val = $this->getXml()->xpath($path.'/text()'); |
|
| 78 | 78 | if ($val === false || !isset($val[0])) { |
| 79 | 79 | return ''; |
| 80 | 80 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | if (array_key_exists($name, $this->properties)) { |
| 32 | 32 | return $this->properties[$name]; |
| 33 | 33 | } |
| 34 | - throw new Exceptions\Runtime('Property does not exists. ' . $name); |
|
| 34 | + throw new Exceptions\Runtime('Property does not exists. '.$name); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function bindProperty(string $name, string $type, $value): void |
| 48 | 48 | { |
| 49 | - $method = 'set' . ucfirst($name); |
|
| 49 | + $method = 'set'.ucfirst($name); |
|
| 50 | 50 | if (method_exists($this, $method)) { |
| 51 | 51 | $value = $this->{$method}($value); |
| 52 | 52 | } elseif ($value !== null) { |