Skip to content

Commit 67ddd41

Browse files
committed
Fix code style.
1 parent 2a7941c commit 67ddd41

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

src/Exporter/Ascii.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ public function export(NodeInterface $node): string
5757
*/
5858
private function doExportAsArray(NodeInterface $node): array
5959
{
60-
if (!($node instanceof ValueNodeInterface))
61-
{
60+
if (!($node instanceof ValueNodeInterface)) {
6261
throw new \InvalidArgumentException('Must implements ValueNodeInterface');
6362
}
6463

src/Exporter/Graph.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace drupol\phptree\Exporter;
66

77
use drupol\phptree\Node\NodeInterface;
8-
use drupol\phptree\Node\ValueNodeInterface;
98
use drupol\phptree\Traverser\BreadthFirst;
109
use drupol\phptree\Traverser\TraverserInterface;
1110
use Fhaculty\Graph\Graph as OriginalGraph;
@@ -98,8 +97,8 @@ protected function createVertex(NodeInterface $node): Vertex
9897
if (false === $this->getGraph()->hasVertex($vertexId)) {
9998
$vertex = $this->getGraph()->createVertex($vertexId);
10099

101-
$label = NULL;
102-
if (method_exists($node, 'getValue')) {
100+
$label = null;
101+
if (\method_exists($node, 'getValue')) {
103102
$label = $node->getValue();
104103
}
105104

src/Exporter/SimpleArray.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class SimpleArray implements ExporterInterface
1717
*/
1818
public function export(NodeInterface $node)
1919
{
20-
if (!($node instanceof ValueNodeInterface))
21-
{
20+
if (!($node instanceof ValueNodeInterface)) {
2221
throw new \InvalidArgumentException('Must implements ValueNodeInterface');
2322
}
2423

src/Exporter/Text.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class Text implements ExporterInterface
1717
*/
1818
public function export(NodeInterface $node): string
1919
{
20-
if (!($node instanceof ValueNodeInterface))
21-
{
20+
if (!($node instanceof ValueNodeInterface)) {
2221
throw new \InvalidArgumentException('Must implements ValueNodeInterface');
2322
}
2423

0 commit comments

Comments
 (0)