Skip to content

Commit 88a0fad

Browse files
author
Wout Gevaert
committed
Fix codestyle
1 parent 434cc56 commit 88a0fad

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Traits/ErrorTrait.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
use function is_resource;
3636
use function is_string;
3737
use function key;
38-
use function preg_match;
3938
use function strpos;
4039
use TypeError;
4140

src/Traits/EscapeTrait.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
namespace WikibaseSolutions\CypherDSL\Traits;
2323

24-
use InvalidArgumentException;
24+
use function preg_match;
25+
use function sprintf;
26+
use function str_replace;
2527

2628
/**
2729
* Trait for encoding certain structures that are used in multiple clauses in a
@@ -53,10 +55,11 @@ public static function escape(string $name): string
5355
* Escapes the given $name to be used directly in a CYPHER query.
5456
* Note: according to https://github.com/neo4j/neo4j/issues/12901 backslashes might give problems in some Neo4j versions.
5557
*/
56-
public static function escapeRaw($name) {
58+
public static function escapeRaw($name)
59+
{
5760

5861
// Escape backticks that are included in $name by doubling them.
59-
$name = str_replace('`','``',$name);
62+
$name = str_replace('`', '``', $name);
6063

6164
return sprintf("`%s`", $name);
6265
}

tests/Unit/Patterns/NodeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
namespace WikibaseSolutions\CypherDSL\Tests\Unit\Patterns;
2323

24-
use InvalidArgumentException;
2524
use PHPUnit\Framework\TestCase;
2625
use WikibaseSolutions\CypherDSL\ExpressionList;
2726
use WikibaseSolutions\CypherDSL\Literals\Decimal;

tests/Unit/Traits/EscapeTraitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits;
2323

24-
use InvalidArgumentException;
2524
use PHPUnit\Framework\MockObject\MockObject;
2625
use PHPUnit\Framework\TestCase;
2726
use WikibaseSolutions\CypherDSL\Traits\EscapeTrait;

0 commit comments

Comments
 (0)