Skip to content

Commit 30b5560

Browse files
feat[indexes]: Add support for inverted indexes (#20)
* fix: use 'sprintf' instead of string interpolation * drop tests for arango 3.11 and add tests with PHP 8.4 * Update php.yml * Update dependencies * composer update + composer bump * Small refactor on AQL namespace * update .gitignore * fix code sniffs * Http namespace refactor * update dev dependencies * refactor: ODM tests * refactor: PSR12 code fix for tests * refactor: PSR12 code fix for src/ * chore: remove obsolete collection properties (#14) * Improved validation for collection key options (#15) * improve Collection 'keyOptions' attribute validation * refactor 'KeyType' class * fix exception attribute type * drop support for PHP 8.2 * remove uses of 'print_r' (#16) * Drop noop method 'load' for Collections (#17) * small refactors for Cursor namespace * drop no-op collection method 'load' * refactor AQLFunction exception handling * small refactors for AQL namespace * remove unused exception' * remove unused variables * small refactor on Graph namespace * refactors on Transaction namespace * one more round of small fixes * refactor array list * add make file with test, lint and static analyzer helpers * chore[PHP-8.4]: Handle php 8.4 deprecations (#18) * chore[php-8.4]: handle php 8.4 deprecations * chore[php-8.4]: revert enforcing strict type on 'Admin\Task\Task::' * feat[index]: Add support for inverted indexes (#19) * feat[inverted-index]: strict typing for base index class * chore[indexes]: deprecate 'hash' and 'skiplist' index types * feat[indexes]: base implementation for 'inverted' index * tests[indexes]: remove ununsed imports * tests[indexes]: add tests for inverted index * feat[indexes]: add inverted index implementation * chore[documentation]: update existing docs
1 parent 4d65fb4 commit 30b5560

File tree

113 files changed

+879
-4667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+879
-4667
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
php-versions: ["8.2", "8.3", "8.4"]
28-
27+
php-versions: ["8.3", "8.4"]
2928
steps:
3029
- name: Setup PHP
3130
uses: shivammathur/setup-php@v2

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ coverage.xml
1111
*.phar
1212
.phpactor.json
1313

14-
# Ignore documentation generation script
15-
documentation.php
16-
1714
# Removed from dist package
1815
/docs export-ignore
1916
/tests export-ignore
@@ -22,3 +19,6 @@ documentation.php
2219
/.gitignore export-ignore
2320
/.travis.yml export-ignore
2421
/phpunit.xml export-ignore
22+
/phpdoc.dist.xml export-ignore
23+
/phpcs.xml export-ignore
24+
/Makefile export-ignore

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ARANGODB_VERSION="3.12.5.2"
2+
env-up:
3+
cp .env.testing .env
4+
echo -e "\nARANGODB_VERSION=$(ARANGODB_VERSION)" >> .env
5+
docker compose -f tests/compose.yaml up -d
6+
7+
env-down:
8+
docker compose -f tests/compose.yaml down -v
9+
rm .env
10+
11+
unittests:
12+
vendor/bin/phpunit -c phpunit.xml
13+
14+
format:
15+
vendor/bin/php-cs-fixer fix src/ --rules=@PSR1,@PSR2,@PSR12 && vendor/bin/php-cs-fixer fix tests/ --rules=@PSR1,@PSR2,@PSR12
16+
17+
analyze:
18+
vendor/bin/phpstan --memory-limit=256M analyze src/

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"require": {
22-
"php": ">=8.2",
22+
"php": ">=8.3",
2323
"ext-json": "*",
2424
"guzzlehttp/guzzle": "^7.10",
2525
"symfony/service-contracts": "^3.6",
@@ -32,7 +32,8 @@
3232
"vlucas/phpdotenv": "^5.6.2",
3333
"phpunit/php-code-coverage": "^9.2.32",
3434
"friendsofphp/php-cs-fixer": "^3.88.2",
35-
"squizlabs/php_codesniffer": "^3.13.4"
35+
"squizlabs/php_codesniffer": "^3.13.4",
36+
"phpstan/phpstan": "^2.1.31"
3637
},
3738
"autoload": {
3839
"psr-4": {

composer.lock

Lines changed: 55 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/css/base.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
--color-hue-brown: 16;
4242

4343
/* Colors */
44-
--primary-color-hue: var(--color-hue-red, --color-hue-phpdocumentor-green);
44+
--primary-color-hue: var(--color-hue-phpdocumentor-green, --color-hue-phpdocumentor-green);
4545
--primary-color-saturation: 57%;
4646
--primary-color: hsl(var(--primary-color-hue), var(--primary-color-saturation), 60%);
4747
--primary-color-darken: hsl(var(--primary-color-hue), var(--primary-color-saturation), 40%);
@@ -99,6 +99,7 @@
9999
/* Base Styles
100100
-------------------------------------------------- */
101101
body {
102+
background-color: #fff;
102103
color: var(--text-color);
103104
font-family: var(--font-primary);
104105
font-size: var(--text-md);
@@ -494,7 +495,7 @@ div.phpdocumentor-list > ul,
494495
ol.phpdocumentor-list,
495496
ul.phpdocumentor-list {
496497
margin-top: 0;
497-
padding-left: var(--spacing-md);
498+
padding-left: var(--spacing-lg);
498499
margin-bottom: var(--spacing-sm);
499500
}
500501

@@ -1215,6 +1216,10 @@ is too big a fix and needs to be done in a new design iteration.
12151216
word-break: break-all;
12161217
line-height: normal;
12171218
}
1219+
1220+
.phpdocumentor-on-this-page__content li.-deprecated {
1221+
text-decoration: line-through;
1222+
}
12181223
}
12191224

12201225
/* Used for screen readers and such */

docs/css/template.css

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
display: block;
101101
font-size: var(--text-sm);
102102
border: 1px solid #f0f0f0;
103+
margin-bottom: calc(var(--spacing-sm));
103104
}
104105

105106
.phpdocumentor .phpdocumentor-signature.-deprecated .phpdocumentor-signature__name {
@@ -126,6 +127,10 @@
126127
flex: 0 1 auto;
127128
}
128129

130+
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > a.-deprecated {
131+
text-decoration: line-through;
132+
}
133+
129134
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > span {
130135
flex: 1;
131136
white-space: nowrap;
@@ -152,7 +157,7 @@
152157
width: 1.25rem;
153158
height: 1.25rem;
154159
line-height: 1.25rem;
155-
background: transparent url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="hsl( 4, 57%, 60%)"/></svg>') no-repeat center center;
160+
background: transparent url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="hsl( 96, 57%, 60%)"/></svg>') no-repeat center center;
156161
content: '';
157162
position: absolute;
158163
left: 0;
@@ -167,13 +172,13 @@
167172
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-method:before {
168173
content: 'M';
169174
color: '';
170-
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="hsl( 4, 57%, 60%)"/></svg>');
175+
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="hsl( 96, 57%, 60%)"/></svg>');
171176
}
172177

173178
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-function:before {
174179
content: 'M';
175-
color: ' 4';
176-
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="hsl( 4, 57%, 60%)"/></svg>');
180+
color: ' 96';
181+
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="hsl( 96, 57%, 60%)"/></svg>');
177182
}
178183

179184
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-property:before {
@@ -183,7 +188,7 @@
183188
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-constant:before {
184189
content: 'C';
185190
background-color: transparent;
186-
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="-3.05176e-05" y="9.99998" width="14.1422" height="14.1422" transform="rotate(-45 -3.05176e-05 9.99998)" fill="hsl( 4, 57%, 60%)"/></svg>');
191+
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="-3.05176e-05" y="9.99998" width="14.1422" height="14.1422" transform="rotate(-45 -3.05176e-05 9.99998)" fill="hsl( 96, 57%, 60%)"/></svg>');
187192
}
188193

189194
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-class:before {
@@ -269,3 +274,6 @@
269274
.phpdocumentor-tag-link {
270275
margin-right: var(--spacing-sm);
271276
}
277+
.phpdocumentor-uml-diagram svg {
278+
cursor: zoom-in;
279+
}

0 commit comments

Comments
 (0)