@@ -42,16 +42,16 @@ |
||
42 | 42 | $errstr = ''; |
43 | 43 | $errors = libxml_get_errors(); |
44 | 44 | foreach ($errors as $error) { |
45 | - $errstr .= $error->message.'\n'; |
|
45 | + $errstr .= $error->message . '\n'; |
|
46 | 46 | } |
47 | - throw new InvalidRequestException('Request document failed validation: '.$errstr); |
|
47 | + throw new InvalidRequestException('Request document failed validation: ' . $errstr); |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
51 | 51 | public function validateByXsd(\DOMDocument $document) { |
52 | 52 | libxml_use_internal_errors(true); |
53 | 53 | $className = get_class($this); |
54 | - $path = __DIR__.'../../../resources/xsd/'.$className.'.xsd'; |
|
54 | + $path = __DIR__ . '../../../resources/xsd/' . $className . '.xsd'; |
|
55 | 55 | |
56 | 56 | return $document->schemaValidate($path); |
57 | 57 | } |