Skip to content

Commit 2542855

Browse files
committed
ran php cs fixer
1 parent c511ba1 commit 2542855

12 files changed

+36
-31
lines changed

src/Bolt/BoltConnectionPool.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ public function acquire(
4848
return TransactionHelper::connectionFromSocket($socket, $uri, $userAgent, $authenticate, $config);
4949
}
5050

51-
/**
52-
* @param UriInterface $uri
53-
* @param string $host
54-
* @param StreamSocket $socket
55-
*/
5651
private function configureSsl(UriInterface $uri, string $host, StreamSocket $socket): void
5752
{
5853
$scheme = $uri->getScheme();

src/Bolt/BoltUnmanagedTransaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
use Laudis\Neo4j\Exception\Neo4jException;
2727
use Laudis\Neo4j\ParameterHelper;
2828
use Laudis\Neo4j\Types\CypherList;
29-
use Throwable;
3029
use function microtime;
30+
use Throwable;
3131

3232
/**
3333
* @template T

src/Client.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
use Laudis\Neo4j\Databags\TransactionConfiguration;
3131
use Laudis\Neo4j\Enum\AccessMode;
3232
use Laudis\Neo4j\Types\CypherList;
33-
use function microtime;
34-
use const PHP_EOL;
3533
use Psr\Http\Message\UriInterface;
3634
use function sprintf;
3735

src/Common/Connection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
<?php
2+
23
declare(strict_types=1);
34

5+
/*
6+
* This file is part of the Laudis Neo4j package.
7+
*
8+
* (c) Laudis technologies <http://laudis.tech>
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
13+
414
namespace Laudis\Neo4j\Common;
515

616
use Laudis\Neo4j\Contracts\ConnectionInterface;

src/Contracts/ConnectionPoolInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
namespace Laudis\Neo4j\Contracts;
1515

1616
use Laudis\Neo4j\Databags\SessionConfiguration;
17-
use Laudis\Neo4j\Enum\AccessMode;
1817
use Psr\Http\Message\UriInterface;
1918

2019
/**

src/Databags/DatabaseInfo.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
<?php
2+
23
declare(strict_types=1);
34

5+
/*
6+
* This file is part of the Laudis Neo4j package.
7+
*
8+
* (c) Laudis technologies <http://laudis.tech>
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
413

514
namespace Laudis\Neo4j\Databags;
615

7-
816
final class DatabaseInfo
917
{
1018
private string $name;

src/Databags/InputPosition.php

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
<?php
2+
23
declare(strict_types=1);
34

5+
/*
6+
* This file is part of the Laudis Neo4j package.
7+
*
8+
* (c) Laudis technologies <http://laudis.tech>
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
413

514
namespace Laudis\Neo4j\Databags;
615

7-
816
final class InputPosition
917
{
1018
private int $column;
@@ -15,32 +23,22 @@ public function __construct(
1523
int $column,
1624
int $line,
1725
int $offset
18-
)
19-
{
26+
) {
2027
$this->column = $column;
2128
$this->line = $line;
2229
$this->offset = $offset;
2330
}
2431

25-
/**
26-
* @return int
27-
*/
2832
public function getColumn(): int
2933
{
3034
return $this->column;
3135
}
3236

33-
/**
34-
* @return int
35-
*/
3637
public function getLine(): int
3738
{
3839
return $this->line;
3940
}
4041

41-
/**
42-
* @return int
43-
*/
4442
public function getOffset(): int
4543
{
4644
return $this->offset;

src/Formatter/BasicFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
namespace Laudis\Neo4j\Formatter;
1515

16-
use Laudis\Neo4j\Databags\Statement;
1716
use function array_slice;
1817
use Bolt\structures\Path;
1918
use function count;
@@ -25,6 +24,7 @@
2524
use function is_object;
2625
use Laudis\Neo4j\Contracts\ConnectionInterface;
2726
use Laudis\Neo4j\Contracts\FormatterInterface;
27+
use Laudis\Neo4j\Databags\Statement;
2828
use Laudis\Neo4j\Types\CypherList;
2929
use Laudis\Neo4j\Types\CypherMap;
3030
use Psr\Http\Message\RequestInterface;

src/Formatter/OGMFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
namespace Laudis\Neo4j\Formatter;
1515

16-
use Laudis\Neo4j\Databags\Statement;
1716
use function array_slice;
1817
use ArrayIterator;
1918
use function count;
@@ -22,6 +21,7 @@
2221
use Exception;
2322
use Laudis\Neo4j\Contracts\ConnectionInterface;
2423
use Laudis\Neo4j\Contracts\FormatterInterface;
24+
use Laudis\Neo4j\Databags\Statement;
2525
use Laudis\Neo4j\Formatter\Specialised\BoltOGMTranslator;
2626
use Laudis\Neo4j\Formatter\Specialised\HttpOGMArrayTranslator;
2727
use Laudis\Neo4j\Formatter\Specialised\HttpOGMStringTranslator;

src/Formatter/Specialised/HttpOGMArrayTranslator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function translateCypherList(array $value): CypherList
8181
// We need to use JOLT instead for finer control,
8282
// which will be a different translator.
8383
if (is_array($x)) {
84-
/** @var array<array-key, array|null|scalar> $x */
84+
/** @var array<array-key, array|scalar|null> $x */
8585
$tbr->push($this->translateContainer($x));
8686
} else {
8787
$tbr->push($x);
@@ -112,7 +112,7 @@ public function translate(Iterator $meta, Iterator $relationship, array $nodes,
112112
$tbr = $this->translatePoint($value);
113113
break;
114114
default:
115-
/** @var array<array-key, array|null|scalar> $value */
115+
/** @var array<array-key, array|scalar|null> $value */
116116
$tbr = $this->translateContainer($value);
117117
if ($type === 'node' && $tbr instanceof CypherMap && isset($currentMeta['id'])) {
118118
$tbr = $this->translateNode($nodes, $currentMeta['id'], $tbr);
@@ -203,7 +203,7 @@ private function translateCypherMap(array $value): CypherMap
203203
// We need to use JOLT instead for finer control,
204204
// which will be a different translator.
205205
if (is_array($x)) {
206-
/** @var array<array-key, scalar|null|array> $x */
206+
/** @var array<array-key, scalar|array|null> $x */
207207
$tbr->put($key, $this->translateContainer($x));
208208
} else {
209209
$tbr->put($key, $x);
@@ -214,7 +214,7 @@ private function translateCypherMap(array $value): CypherMap
214214
}
215215

216216
/**
217-
* @param array<array-key, scalar|null|array> $value
217+
* @param array<array-key, scalar|array|null> $value
218218
*
219219
* @return CypherList<OGMTypes>|CypherMap<OGMTypes>
220220
*/

0 commit comments

Comments
 (0)