File tree 4 files changed +5
-9
lines changed
4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ public function export(NodeInterface $node): string
57
57
*/
58
58
private function doExportAsArray (NodeInterface $ node ): array
59
59
{
60
- if (!($ node instanceof ValueNodeInterface))
61
- {
60
+ if (!($ node instanceof ValueNodeInterface)) {
62
61
throw new \InvalidArgumentException ('Must implements ValueNodeInterface ' );
63
62
}
64
63
Original file line number Diff line number Diff line change 5
5
namespace drupol \phptree \Exporter ;
6
6
7
7
use drupol \phptree \Node \NodeInterface ;
8
- use drupol \phptree \Node \ValueNodeInterface ;
9
8
use drupol \phptree \Traverser \BreadthFirst ;
10
9
use drupol \phptree \Traverser \TraverserInterface ;
11
10
use Fhaculty \Graph \Graph as OriginalGraph ;
@@ -98,8 +97,8 @@ protected function createVertex(NodeInterface $node): Vertex
98
97
if (false === $ this ->getGraph ()->hasVertex ($ vertexId )) {
99
98
$ vertex = $ this ->getGraph ()->createVertex ($ vertexId );
100
99
101
- $ label = NULL ;
102
- if (method_exists ($ node , 'getValue ' )) {
100
+ $ label = null ;
101
+ if (\ method_exists ($ node , 'getValue ' )) {
103
102
$ label = $ node ->getValue ();
104
103
}
105
104
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ class SimpleArray implements ExporterInterface
17
17
*/
18
18
public function export (NodeInterface $ node )
19
19
{
20
- if (!($ node instanceof ValueNodeInterface))
21
- {
20
+ if (!($ node instanceof ValueNodeInterface)) {
22
21
throw new \InvalidArgumentException ('Must implements ValueNodeInterface ' );
23
22
}
24
23
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ class Text implements ExporterInterface
17
17
*/
18
18
public function export (NodeInterface $ node ): string
19
19
{
20
- if (!($ node instanceof ValueNodeInterface))
21
- {
20
+ if (!($ node instanceof ValueNodeInterface)) {
22
21
throw new \InvalidArgumentException ('Must implements ValueNodeInterface ' );
23
22
}
24
23
You can’t perform that action at this time.
0 commit comments