Skip to content

Commit 8de7d57

Browse files
NyholmStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 3d0b699 commit 8de7d57

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

Collector/DebugLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare (strict_types=1);
3+
declare(strict_types=1);
44

55
namespace Neo4jCommunity\Neo4jBundle\Collector;
66

Collector/Neo4jDataCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare (strict_types=1);
3+
declare(strict_types=1);
44

55
namespace Neo4jCommunity\Neo4jBundle\Collector;
66

@@ -56,7 +56,7 @@ public function getExceptions()
5656
*
5757
* @return bool
5858
*/
59-
public function wasSuccessful(int $idx):bool
59+
public function wasSuccessful(int $idx): bool
6060
{
6161
return isset($this->logger->getResults()[$idx]);
6262
}

Collector/Twig/Neo4jResultExtension.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare (strict_types=1);
3+
declare(strict_types=1);
44

55
namespace Neo4jCommunity\Neo4jBundle\Collector\Twig;
66

@@ -28,23 +28,23 @@ public function getFilters()
2828
*
2929
* @return string
3030
*/
31-
public function getType($object):string
31+
public function getType($object): string
3232
{
3333
return $this->doGetType($object, true);
3434
}
3535

36-
public function getName():string
36+
public function getName(): string
3737
{
3838
return 'neo4j.result';
3939
}
4040

4141
/**
4242
* @param mixed $object
43-
* @param bool $recursive
43+
* @param bool $recursive
4444
*
4545
* @return string
4646
*/
47-
private function doGetType($object, bool $recursive):string
47+
private function doGetType($object, bool $recursive): string
4848
{
4949
if ($object instanceof Node) {
5050
return sprintf('%s: %s', $object->identity(), implode(', ', $object->labels()));

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare (strict_types=1);
3+
declare(strict_types=1);
44

55
namespace Neo4jCommunity\Neo4jBundle\DependencyInjection;
66

DependencyInjection/Neo4jCommunityNeo4jExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare (strict_types=1);
3+
declare(strict_types=1);
44

55
namespace Neo4jCommunity\Neo4jBundle\DependencyInjection;
66

@@ -183,6 +183,4 @@ public function getAlias(): string
183183
{
184184
return 'community_neo4j';
185185
}
186-
187-
188186
}

Factory/ClientFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare (strict_types=1);
3+
declare(strict_types=1);
44

55
namespace Neo4jCommunity\Neo4jBundle\Factory;
66

Tests/Unit/Collector/Twig/Neo4jResultExtensionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Neo4jResultExtensionTest extends \PHPUnit_Framework_TestCase
1313
public function testEmptyArray()
1414
{
1515
$o = new Neo4jResultExtension();
16-
$result = $o->getType(array());
16+
$result = $o->getType([]);
1717

1818
$this->assertEquals('Empty array', $result);
1919
}
@@ -41,6 +41,7 @@ public function testScalarArray()
4141

4242
$this->assertEquals('[integer, double]', $result);
4343
}
44+
4445
public function testArrayArray()
4546
{
4647
$o = new Neo4jResultExtension();

Tests/Unit/DependencyInjection/GraphAwareNeo4jExtensionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function testDataCollectorNotLoadedInNonDebug()
3030

3131
$this->assertContainerBuilderNotHasService('neo4j.collector.debug_collector');
3232
}
33+
3334
public function testDataCollectorNotLoadedWhenDisabled()
3435
{
3536
$this->setParameter('kernel.debug', true);

0 commit comments

Comments
 (0)