File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 7
7
use App \Value \Url ;
8
8
use App \Value \UserDoc ;
9
9
use SimpleXMLElement ;
10
- use Stringy \Stringy as s ;
10
+ use function Stringy \create as s ;
11
11
12
12
class UserDocParser
13
13
{
@@ -25,12 +25,12 @@ public function getUserDoc(string $filePath): UserDoc
25
25
26
26
private function getRuleCode (SimpleXMLElement $ doc ): string
27
27
{
28
- return (string )s:: create ((string )$ doc ->rule_code )->trim ();
28
+ return (string )s ((string )$ doc ->rule_code )->trim ();
29
29
}
30
30
31
31
private function getDescription (SimpleXMLElement $ doc ): string
32
32
{
33
- return (string )s:: create ((string )$ doc ->standard )->trim ();
33
+ return (string )s ((string )$ doc ->standard )->trim ();
34
34
}
35
35
36
36
/**
@@ -41,8 +41,8 @@ private function getDiffs(SimpleXMLElement $doc): array
41
41
$ comparisons = [];
42
42
foreach ($ doc ->code_comparison as $ comparison ) {
43
43
$ comparisons [] = new Diff (
44
- (string )s:: create ((string )$ comparison ->code [1 ])->trim (),
45
- (string )s:: create ((string )$ comparison ->code [0 ])->trim (),
44
+ (string )s ((string )$ comparison ->code [1 ])->trim (),
45
+ (string )s ((string )$ comparison ->code [0 ])->trim (),
46
46
);
47
47
}
48
48
@@ -61,7 +61,7 @@ private function getLinks(SimpleXMLElement $doc): array
61
61
$ links = [];
62
62
foreach ($ doc ->links [0 ]->link as $ link ) {
63
63
$ links [] = new Url (
64
- (string )s:: create ((string )$ link )->trim ()
64
+ (string )s ((string )$ link )->trim ()
65
65
);
66
66
}
67
67
You can’t perform that action at this time.
0 commit comments