Skip to content

Commit b7603c8

Browse files
committed
resolved merge conflicts
2 parents 035a4ab + 303be57 commit b7603c8

16 files changed

+127
-53
lines changed

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Database Configuration
2+
NEO4J_ADDRESS=https://6f72daa1.databases.neo4j.io/
3+
NEO4J_USERNAME=neo4j
4+
NEO4J_PASSWORD=O9lWmptqBgxBOz8NVcTJjgs3cHPyYmsy63ui6Spmw1d0

.github/workflows/cs-fixer.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PHP CS Fixer
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '**/*.php'
9+
pull_request:
10+
paths:
11+
- '**/*.php'
12+
13+
jobs:
14+
php-cs-fixer:
15+
name: PHP CS Fixer
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
- name: Set up PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: 8.2
26+
tools: composer
27+
28+
- name: Install dependencies
29+
run: composer install --no-progress --prefer-dist
30+
31+
- name: Run PHP CS Fixer
32+
run: vendor/bin/php-cs-fixer fix --dry-run --diff --allow-risky=yes

.github/workflows/ci.yml renamed to .github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
- name: Install dependencies
3636
run: composer install --no-progress --prefer-dist
3737

38-
39-
4038
- name: Run Tests without phpunit.xml
39+
env:
40+
NEO4J_ADDRESS: ${{ secrets.NEO4J_ADDRESS }}
41+
NEO4J_USERNAME: ${{ secrets.NEO4J_USERNAME }}
42+
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
4143
run: vendor/bin/phpunit --configuration phpunit.dist.xml

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
#IDE
12
.idea/
3+
4+
#COMPOSER
25
vendor
6+
7+
#PHPUNIT
38
phpunit.xml
49
test
510
.phpunit.result.cache
11+
12+
#PHP-CS-FIXER
13+
.php-cs-fixer.php
14+
.php-cs-fixer.cache

.php-cs-fixer.dist.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php declare(strict_types=1);
2+
3+
use PhpCsFixer\Config;
4+
use PhpCsFixer\Finder;
5+
6+
return (new Config())
7+
->setRules([
8+
'@PSR12' => true,
9+
])
10+
->setFinder(
11+
Finder::create()
12+
->in(__DIR__)
13+
->exclude([
14+
'vendor',
15+
])
16+
);

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,11 @@
3232
"allow-plugins": {
3333
"php-http/discovery": true
3434
}
35+
},
36+
37+
"scripts": {
38+
"cs": "vendor/bin/php-cs-fixer fix --dry-run --diff --allow-risky=yes",
39+
"cs:fix": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
3540
}
36-
}
41+
42+
}

src/Exception/Neo4jException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Exception;
66

7-
87
/**
98
* @api
109
*/
@@ -20,8 +19,7 @@ public function __construct(
2019
array $errorDetails = [],
2120
int $statusCode = 0,
2221
?\Throwable $previous = null
23-
)
24-
{
22+
) {
2523
$this->errorCode = $errorDetails['code'] ?? 'Neo.UnknownError';
2624
$errorParts = explode('.', $this->errorCode);
2725
$this->errorType = $errorParts[1] ?? null;

src/OGM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ private function mapProperties(array $properties): array
103103
return $mappedProperties;
104104
}
105105

106-
}
106+
}

src/Objects/Bookmarks.php

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

33
namespace Neo4j\QueryAPI\Objects;
4+
45
/**
56
* @api
67
*/

src/Objects/Node.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Neo4j\QueryAPI\Objects;
34

45
/**

0 commit comments

Comments
 (0)