Skip to content

Commit d33be32

Browse files
committed
Fix Coding standard by current Nette rules
1 parent 1fd45a0 commit d33be32

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Convertor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
final class Convertor
99
{
10-
1110
/**
1211
* Convert xml string to php array - useful to get a serializable value.
1312
*
@@ -16,7 +15,7 @@ final class Convertor
1615
public static function covertToArray(string $xml): array
1716
{
1817
assert(\class_exists('\DOMDocument'));
19-
$doc = new \DOMDocument();
18+
$doc = new \DOMDocument;
2019
$doc->loadXML(str_replace(["\r\n", "\r"], "\n", trim($xml)));
2120
$root = $doc->documentElement;
2221
$output = (array) Helper::domNodeToArray($root);

src/Helper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77

88
final class Helper
99
{
10-
1110
/** @throws \Error */
1211
public function __construct()
1312
{
14-
throw new \Error('Class ' . get_class($this) . ' is static and cannot be instantiated.');
13+
throw new \Error('Class ' . static::class . ' is static and cannot be instantiated.');
1514
}
1615

1716

0 commit comments

Comments
 (0)