@@ -48,7 +48,9 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function toString($dataType, int $options = null):string |
| 50 | 50 | { |
| 51 | - if (empty($dataType)) throw new \Exception(self::class.": No content to convert to Yaml"); |
|
| 51 | + if (empty($dataType)) { |
|
| 52 | + throw new \Exception(self::class.": No content to convert to Yaml"); |
|
| 53 | + } |
|
| 52 | 54 | if (is_scalar($dataType)) { |
| 53 | 55 | return "--- ".$this->handler->dumpScalar($dataType). self::LINEFEED ; |
| 54 | 56 | } |